ptctools 0.1.0__py3-none-any.whl → 0.2.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ptctools/__init__.py +7 -1
- ptctools/_portainer.py +450 -226
- ptctools/cli.py +5 -8
- ptctools/config.py +111 -149
- ptctools/db.py +203 -142
- ptctools/docker.py +29 -0
- ptctools/portainer_client/.openapi-generator/FILES +818 -0
- ptctools/portainer_client/.openapi-generator/VERSION +1 -0
- ptctools/portainer_client/.openapi-generator-ignore +23 -0
- ptctools/portainer_client/openapi_client/__init__.py +855 -0
- ptctools/portainer_client/openapi_client/api/__init__.py +36 -0
- ptctools/portainer_client/openapi_client/api/auth_api.py +848 -0
- ptctools/portainer_client/openapi_client/api/backup_api.py +587 -0
- ptctools/portainer_client/openapi_client/api/custom_templates_api.py +2659 -0
- ptctools/portainer_client/openapi_client/api/docker_api.py +878 -0
- ptctools/portainer_client/openapi_client/api/edge_api.py +597 -0
- ptctools/portainer_client/openapi_client/api/edge_groups_api.py +1405 -0
- ptctools/portainer_client/openapi_client/api/edge_jobs_api.py +3146 -0
- ptctools/portainer_client/openapi_client/api/edge_stacks_api.py +2990 -0
- ptctools/portainer_client/openapi_client/api/endpoint_groups_api.py +1965 -0
- ptctools/portainer_client/openapi_client/api/endpoints_api.py +6607 -0
- ptctools/portainer_client/openapi_client/api/gitops_api.py +308 -0
- ptctools/portainer_client/openapi_client/api/helm_api.py +3529 -0
- ptctools/portainer_client/openapi_client/api/intel_api.py +1718 -0
- ptctools/portainer_client/openapi_client/api/kubernetes_api.py +18877 -0
- ptctools/portainer_client/openapi_client/api/ldap_api.py +313 -0
- ptctools/portainer_client/openapi_client/api/motd_api.py +284 -0
- ptctools/portainer_client/openapi_client/api/registries_api.py +1712 -0
- ptctools/portainer_client/openapi_client/api/resource_controls_api.py +891 -0
- ptctools/portainer_client/openapi_client/api/roles_api.py +288 -0
- ptctools/portainer_client/openapi_client/api/settings_api.py +820 -0
- ptctools/portainer_client/openapi_client/api/ssl_api.py +573 -0
- ptctools/portainer_client/openapi_client/api/stacks_api.py +6640 -0
- ptctools/portainer_client/openapi_client/api/status_api.py +285 -0
- ptctools/portainer_client/openapi_client/api/system_api.py +1277 -0
- ptctools/portainer_client/openapi_client/api/tags_api.py +839 -0
- ptctools/portainer_client/openapi_client/api/team_memberships_api.py +1425 -0
- ptctools/portainer_client/openapi_client/api/teams_api.py +1453 -0
- ptctools/portainer_client/openapi_client/api/templates_api.py +558 -0
- ptctools/portainer_client/openapi_client/api/upload_api.py +343 -0
- ptctools/portainer_client/openapi_client/api/users_api.py +3659 -0
- ptctools/portainer_client/openapi_client/api/webhooks_api.py +1415 -0
- ptctools/portainer_client/openapi_client/api/websocket_api.py +1279 -0
- ptctools/portainer_client/openapi_client/api_client.py +805 -0
- ptctools/portainer_client/openapi_client/api_response.py +21 -0
- ptctools/portainer_client/openapi_client/configuration.py +619 -0
- ptctools/portainer_client/openapi_client/docs/AuthApi.md +236 -0
- ptctools/portainer_client/openapi_client/docs/AuthAuthenticatePayload.md +30 -0
- ptctools/portainer_client/openapi_client/docs/AuthAuthenticateResponse.md +29 -0
- ptctools/portainer_client/openapi_client/docs/AuthOauthPayload.md +29 -0
- ptctools/portainer_client/openapi_client/docs/BackupApi.md +166 -0
- ptctools/portainer_client/openapi_client/docs/BackupBackupPayload.md +29 -0
- ptctools/portainer_client/openapi_client/docs/BackupRestorePayload.md +31 -0
- ptctools/portainer_client/openapi_client/docs/BuildBuildInfo.md +35 -0
- ptctools/portainer_client/openapi_client/docs/BuildDependenciesInfo.md +32 -0
- ptctools/portainer_client/openapi_client/docs/BuildRuntimeInfo.md +29 -0
- ptctools/portainer_client/openapi_client/docs/ContainersContainerGpusResponse.md +29 -0
- ptctools/portainer_client/openapi_client/docs/CustomTemplatesApi.md +842 -0
- ptctools/portainer_client/openapi_client/docs/CustomtemplatesCustomTemplateFromFileContentPayload.md +37 -0
- ptctools/portainer_client/openapi_client/docs/CustomtemplatesCustomTemplateFromGitRepositoryPayload.md +44 -0
- ptctools/portainer_client/openapi_client/docs/CustomtemplatesCustomTemplateUpdatePayload.md +47 -0
- ptctools/portainer_client/openapi_client/docs/CustomtemplatesFileResponse.md +29 -0
- ptctools/portainer_client/openapi_client/docs/DockerApi.md +259 -0
- ptctools/portainer_client/openapi_client/docs/DockerContainerStats.md +33 -0
- ptctools/portainer_client/openapi_client/docs/DockerDashboardResponse.md +34 -0
- ptctools/portainer_client/openapi_client/docs/DockerImagesCounters.md +30 -0
- ptctools/portainer_client/openapi_client/docs/EdgeApi.md +152 -0
- ptctools/portainer_client/openapi_client/docs/EdgeDeployerOptionsPayload.md +30 -0
- ptctools/portainer_client/openapi_client/docs/EdgeGroupsApi.md +451 -0
- ptctools/portainer_client/openapi_client/docs/EdgeJobsApi.md +1003 -0
- ptctools/portainer_client/openapi_client/docs/EdgeRegistryCredentials.md +31 -0
- ptctools/portainer_client/openapi_client/docs/EdgeStackPayload.md +48 -0
- ptctools/portainer_client/openapi_client/docs/EdgeStacksApi.md +900 -0
- ptctools/portainer_client/openapi_client/docs/EdgegroupsDecoratedEdgeGroup.md +39 -0
- ptctools/portainer_client/openapi_client/docs/EdgegroupsEdgeGroupCreatePayload.md +33 -0
- ptctools/portainer_client/openapi_client/docs/EdgegroupsEdgeGroupUpdatePayload.md +33 -0
- ptctools/portainer_client/openapi_client/docs/EdgejobsEdgeJobCreateFromFileContentPayload.md +34 -0
- ptctools/portainer_client/openapi_client/docs/EdgejobsEdgeJobFileResponse.md +29 -0
- ptctools/portainer_client/openapi_client/docs/EdgejobsEdgeJobUpdatePayload.md +34 -0
- ptctools/portainer_client/openapi_client/docs/EdgejobsFileResponse.md +29 -0
- ptctools/portainer_client/openapi_client/docs/EdgejobsTaskContainer.md +32 -0
- ptctools/portainer_client/openapi_client/docs/EdgestacksEdgeStackFromGitRepositoryPayload.md +41 -0
- ptctools/portainer_client/openapi_client/docs/EdgestacksEdgeStackFromStringPayload.md +34 -0
- ptctools/portainer_client/openapi_client/docs/EdgestacksStackFileResponse.md +29 -0
- ptctools/portainer_client/openapi_client/docs/EdgestacksUpdateEdgeStackPayload.md +33 -0
- ptctools/portainer_client/openapi_client/docs/EdgestacksUpdateStatusPayload.md +33 -0
- ptctools/portainer_client/openapi_client/docs/EndpointGroupsApi.md +638 -0
- ptctools/portainer_client/openapi_client/docs/EndpointedgeEdgeJobResponse.md +33 -0
- ptctools/portainer_client/openapi_client/docs/EndpointedgeEndpointEdgeStatusInspectResponse.md +34 -0
- ptctools/portainer_client/openapi_client/docs/EndpointedgeStackStatusResponse.md +30 -0
- ptctools/portainer_client/openapi_client/docs/EndpointgroupsEndpointGroupCreatePayload.md +32 -0
- ptctools/portainer_client/openapi_client/docs/EndpointgroupsEndpointGroupUpdatePayload.md +33 -0
- ptctools/portainer_client/openapi_client/docs/EndpointsApi.md +1930 -0
- ptctools/portainer_client/openapi_client/docs/EndpointsDockerhubStatusResponse.md +30 -0
- ptctools/portainer_client/openapi_client/docs/EndpointsEndpointCreateGlobalKeyResponse.md +29 -0
- ptctools/portainer_client/openapi_client/docs/EndpointsEndpointDeleteBatchPartialResponse.md +30 -0
- ptctools/portainer_client/openapi_client/docs/EndpointsEndpointDeleteBatchPayload.md +29 -0
- ptctools/portainer_client/openapi_client/docs/EndpointsEndpointDeleteRequest.md +30 -0
- ptctools/portainer_client/openapi_client/docs/EndpointsEndpointSettingsUpdatePayload.md +39 -0
- ptctools/portainer_client/openapi_client/docs/EndpointsEndpointUpdatePayload.md +45 -0
- ptctools/portainer_client/openapi_client/docs/EndpointsEndpointUpdateRelationsPayload.md +29 -0
- ptctools/portainer_client/openapi_client/docs/EndpointsEndpointUpdateRelationsPayloadRelationsValue.md +31 -0
- ptctools/portainer_client/openapi_client/docs/EndpointsForceUpdateServicePayload.md +30 -0
- ptctools/portainer_client/openapi_client/docs/EndpointsRegistryAccessPayload.md +31 -0
- ptctools/portainer_client/openapi_client/docs/FilesystemDirEntry.md +32 -0
- ptctools/portainer_client/openapi_client/docs/GithubComPortainerPortainerPkgLibhelmReleaseHook.md +36 -0
- ptctools/portainer_client/openapi_client/docs/GithubComPortainerPortainerPkgLibhelmReleaseHookExecution.md +31 -0
- ptctools/portainer_client/openapi_client/docs/GithubComPortainerPortainerPkgLibhelmReleaseInfo.md +35 -0
- ptctools/portainer_client/openapi_client/docs/GithubComPortainerPortainerPkgLibhelmReleaseRelease.md +39 -0
- ptctools/portainer_client/openapi_client/docs/GitopsApi.md +99 -0
- ptctools/portainer_client/openapi_client/docs/GitopsFileResponse.md +29 -0
- ptctools/portainer_client/openapi_client/docs/GitopsRepositoryFilePreviewPayload.md +35 -0
- ptctools/portainer_client/openapi_client/docs/GittypesGitAuthentication.md +32 -0
- ptctools/portainer_client/openapi_client/docs/GittypesGitCredentialAuthType.md +12 -0
- ptctools/portainer_client/openapi_client/docs/GittypesRepoConfig.md +34 -0
- ptctools/portainer_client/openapi_client/docs/HelmApi.md +1062 -0
- ptctools/portainer_client/openapi_client/docs/HelmInstallChartPayload.md +35 -0
- ptctools/portainer_client/openapi_client/docs/ImagesImageResponse.md +34 -0
- ptctools/portainer_client/openapi_client/docs/IntelApi.md +505 -0
- ptctools/portainer_client/openapi_client/docs/IntstrIntOrString.md +31 -0
- ptctools/portainer_client/openapi_client/docs/IntstrType.md +12 -0
- ptctools/portainer_client/openapi_client/docs/K8sIoApiCoreV1ConditionStatus.md +14 -0
- ptctools/portainer_client/openapi_client/docs/K8sIoApiRbacV1Subject.md +32 -0
- ptctools/portainer_client/openapi_client/docs/K8sIoApimachineryPkgApisMetaV1ConditionStatus.md +14 -0
- ptctools/portainer_client/openapi_client/docs/KubernetesApi.md +6017 -0
- ptctools/portainer_client/openapi_client/docs/KubernetesConfiguration.md +31 -0
- ptctools/portainer_client/openapi_client/docs/KubernetesCustomResourceMetadata.md +31 -0
- ptctools/portainer_client/openapi_client/docs/KubernetesDescribeResourceResponse.md +29 -0
- ptctools/portainer_client/openapi_client/docs/KubernetesIngressRule.md +32 -0
- ptctools/portainer_client/openapi_client/docs/KubernetesK8sApplication.md +60 -0
- ptctools/portainer_client/openapi_client/docs/KubernetesK8sApplicationResource.md +32 -0
- ptctools/portainer_client/openapi_client/docs/KubernetesK8sClusterRole.md +32 -0
- ptctools/portainer_client/openapi_client/docs/KubernetesK8sClusterRoleBinding.md +35 -0
- ptctools/portainer_client/openapi_client/docs/KubernetesK8sConfigMap.md +39 -0
- ptctools/portainer_client/openapi_client/docs/KubernetesK8sConfigurationOwnerResource.md +31 -0
- ptctools/portainer_client/openapi_client/docs/KubernetesK8sCronJob.md +37 -0
- ptctools/portainer_client/openapi_client/docs/KubernetesK8sDashboard.md +35 -0
- ptctools/portainer_client/openapi_client/docs/KubernetesK8sEvent.md +40 -0
- ptctools/portainer_client/openapi_client/docs/KubernetesK8sEventInvolvedObject.md +32 -0
- ptctools/portainer_client/openapi_client/docs/KubernetesK8sIngressController.md +34 -0
- ptctools/portainer_client/openapi_client/docs/KubernetesK8sIngressInfo.md +39 -0
- ptctools/portainer_client/openapi_client/docs/KubernetesK8sIngressPath.md +35 -0
- ptctools/portainer_client/openapi_client/docs/KubernetesK8sIngressTLS.md +30 -0
- ptctools/portainer_client/openapi_client/docs/KubernetesK8sJob.md +42 -0
- ptctools/portainer_client/openapi_client/docs/KubernetesK8sNamespaceDetails.md +32 -0
- ptctools/portainer_client/openapi_client/docs/KubernetesK8sPersistentVolume.md +37 -0
- ptctools/portainer_client/openapi_client/docs/KubernetesK8sPersistentVolumeClaim.md +41 -0
- ptctools/portainer_client/openapi_client/docs/KubernetesK8sResourceQuota.md +31 -0
- ptctools/portainer_client/openapi_client/docs/KubernetesK8sRole.md +33 -0
- ptctools/portainer_client/openapi_client/docs/KubernetesK8sRoleBinding.md +35 -0
- ptctools/portainer_client/openapi_client/docs/KubernetesK8sSecret.md +40 -0
- ptctools/portainer_client/openapi_client/docs/KubernetesK8sServiceAccount.md +33 -0
- ptctools/portainer_client/openapi_client/docs/KubernetesK8sServiceInfo.md +43 -0
- ptctools/portainer_client/openapi_client/docs/KubernetesK8sServiceIngress.md +30 -0
- ptctools/portainer_client/openapi_client/docs/KubernetesK8sServicePort.md +33 -0
- ptctools/portainer_client/openapi_client/docs/KubernetesK8sStorageClass.md +32 -0
- ptctools/portainer_client/openapi_client/docs/KubernetesK8sVolumeInfo.md +31 -0
- ptctools/portainer_client/openapi_client/docs/KubernetesMetadata.md +30 -0
- ptctools/portainer_client/openapi_client/docs/KubernetesNamespacesToggleSystemPayload.md +29 -0
- ptctools/portainer_client/openapi_client/docs/KubernetesPod.md +38 -0
- ptctools/portainer_client/openapi_client/docs/KubernetesPublishedPort.md +30 -0
- ptctools/portainer_client/openapi_client/docs/KubernetesTLSInfo.md +29 -0
- ptctools/portainer_client/openapi_client/docs/LdapApi.md +96 -0
- ptctools/portainer_client/openapi_client/docs/LdapCheckPayload.md +29 -0
- ptctools/portainer_client/openapi_client/docs/MotdApi.md +91 -0
- ptctools/portainer_client/openapi_client/docs/MotdMotdResponse.md +33 -0
- ptctools/portainer_client/openapi_client/docs/Oauth2AuthStyle.md +14 -0
- ptctools/portainer_client/openapi_client/docs/OpenamtDeviceActionPayload.md +29 -0
- ptctools/portainer_client/openapi_client/docs/OpenamtDeviceFeaturesPayload.md +29 -0
- ptctools/portainer_client/openapi_client/docs/OpenamtOpenAMTConfigurePayload.md +36 -0
- ptctools/portainer_client/openapi_client/docs/OsFileMode.md +38 -0
- ptctools/portainer_client/openapi_client/docs/PlatformContainerPlatform.md +18 -0
- ptctools/portainer_client/openapi_client/docs/PortainerAPIKey.md +35 -0
- ptctools/portainer_client/openapi_client/docs/PortainerAccessPolicy.md +29 -0
- ptctools/portainer_client/openapi_client/docs/PortainerAuthenticationMethod.md +16 -0
- ptctools/portainer_client/openapi_client/docs/PortainerAutoUpdateSettings.md +33 -0
- ptctools/portainer_client/openapi_client/docs/PortainerAzureCredentials.md +31 -0
- ptctools/portainer_client/openapi_client/docs/PortainerCustomTemplate.md +43 -0
- ptctools/portainer_client/openapi_client/docs/PortainerCustomTemplatePlatform.md +14 -0
- ptctools/portainer_client/openapi_client/docs/PortainerCustomTemplateVariableDefinition.md +32 -0
- ptctools/portainer_client/openapi_client/docs/PortainerDiagnosticsData.md +32 -0
- ptctools/portainer_client/openapi_client/docs/PortainerDockerSnapshot.md +49 -0
- ptctools/portainer_client/openapi_client/docs/PortainerEcrData.md +29 -0
- ptctools/portainer_client/openapi_client/docs/PortainerEdge.md +32 -0
- ptctools/portainer_client/openapi_client/docs/PortainerEdgeGroup.md +35 -0
- ptctools/portainer_client/openapi_client/docs/PortainerEdgeJob.md +38 -0
- ptctools/portainer_client/openapi_client/docs/PortainerEdgeJobEndpointMeta.md +30 -0
- ptctools/portainer_client/openapi_client/docs/PortainerEdgeJobLogsStatus.md +16 -0
- ptctools/portainer_client/openapi_client/docs/PortainerEdgeStack.md +40 -0
- ptctools/portainer_client/openapi_client/docs/PortainerEdgeStackDeploymentStatus.md +33 -0
- ptctools/portainer_client/openapi_client/docs/PortainerEdgeStackDeploymentType.md +12 -0
- ptctools/portainer_client/openapi_client/docs/PortainerEdgeStackStatus.md +35 -0
- ptctools/portainer_client/openapi_client/docs/PortainerEdgeStackStatusDetails.md +35 -0
- ptctools/portainer_client/openapi_client/docs/PortainerEdgeStackStatusType.md +36 -0
- ptctools/portainer_client/openapi_client/docs/PortainerEndpoint.md +66 -0
- ptctools/portainer_client/openapi_client/docs/PortainerEndpointAgent.md +29 -0
- ptctools/portainer_client/openapi_client/docs/PortainerEndpointGroup.md +38 -0
- ptctools/portainer_client/openapi_client/docs/PortainerEndpointPostInitMigrations.md +30 -0
- ptctools/portainer_client/openapi_client/docs/PortainerEndpointSecuritySettings.md +37 -0
- ptctools/portainer_client/openapi_client/docs/PortainerEndpointStatus.md +14 -0
- ptctools/portainer_client/openapi_client/docs/PortainerEndpointType.md +24 -0
- ptctools/portainer_client/openapi_client/docs/PortainerEnvironmentEdgeSettings.md +32 -0
- ptctools/portainer_client/openapi_client/docs/PortainerGithubRegistryData.md +30 -0
- ptctools/portainer_client/openapi_client/docs/PortainerGitlabRegistryData.md +31 -0
- ptctools/portainer_client/openapi_client/docs/PortainerGlobalDeploymentOptions.md +29 -0
- ptctools/portainer_client/openapi_client/docs/PortainerHelmUserRepository.md +31 -0
- ptctools/portainer_client/openapi_client/docs/PortainerInternalAuthSettings.md +29 -0
- ptctools/portainer_client/openapi_client/docs/PortainerK8sNamespaceInfo.md +38 -0
- ptctools/portainer_client/openapi_client/docs/PortainerK8sNodeLimits.md +30 -0
- ptctools/portainer_client/openapi_client/docs/PortainerKubernetesConfiguration.md +37 -0
- ptctools/portainer_client/openapi_client/docs/PortainerKubernetesData.md +31 -0
- ptctools/portainer_client/openapi_client/docs/PortainerKubernetesFlags.md +31 -0
- ptctools/portainer_client/openapi_client/docs/PortainerKubernetesIngressClassConfig.md +32 -0
- ptctools/portainer_client/openapi_client/docs/PortainerKubernetesSnapshot.md +35 -0
- ptctools/portainer_client/openapi_client/docs/PortainerKubernetesStorageClassConfig.md +32 -0
- ptctools/portainer_client/openapi_client/docs/PortainerLDAPGroupSearchSettings.md +31 -0
- ptctools/portainer_client/openapi_client/docs/PortainerLDAPSearchSettings.md +31 -0
- ptctools/portainer_client/openapi_client/docs/PortainerLDAPSettings.md +37 -0
- ptctools/portainer_client/openapi_client/docs/PortainerMembershipRole.md +14 -0
- ptctools/portainer_client/openapi_client/docs/PortainerOAuthSettings.md +42 -0
- ptctools/portainer_client/openapi_client/docs/PortainerOpenAMTConfiguration.md +37 -0
- ptctools/portainer_client/openapi_client/docs/PortainerOpenAMTDeviceEnabledFeatures.md +33 -0
- ptctools/portainer_client/openapi_client/docs/PortainerPair.md +30 -0
- ptctools/portainer_client/openapi_client/docs/PortainerPerformanceMetrics.md +31 -0
- ptctools/portainer_client/openapi_client/docs/PortainerQuayRegistryData.md +30 -0
- ptctools/portainer_client/openapi_client/docs/PortainerRegistry.md +48 -0
- ptctools/portainer_client/openapi_client/docs/PortainerRegistryAccessPolicies.md +31 -0
- ptctools/portainer_client/openapi_client/docs/PortainerRegistryManagementConfiguration.md +36 -0
- ptctools/portainer_client/openapi_client/docs/PortainerRegistryType.md +26 -0
- ptctools/portainer_client/openapi_client/docs/PortainerResourceAccessLevel.md +12 -0
- ptctools/portainer_client/openapi_client/docs/PortainerResourceControl.md +39 -0
- ptctools/portainer_client/openapi_client/docs/PortainerResourceControlType.md +28 -0
- ptctools/portainer_client/openapi_client/docs/PortainerRole.md +33 -0
- ptctools/portainer_client/openapi_client/docs/PortainerSSLSettings.md +32 -0
- ptctools/portainer_client/openapi_client/docs/PortainerSettings.md +62 -0
- ptctools/portainer_client/openapi_client/docs/PortainerStack.md +48 -0
- ptctools/portainer_client/openapi_client/docs/PortainerStackDeploymentInfo.md +31 -0
- ptctools/portainer_client/openapi_client/docs/PortainerStackOption.md +29 -0
- ptctools/portainer_client/openapi_client/docs/PortainerStackStatus.md +14 -0
- ptctools/portainer_client/openapi_client/docs/PortainerStackType.md +16 -0
- ptctools/portainer_client/openapi_client/docs/PortainerTLSConfiguration.md +33 -0
- ptctools/portainer_client/openapi_client/docs/PortainerTag.md +32 -0
- ptctools/portainer_client/openapi_client/docs/PortainerTeam.md +30 -0
- ptctools/portainer_client/openapi_client/docs/PortainerTeamMembership.md +32 -0
- ptctools/portainer_client/openapi_client/docs/PortainerTeamResourceAccess.md +30 -0
- ptctools/portainer_client/openapi_client/docs/PortainerTemplate.md +52 -0
- ptctools/portainer_client/openapi_client/docs/PortainerTemplateEnv.md +34 -0
- ptctools/portainer_client/openapi_client/docs/PortainerTemplateEnvSelect.md +31 -0
- ptctools/portainer_client/openapi_client/docs/PortainerTemplateRepository.md +30 -0
- ptctools/portainer_client/openapi_client/docs/PortainerTemplateType.md +16 -0
- ptctools/portainer_client/openapi_client/docs/PortainerTemplateVolume.md +31 -0
- ptctools/portainer_client/openapi_client/docs/PortainerUser.md +37 -0
- ptctools/portainer_client/openapi_client/docs/PortainerUserResourceAccess.md +30 -0
- ptctools/portainer_client/openapi_client/docs/PortainerUserRole.md +14 -0
- ptctools/portainer_client/openapi_client/docs/PortainerUserThemeSettings.md +29 -0
- ptctools/portainer_client/openapi_client/docs/PortainerWebhook.md +34 -0
- ptctools/portainer_client/openapi_client/docs/PortainerWebhookType.md +12 -0
- ptctools/portainer_client/openapi_client/docs/RegistriesApi.md +554 -0
- ptctools/portainer_client/openapi_client/docs/RegistriesRegistryConfigurePayload.md +37 -0
- ptctools/portainer_client/openapi_client/docs/RegistriesRegistryCreatePayload.md +38 -0
- ptctools/portainer_client/openapi_client/docs/RegistriesRegistryUpdatePayload.md +37 -0
- ptctools/portainer_client/openapi_client/docs/ReleaseChart.md +34 -0
- ptctools/portainer_client/openapi_client/docs/ReleaseChartReference.md +31 -0
- ptctools/portainer_client/openapi_client/docs/ReleaseDependency.md +36 -0
- ptctools/portainer_client/openapi_client/docs/ReleaseFile.md +30 -0
- ptctools/portainer_client/openapi_client/docs/ReleaseLock.md +31 -0
- ptctools/portainer_client/openapi_client/docs/ReleaseMaintainer.md +31 -0
- ptctools/portainer_client/openapi_client/docs/ReleaseMetadata.md +45 -0
- ptctools/portainer_client/openapi_client/docs/ReleaseReleaseElement.md +35 -0
- ptctools/portainer_client/openapi_client/docs/ReleaseValues.md +30 -0
- ptctools/portainer_client/openapi_client/docs/ResourceControlsApi.md +283 -0
- ptctools/portainer_client/openapi_client/docs/ResourceQuantity.md +29 -0
- ptctools/portainer_client/openapi_client/docs/ResourcecontrolsResourceControlCreatePayload.md +35 -0
- ptctools/portainer_client/openapi_client/docs/ResourcecontrolsResourceControlUpdatePayload.md +32 -0
- ptctools/portainer_client/openapi_client/docs/RolesApi.md +93 -0
- ptctools/portainer_client/openapi_client/docs/SettingsApi.md +251 -0
- ptctools/portainer_client/openapi_client/docs/SettingsPublicSettingsResponse.md +42 -0
- ptctools/portainer_client/openapi_client/docs/SettingsPublicSettingsResponseEdge.md +32 -0
- ptctools/portainer_client/openapi_client/docs/SettingsSettingsUpdatePayload.md +47 -0
- ptctools/portainer_client/openapi_client/docs/SslApi.md +184 -0
- ptctools/portainer_client/openapi_client/docs/SslSslUpdatePayload.md +31 -0
- ptctools/portainer_client/openapi_client/docs/StacksApi.md +2064 -0
- ptctools/portainer_client/openapi_client/docs/StacksComposeStackFromFileContentPayload.md +32 -0
- ptctools/portainer_client/openapi_client/docs/StacksComposeStackFromGitRepositoryPayload.md +40 -0
- ptctools/portainer_client/openapi_client/docs/StacksKubernetesGitDeploymentPayload.md +40 -0
- ptctools/portainer_client/openapi_client/docs/StacksKubernetesManifestURLDeploymentPayload.md +32 -0
- ptctools/portainer_client/openapi_client/docs/StacksKubernetesStringDeploymentPayload.md +33 -0
- ptctools/portainer_client/openapi_client/docs/StacksStackFileResponse.md +29 -0
- ptctools/portainer_client/openapi_client/docs/StacksStackGitRedployPayload.md +37 -0
- ptctools/portainer_client/openapi_client/docs/StacksStackGitUpdatePayload.md +37 -0
- ptctools/portainer_client/openapi_client/docs/StacksStackMigratePayload.md +31 -0
- ptctools/portainer_client/openapi_client/docs/StacksSwarmStackFromFileContentPayload.md +33 -0
- ptctools/portainer_client/openapi_client/docs/StacksSwarmStackFromGitRepositoryPayload.md +41 -0
- ptctools/portainer_client/openapi_client/docs/StacksUpdateSwarmStackPayload.md +32 -0
- ptctools/portainer_client/openapi_client/docs/StatusApi.md +75 -0
- ptctools/portainer_client/openapi_client/docs/SwarmServiceUpdateResponse.md +29 -0
- ptctools/portainer_client/openapi_client/docs/SystemApi.md +392 -0
- ptctools/portainer_client/openapi_client/docs/SystemNodesCountResponse.md +29 -0
- ptctools/portainer_client/openapi_client/docs/SystemStatus.md +30 -0
- ptctools/portainer_client/openapi_client/docs/SystemSystemInfoResponse.md +31 -0
- ptctools/portainer_client/openapi_client/docs/SystemVersionResponse.md +37 -0
- ptctools/portainer_client/openapi_client/docs/TagsApi.md +273 -0
- ptctools/portainer_client/openapi_client/docs/TagsTagCreatePayload.md +29 -0
- ptctools/portainer_client/openapi_client/docs/TeamMembershipsApi.md +463 -0
- ptctools/portainer_client/openapi_client/docs/TeammembershipsTeamMembershipCreatePayload.md +31 -0
- ptctools/portainer_client/openapi_client/docs/TeammembershipsTeamMembershipUpdatePayload.md +31 -0
- ptctools/portainer_client/openapi_client/docs/TeamsApi.md +467 -0
- ptctools/portainer_client/openapi_client/docs/TeamsTeamCreatePayload.md +30 -0
- ptctools/portainer_client/openapi_client/docs/TeamsTeamUpdatePayload.md +29 -0
- ptctools/portainer_client/openapi_client/docs/TemplatesApi.md +183 -0
- ptctools/portainer_client/openapi_client/docs/TemplatesFileResponse.md +29 -0
- ptctools/portainer_client/openapi_client/docs/TemplatesListResponse.md +30 -0
- ptctools/portainer_client/openapi_client/docs/UnstructuredUnstructured.md +29 -0
- ptctools/portainer_client/openapi_client/docs/UploadApi.md +99 -0
- ptctools/portainer_client/openapi_client/docs/UsersAccessTokenResponse.md +30 -0
- ptctools/portainer_client/openapi_client/docs/UsersAddHelmRepoUrlPayload.md +29 -0
- ptctools/portainer_client/openapi_client/docs/UsersAdminInitPayload.md +30 -0
- ptctools/portainer_client/openapi_client/docs/UsersApi.md +1159 -0
- ptctools/portainer_client/openapi_client/docs/UsersHelmUserRepositoryResponse.md +30 -0
- ptctools/portainer_client/openapi_client/docs/UsersThemePayload.md +29 -0
- ptctools/portainer_client/openapi_client/docs/UsersUserAccessTokenCreatePayload.md +30 -0
- ptctools/portainer_client/openapi_client/docs/UsersUserCreatePayload.md +31 -0
- ptctools/portainer_client/openapi_client/docs/UsersUserUpdatePasswordPayload.md +30 -0
- ptctools/portainer_client/openapi_client/docs/UsersUserUpdatePayload.md +34 -0
- ptctools/portainer_client/openapi_client/docs/V1AppArmorProfile.md +30 -0
- ptctools/portainer_client/openapi_client/docs/V1AppArmorProfileType.md +14 -0
- ptctools/portainer_client/openapi_client/docs/V1CSIPersistentVolumeSource.md +38 -0
- ptctools/portainer_client/openapi_client/docs/V1Capabilities.md +30 -0
- ptctools/portainer_client/openapi_client/docs/V1ClientIPConfig.md +29 -0
- ptctools/portainer_client/openapi_client/docs/V1Condition.md +34 -0
- ptctools/portainer_client/openapi_client/docs/V1ConfigMapEnvSource.md +30 -0
- ptctools/portainer_client/openapi_client/docs/V1ConfigMapKeySelector.md +31 -0
- ptctools/portainer_client/openapi_client/docs/V1Container.md +52 -0
- ptctools/portainer_client/openapi_client/docs/V1ContainerPort.md +33 -0
- ptctools/portainer_client/openapi_client/docs/V1ContainerResizePolicy.md +30 -0
- ptctools/portainer_client/openapi_client/docs/V1ContainerRestartPolicy.md +10 -0
- ptctools/portainer_client/openapi_client/docs/V1Duration.md +29 -0
- ptctools/portainer_client/openapi_client/docs/V1EnvFromSource.md +31 -0
- ptctools/portainer_client/openapi_client/docs/V1EnvVar.md +31 -0
- ptctools/portainer_client/openapi_client/docs/V1EnvVarSource.md +32 -0
- ptctools/portainer_client/openapi_client/docs/V1ExecAction.md +29 -0
- ptctools/portainer_client/openapi_client/docs/V1GRPCAction.md +30 -0
- ptctools/portainer_client/openapi_client/docs/V1HTTPGetAction.md +33 -0
- ptctools/portainer_client/openapi_client/docs/V1HTTPHeader.md +30 -0
- ptctools/portainer_client/openapi_client/docs/V1IPFamily.md +14 -0
- ptctools/portainer_client/openapi_client/docs/V1IPFamilyPolicy.md +14 -0
- ptctools/portainer_client/openapi_client/docs/V1LabelSelector.md +30 -0
- ptctools/portainer_client/openapi_client/docs/V1LabelSelectorOperator.md +16 -0
- ptctools/portainer_client/openapi_client/docs/V1LabelSelectorRequirement.md +31 -0
- ptctools/portainer_client/openapi_client/docs/V1Lifecycle.md +31 -0
- ptctools/portainer_client/openapi_client/docs/V1LifecycleHandler.md +32 -0
- ptctools/portainer_client/openapi_client/docs/V1ListMeta.md +32 -0
- ptctools/portainer_client/openapi_client/docs/V1LoadBalancerIPMode.md +12 -0
- ptctools/portainer_client/openapi_client/docs/V1LoadBalancerIngress.md +32 -0
- ptctools/portainer_client/openapi_client/docs/V1LoadBalancerStatus.md +29 -0
- ptctools/portainer_client/openapi_client/docs/V1ManagedFieldsEntry.md +35 -0
- ptctools/portainer_client/openapi_client/docs/V1ManagedFieldsOperationType.md +12 -0
- ptctools/portainer_client/openapi_client/docs/V1MountPropagationMode.md +14 -0
- ptctools/portainer_client/openapi_client/docs/V1NamespaceCondition.md +33 -0
- ptctools/portainer_client/openapi_client/docs/V1NamespaceConditionType.md +18 -0
- ptctools/portainer_client/openapi_client/docs/V1NamespacePhase.md +12 -0
- ptctools/portainer_client/openapi_client/docs/V1NamespaceStatus.md +30 -0
- ptctools/portainer_client/openapi_client/docs/V1ObjectFieldSelector.md +30 -0
- ptctools/portainer_client/openapi_client/docs/V1ObjectMeta.md +43 -0
- ptctools/portainer_client/openapi_client/docs/V1ObjectReference.md +35 -0
- ptctools/portainer_client/openapi_client/docs/V1OwnerReference.md +34 -0
- ptctools/portainer_client/openapi_client/docs/V1PersistentVolumeAccessMode.md +16 -0
- ptctools/portainer_client/openapi_client/docs/V1PersistentVolumeClaimPhase.md +14 -0
- ptctools/portainer_client/openapi_client/docs/V1PersistentVolumeMode.md +12 -0
- ptctools/portainer_client/openapi_client/docs/V1PersistentVolumeReclaimPolicy.md +14 -0
- ptctools/portainer_client/openapi_client/docs/V1PortStatus.md +31 -0
- ptctools/portainer_client/openapi_client/docs/V1Probe.md +38 -0
- ptctools/portainer_client/openapi_client/docs/V1ProcMountType.md +12 -0
- ptctools/portainer_client/openapi_client/docs/V1Protocol.md +14 -0
- ptctools/portainer_client/openapi_client/docs/V1PullPolicy.md +14 -0
- ptctools/portainer_client/openapi_client/docs/V1RecursiveReadOnlyMode.md +14 -0
- ptctools/portainer_client/openapi_client/docs/V1ResourceClaim.md +30 -0
- ptctools/portainer_client/openapi_client/docs/V1ResourceFieldSelector.md +31 -0
- ptctools/portainer_client/openapi_client/docs/V1ResourceName.md +48 -0
- ptctools/portainer_client/openapi_client/docs/V1ResourceQuota.md +33 -0
- ptctools/portainer_client/openapi_client/docs/V1ResourceQuotaScope.md +22 -0
- ptctools/portainer_client/openapi_client/docs/V1ResourceQuotaSpec.md +31 -0
- ptctools/portainer_client/openapi_client/docs/V1ResourceQuotaStatus.md +30 -0
- ptctools/portainer_client/openapi_client/docs/V1ResourceRequirements.md +31 -0
- ptctools/portainer_client/openapi_client/docs/V1ResourceResizeRestartPolicy.md +12 -0
- ptctools/portainer_client/openapi_client/docs/V1RoleRef.md +31 -0
- ptctools/portainer_client/openapi_client/docs/V1SELinuxOptions.md +32 -0
- ptctools/portainer_client/openapi_client/docs/V1ScopeSelector.md +29 -0
- ptctools/portainer_client/openapi_client/docs/V1ScopeSelectorOperator.md +16 -0
- ptctools/portainer_client/openapi_client/docs/V1ScopedResourceSelectorRequirement.md +31 -0
- ptctools/portainer_client/openapi_client/docs/V1SeccompProfile.md +30 -0
- ptctools/portainer_client/openapi_client/docs/V1SeccompProfileType.md +14 -0
- ptctools/portainer_client/openapi_client/docs/V1SecretEnvSource.md +30 -0
- ptctools/portainer_client/openapi_client/docs/V1SecretKeySelector.md +31 -0
- ptctools/portainer_client/openapi_client/docs/V1SecretReference.md +30 -0
- ptctools/portainer_client/openapi_client/docs/V1SecurityContext.md +40 -0
- ptctools/portainer_client/openapi_client/docs/V1Service.md +33 -0
- ptctools/portainer_client/openapi_client/docs/V1ServiceAffinity.md +12 -0
- ptctools/portainer_client/openapi_client/docs/V1ServiceExternalTrafficPolicy.md +16 -0
- ptctools/portainer_client/openapi_client/docs/V1ServiceInternalTrafficPolicy.md +12 -0
- ptctools/portainer_client/openapi_client/docs/V1ServicePort.md +34 -0
- ptctools/portainer_client/openapi_client/docs/V1ServiceSpec.md +48 -0
- ptctools/portainer_client/openapi_client/docs/V1ServiceStatus.md +30 -0
- ptctools/portainer_client/openapi_client/docs/V1ServiceType.md +16 -0
- ptctools/portainer_client/openapi_client/docs/V1SessionAffinityConfig.md +29 -0
- ptctools/portainer_client/openapi_client/docs/V1Signal.md +138 -0
- ptctools/portainer_client/openapi_client/docs/V1SleepAction.md +29 -0
- ptctools/portainer_client/openapi_client/docs/V1TCPSocketAction.md +30 -0
- ptctools/portainer_client/openapi_client/docs/V1TerminationMessagePolicy.md +12 -0
- ptctools/portainer_client/openapi_client/docs/V1URIScheme.md +12 -0
- ptctools/portainer_client/openapi_client/docs/V1VolumeDevice.md +30 -0
- ptctools/portainer_client/openapi_client/docs/V1VolumeMount.md +35 -0
- ptctools/portainer_client/openapi_client/docs/V1WindowsSecurityContextOptions.md +32 -0
- ptctools/portainer_client/openapi_client/docs/V1beta1ContainerMetrics.md +30 -0
- ptctools/portainer_client/openapi_client/docs/V1beta1NodeMetrics.md +34 -0
- ptctools/portainer_client/openapi_client/docs/V1beta1NodeMetricsList.md +32 -0
- ptctools/portainer_client/openapi_client/docs/V1beta1PodMetrics.md +34 -0
- ptctools/portainer_client/openapi_client/docs/V1beta1PodMetricsList.md +32 -0
- ptctools/portainer_client/openapi_client/docs/V2ContainerResourceMetricSource.md +31 -0
- ptctools/portainer_client/openapi_client/docs/V2ContainerResourceMetricStatus.md +31 -0
- ptctools/portainer_client/openapi_client/docs/V2CrossVersionObjectReference.md +31 -0
- ptctools/portainer_client/openapi_client/docs/V2ExternalMetricSource.md +30 -0
- ptctools/portainer_client/openapi_client/docs/V2ExternalMetricStatus.md +30 -0
- ptctools/portainer_client/openapi_client/docs/V2HPAScalingPolicy.md +31 -0
- ptctools/portainer_client/openapi_client/docs/V2HPAScalingPolicyType.md +12 -0
- ptctools/portainer_client/openapi_client/docs/V2HPAScalingRules.md +32 -0
- ptctools/portainer_client/openapi_client/docs/V2HorizontalPodAutoscaler.md +33 -0
- ptctools/portainer_client/openapi_client/docs/V2HorizontalPodAutoscalerBehavior.md +30 -0
- ptctools/portainer_client/openapi_client/docs/V2HorizontalPodAutoscalerCondition.md +33 -0
- ptctools/portainer_client/openapi_client/docs/V2HorizontalPodAutoscalerConditionType.md +14 -0
- ptctools/portainer_client/openapi_client/docs/V2HorizontalPodAutoscalerSpec.md +33 -0
- ptctools/portainer_client/openapi_client/docs/V2HorizontalPodAutoscalerStatus.md +34 -0
- ptctools/portainer_client/openapi_client/docs/V2MetricIdentifier.md +30 -0
- ptctools/portainer_client/openapi_client/docs/V2MetricSourceType.md +18 -0
- ptctools/portainer_client/openapi_client/docs/V2MetricSpec.md +34 -0
- ptctools/portainer_client/openapi_client/docs/V2MetricStatus.md +34 -0
- ptctools/portainer_client/openapi_client/docs/V2MetricTarget.md +32 -0
- ptctools/portainer_client/openapi_client/docs/V2MetricTargetType.md +14 -0
- ptctools/portainer_client/openapi_client/docs/V2MetricValueStatus.md +31 -0
- ptctools/portainer_client/openapi_client/docs/V2ObjectMetricSource.md +31 -0
- ptctools/portainer_client/openapi_client/docs/V2ObjectMetricStatus.md +31 -0
- ptctools/portainer_client/openapi_client/docs/V2PodsMetricSource.md +30 -0
- ptctools/portainer_client/openapi_client/docs/V2PodsMetricStatus.md +30 -0
- ptctools/portainer_client/openapi_client/docs/V2ResourceMetricSource.md +30 -0
- ptctools/portainer_client/openapi_client/docs/V2ResourceMetricStatus.md +30 -0
- ptctools/portainer_client/openapi_client/docs/V2ScalingPolicySelect.md +14 -0
- ptctools/portainer_client/openapi_client/docs/WebhooksApi.md +436 -0
- ptctools/portainer_client/openapi_client/docs/WebhooksWebhookCreatePayload.md +32 -0
- ptctools/portainer_client/openapi_client/docs/WebhooksWebhookUpdatePayload.md +29 -0
- ptctools/portainer_client/openapi_client/docs/WebsocketApi.md +385 -0
- ptctools/portainer_client/openapi_client/exceptions.py +220 -0
- ptctools/portainer_client/openapi_client/models/__init__.py +389 -0
- ptctools/portainer_client/openapi_client/models/auth_authenticate_payload.py +90 -0
- ptctools/portainer_client/openapi_client/models/auth_authenticate_response.py +88 -0
- ptctools/portainer_client/openapi_client/models/auth_oauth_payload.py +88 -0
- ptctools/portainer_client/openapi_client/models/backup_backup_payload.py +88 -0
- ptctools/portainer_client/openapi_client/models/backup_restore_payload.py +92 -0
- ptctools/portainer_client/openapi_client/models/build_build_info.py +100 -0
- ptctools/portainer_client/openapi_client/models/build_dependencies_info.py +94 -0
- ptctools/portainer_client/openapi_client/models/build_runtime_info.py +88 -0
- ptctools/portainer_client/openapi_client/models/containers_container_gpus_response.py +88 -0
- ptctools/portainer_client/openapi_client/models/customtemplates_custom_template_from_file_content_payload.py +114 -0
- ptctools/portainer_client/openapi_client/models/customtemplates_custom_template_from_git_repository_payload.py +128 -0
- ptctools/portainer_client/openapi_client/models/customtemplates_custom_template_update_payload.py +135 -0
- ptctools/portainer_client/openapi_client/models/customtemplates_file_response.py +88 -0
- ptctools/portainer_client/openapi_client/models/docker_container_stats.py +96 -0
- ptctools/portainer_client/openapi_client/models/docker_dashboard_response.py +106 -0
- ptctools/portainer_client/openapi_client/models/docker_images_counters.py +90 -0
- ptctools/portainer_client/openapi_client/models/edge_deployer_options_payload.py +90 -0
- ptctools/portainer_client/openapi_client/models/edge_registry_credentials.py +92 -0
- ptctools/portainer_client/openapi_client/models/edge_stack_payload.py +154 -0
- ptctools/portainer_client/openapi_client/models/edgegroups_decorated_edge_group.py +109 -0
- ptctools/portainer_client/openapi_client/models/edgegroups_edge_group_create_payload.py +96 -0
- ptctools/portainer_client/openapi_client/models/edgegroups_edge_group_update_payload.py +96 -0
- ptctools/portainer_client/openapi_client/models/edgejobs_edge_job_create_from_file_content_payload.py +98 -0
- ptctools/portainer_client/openapi_client/models/edgejobs_edge_job_file_response.py +88 -0
- ptctools/portainer_client/openapi_client/models/edgejobs_edge_job_update_payload.py +98 -0
- ptctools/portainer_client/openapi_client/models/edgejobs_file_response.py +88 -0
- ptctools/portainer_client/openapi_client/models/edgejobs_task_container.py +95 -0
- ptctools/portainer_client/openapi_client/models/edgestacks_edge_stack_from_git_repository_payload.py +114 -0
- ptctools/portainer_client/openapi_client/models/edgestacks_edge_stack_from_string_payload.py +99 -0
- ptctools/portainer_client/openapi_client/models/edgestacks_stack_file_response.py +88 -0
- ptctools/portainer_client/openapi_client/models/edgestacks_update_edge_stack_payload.py +97 -0
- ptctools/portainer_client/openapi_client/models/edgestacks_update_status_payload.py +97 -0
- ptctools/portainer_client/openapi_client/models/endpointedge_edge_job_response.py +96 -0
- ptctools/portainer_client/openapi_client/models/endpointedge_endpoint_edge_status_inspect_response.py +114 -0
- ptctools/portainer_client/openapi_client/models/endpointedge_stack_status_response.py +90 -0
- ptctools/portainer_client/openapi_client/models/endpointgroups_endpoint_group_create_payload.py +94 -0
- ptctools/portainer_client/openapi_client/models/endpointgroups_endpoint_group_update_payload.py +121 -0
- ptctools/portainer_client/openapi_client/models/endpoints_dockerhub_status_response.py +90 -0
- ptctools/portainer_client/openapi_client/models/endpoints_endpoint_create_global_key_response.py +88 -0
- ptctools/portainer_client/openapi_client/models/endpoints_endpoint_delete_batch_partial_response.py +90 -0
- ptctools/portainer_client/openapi_client/models/endpoints_endpoint_delete_batch_payload.py +96 -0
- ptctools/portainer_client/openapi_client/models/endpoints_endpoint_delete_request.py +90 -0
- ptctools/portainer_client/openapi_client/models/endpoints_endpoint_settings_update_payload.py +116 -0
- ptctools/portainer_client/openapi_client/models/endpoints_endpoint_update_payload.py +157 -0
- ptctools/portainer_client/openapi_client/models/endpoints_endpoint_update_relations_payload.py +101 -0
- ptctools/portainer_client/openapi_client/models/endpoints_endpoint_update_relations_payload_relations_value.py +92 -0
- ptctools/portainer_client/openapi_client/models/endpoints_force_update_service_payload.py +90 -0
- ptctools/portainer_client/openapi_client/models/endpoints_registry_access_payload.py +117 -0
- ptctools/portainer_client/openapi_client/models/filesystem_dir_entry.py +95 -0
- ptctools/portainer_client/openapi_client/models/github_com_portainer_portainer_pkg_libhelm_release_hook.py +106 -0
- ptctools/portainer_client/openapi_client/models/github_com_portainer_portainer_pkg_libhelm_release_hook_execution.py +92 -0
- ptctools/portainer_client/openapi_client/models/github_com_portainer_portainer_pkg_libhelm_release_info.py +108 -0
- ptctools/portainer_client/openapi_client/models/github_com_portainer_portainer_pkg_libhelm_release_release.py +132 -0
- ptctools/portainer_client/openapi_client/models/gitops_file_response.py +88 -0
- ptctools/portainer_client/openapi_client/models/gitops_repository_file_preview_payload.py +101 -0
- ptctools/portainer_client/openapi_client/models/gittypes_git_authentication.py +95 -0
- ptctools/portainer_client/openapi_client/models/gittypes_git_credential_auth_type.py +38 -0
- ptctools/portainer_client/openapi_client/models/gittypes_repo_config.py +102 -0
- ptctools/portainer_client/openapi_client/models/helm_install_chart_payload.py +100 -0
- ptctools/portainer_client/openapi_client/models/images_image_response.py +98 -0
- ptctools/portainer_client/openapi_client/models/intstr_int_or_string.py +93 -0
- ptctools/portainer_client/openapi_client/models/intstr_type.py +38 -0
- ptctools/portainer_client/openapi_client/models/k8s_io_api_core_v1_condition_status.py +39 -0
- ptctools/portainer_client/openapi_client/models/k8s_io_api_rbac_v1_subject.py +94 -0
- ptctools/portainer_client/openapi_client/models/k8s_io_apimachinery_pkg_apis_meta_v1_condition_status.py +39 -0
- ptctools/portainer_client/openapi_client/models/kubernetes_configuration.py +92 -0
- ptctools/portainer_client/openapi_client/models/kubernetes_custom_resource_metadata.py +92 -0
- ptctools/portainer_client/openapi_client/models/kubernetes_describe_resource_response.py +88 -0
- ptctools/portainer_client/openapi_client/models/kubernetes_ingress_rule.py +102 -0
- ptctools/portainer_client/openapi_client/models/kubernetes_k8s_application.py +198 -0
- ptctools/portainer_client/openapi_client/models/kubernetes_k8s_application_resource.py +94 -0
- ptctools/portainer_client/openapi_client/models/kubernetes_k8s_cluster_role.py +94 -0
- ptctools/portainer_client/openapi_client/models/kubernetes_k8s_cluster_role_binding.py +112 -0
- ptctools/portainer_client/openapi_client/models/kubernetes_k8s_config_map.py +116 -0
- ptctools/portainer_client/openapi_client/models/kubernetes_k8s_configuration_owner_resource.py +92 -0
- ptctools/portainer_client/openapi_client/models/kubernetes_k8s_cron_job.py +112 -0
- ptctools/portainer_client/openapi_client/models/kubernetes_k8s_dashboard.py +100 -0
- ptctools/portainer_client/openapi_client/models/kubernetes_k8s_event.py +114 -0
- ptctools/portainer_client/openapi_client/models/kubernetes_k8s_event_involved_object.py +94 -0
- ptctools/portainer_client/openapi_client/models/kubernetes_k8s_ingress_controller.py +98 -0
- ptctools/portainer_client/openapi_client/models/kubernetes_k8s_ingress_info.py +124 -0
- ptctools/portainer_client/openapi_client/models/kubernetes_k8s_ingress_path.py +100 -0
- ptctools/portainer_client/openapi_client/models/kubernetes_k8s_ingress_tls.py +90 -0
- ptctools/portainer_client/openapi_client/models/kubernetes_k8s_job.py +118 -0
- ptctools/portainer_client/openapi_client/models/kubernetes_k8s_namespace_details.py +98 -0
- ptctools/portainer_client/openapi_client/models/kubernetes_k8s_persistent_volume.py +128 -0
- ptctools/portainer_client/openapi_client/models/kubernetes_k8s_persistent_volume_claim.py +136 -0
- ptctools/portainer_client/openapi_client/models/kubernetes_k8s_resource_quota.py +92 -0
- ptctools/portainer_client/openapi_client/models/kubernetes_k8s_role.py +96 -0
- ptctools/portainer_client/openapi_client/models/kubernetes_k8s_role_binding.py +112 -0
- ptctools/portainer_client/openapi_client/models/kubernetes_k8s_secret.py +118 -0
- ptctools/portainer_client/openapi_client/models/kubernetes_k8s_service_account.py +96 -0
- ptctools/portainer_client/openapi_client/models/kubernetes_k8s_service_info.py +140 -0
- ptctools/portainer_client/openapi_client/models/kubernetes_k8s_service_ingress.py +90 -0
- ptctools/portainer_client/openapi_client/models/kubernetes_k8s_service_port.py +96 -0
- ptctools/portainer_client/openapi_client/models/kubernetes_k8s_storage_class.py +95 -0
- ptctools/portainer_client/openapi_client/models/kubernetes_k8s_volume_info.py +104 -0
- ptctools/portainer_client/openapi_client/models/kubernetes_metadata.py +90 -0
- ptctools/portainer_client/openapi_client/models/kubernetes_namespaces_toggle_system_payload.py +88 -0
- ptctools/portainer_client/openapi_client/models/kubernetes_pod.py +110 -0
- ptctools/portainer_client/openapi_client/models/kubernetes_published_port.py +98 -0
- ptctools/portainer_client/openapi_client/models/kubernetes_tls_info.py +88 -0
- ptctools/portainer_client/openapi_client/models/ldap_check_payload.py +92 -0
- ptctools/portainer_client/openapi_client/models/motd_motd_response.py +96 -0
- ptctools/portainer_client/openapi_client/models/oauth2_auth_style.py +39 -0
- ptctools/portainer_client/openapi_client/models/openamt_device_action_payload.py +88 -0
- ptctools/portainer_client/openapi_client/models/openamt_device_features_payload.py +92 -0
- ptctools/portainer_client/openapi_client/models/openamt_open_amt_configure_payload.py +102 -0
- ptctools/portainer_client/openapi_client/models/os_file_mode.py +51 -0
- ptctools/portainer_client/openapi_client/models/platform_container_platform.py +41 -0
- ptctools/portainer_client/openapi_client/models/portainer_access_policy.py +88 -0
- ptctools/portainer_client/openapi_client/models/portainer_api_key.py +100 -0
- ptctools/portainer_client/openapi_client/models/portainer_authentication_method.py +40 -0
- ptctools/portainer_client/openapi_client/models/portainer_auto_update_settings.py +96 -0
- ptctools/portainer_client/openapi_client/models/portainer_azure_credentials.py +92 -0
- ptctools/portainer_client/openapi_client/models/portainer_custom_template.py +134 -0
- ptctools/portainer_client/openapi_client/models/portainer_custom_template_platform.py +39 -0
- ptctools/portainer_client/openapi_client/models/portainer_custom_template_variable_definition.py +94 -0
- ptctools/portainer_client/openapi_client/models/portainer_diagnostics_data.py +94 -0
- ptctools/portainer_client/openapi_client/models/portainer_docker_snapshot.py +136 -0
- ptctools/portainer_client/openapi_client/models/portainer_ecr_data.py +88 -0
- ptctools/portainer_client/openapi_client/models/portainer_edge.py +94 -0
- ptctools/portainer_client/openapi_client/models/portainer_edge_group.py +100 -0
- ptctools/portainer_client/openapi_client/models/portainer_edge_job.py +131 -0
- ptctools/portainer_client/openapi_client/models/portainer_edge_job_endpoint_meta.py +91 -0
- ptctools/portainer_client/openapi_client/models/portainer_edge_job_logs_status.py +40 -0
- ptctools/portainer_client/openapi_client/models/portainer_edge_stack.py +124 -0
- ptctools/portainer_client/openapi_client/models/portainer_edge_stack_deployment_status.py +97 -0
- ptctools/portainer_client/openapi_client/models/portainer_edge_stack_deployment_type.py +38 -0
- ptctools/portainer_client/openapi_client/models/portainer_edge_stack_status.py +117 -0
- ptctools/portainer_client/openapi_client/models/portainer_edge_stack_status_details.py +100 -0
- ptctools/portainer_client/openapi_client/models/portainer_edge_stack_status_type.py +50 -0
- ptctools/portainer_client/openapi_client/models/portainer_endpoint.py +233 -0
- ptctools/portainer_client/openapi_client/models/portainer_endpoint_agent.py +88 -0
- ptctools/portainer_client/openapi_client/models/portainer_endpoint_group.py +139 -0
- ptctools/portainer_client/openapi_client/models/portainer_endpoint_post_init_migrations.py +90 -0
- ptctools/portainer_client/openapi_client/models/portainer_endpoint_security_settings.py +104 -0
- ptctools/portainer_client/openapi_client/models/portainer_endpoint_status.py +39 -0
- ptctools/portainer_client/openapi_client/models/portainer_endpoint_type.py +44 -0
- ptctools/portainer_client/openapi_client/models/portainer_environment_edge_settings.py +94 -0
- ptctools/portainer_client/openapi_client/models/portainer_github_registry_data.py +90 -0
- ptctools/portainer_client/openapi_client/models/portainer_gitlab_registry_data.py +92 -0
- ptctools/portainer_client/openapi_client/models/portainer_global_deployment_options.py +88 -0
- ptctools/portainer_client/openapi_client/models/portainer_helm_user_repository.py +92 -0
- ptctools/portainer_client/openapi_client/models/portainer_internal_auth_settings.py +88 -0
- ptctools/portainer_client/openapi_client/models/portainer_k8s_namespace_info.py +114 -0
- ptctools/portainer_client/openapi_client/models/portainer_k8s_node_limits.py +90 -0
- ptctools/portainer_client/openapi_client/models/portainer_kubernetes_configuration.py +120 -0
- ptctools/portainer_client/openapi_client/models/portainer_kubernetes_data.py +108 -0
- ptctools/portainer_client/openapi_client/models/portainer_kubernetes_flags.py +92 -0
- ptctools/portainer_client/openapi_client/models/portainer_kubernetes_ingress_class_config.py +94 -0
- ptctools/portainer_client/openapi_client/models/portainer_kubernetes_snapshot.py +108 -0
- ptctools/portainer_client/openapi_client/models/portainer_kubernetes_storage_class_config.py +94 -0
- ptctools/portainer_client/openapi_client/models/portainer_ldap_group_search_settings.py +92 -0
- ptctools/portainer_client/openapi_client/models/portainer_ldap_search_settings.py +92 -0
- ptctools/portainer_client/openapi_client/models/portainer_ldap_settings.py +124 -0
- ptctools/portainer_client/openapi_client/models/portainer_membership_role.py +39 -0
- ptctools/portainer_client/openapi_client/models/portainer_o_auth_settings.py +115 -0
- ptctools/portainer_client/openapi_client/models/portainer_open_amt_configuration.py +104 -0
- ptctools/portainer_client/openapi_client/models/portainer_open_amt_device_enabled_features.py +96 -0
- ptctools/portainer_client/openapi_client/models/portainer_pair.py +90 -0
- ptctools/portainer_client/openapi_client/models/portainer_performance_metrics.py +92 -0
- ptctools/portainer_client/openapi_client/models/portainer_quay_registry_data.py +90 -0
- ptctools/portainer_client/openapi_client/models/portainer_registry.py +185 -0
- ptctools/portainer_client/openapi_client/models/portainer_registry_access_policies.py +117 -0
- ptctools/portainer_client/openapi_client/models/portainer_registry_management_configuration.py +111 -0
- ptctools/portainer_client/openapi_client/models/portainer_registry_type.py +45 -0
- ptctools/portainer_client/openapi_client/models/portainer_resource_access_level.py +38 -0
- ptctools/portainer_client/openapi_client/models/portainer_resource_control.py +126 -0
- ptctools/portainer_client/openapi_client/models/portainer_resource_control_type.py +46 -0
- ptctools/portainer_client/openapi_client/models/portainer_role.py +96 -0
- ptctools/portainer_client/openapi_client/models/portainer_settings.py +187 -0
- ptctools/portainer_client/openapi_client/models/portainer_ssl_settings.py +94 -0
- ptctools/portainer_client/openapi_client/models/portainer_stack.py +152 -0
- ptctools/portainer_client/openapi_client/models/portainer_stack_deployment_info.py +92 -0
- ptctools/portainer_client/openapi_client/models/portainer_stack_option.py +88 -0
- ptctools/portainer_client/openapi_client/models/portainer_stack_status.py +39 -0
- ptctools/portainer_client/openapi_client/models/portainer_stack_type.py +40 -0
- ptctools/portainer_client/openapi_client/models/portainer_tag.py +94 -0
- ptctools/portainer_client/openapi_client/models/portainer_team.py +90 -0
- ptctools/portainer_client/openapi_client/models/portainer_team_membership.py +95 -0
- ptctools/portainer_client/openapi_client/models/portainer_team_resource_access.py +91 -0
- ptctools/portainer_client/openapi_client/models/portainer_template.py +163 -0
- ptctools/portainer_client/openapi_client/models/portainer_template_env.py +106 -0
- ptctools/portainer_client/openapi_client/models/portainer_template_env_select.py +92 -0
- ptctools/portainer_client/openapi_client/models/portainer_template_repository.py +90 -0
- ptctools/portainer_client/openapi_client/models/portainer_template_type.py +40 -0
- ptctools/portainer_client/openapi_client/models/portainer_template_volume.py +92 -0
- ptctools/portainer_client/openapi_client/models/portainer_tls_configuration.py +96 -0
- ptctools/portainer_client/openapi_client/models/portainer_user.py +109 -0
- ptctools/portainer_client/openapi_client/models/portainer_user_resource_access.py +91 -0
- ptctools/portainer_client/openapi_client/models/portainer_user_role.py +39 -0
- ptctools/portainer_client/openapi_client/models/portainer_user_theme_settings.py +98 -0
- ptctools/portainer_client/openapi_client/models/portainer_webhook.py +99 -0
- ptctools/portainer_client/openapi_client/models/portainer_webhook_type.py +38 -0
- ptctools/portainer_client/openapi_client/models/registries_registry_configure_payload.py +104 -0
- ptctools/portainer_client/openapi_client/models/registries_registry_create_payload.py +119 -0
- ptctools/portainer_client/openapi_client/models/registries_registry_update_payload.py +125 -0
- ptctools/portainer_client/openapi_client/models/release_chart.py +121 -0
- ptctools/portainer_client/openapi_client/models/release_chart_reference.py +92 -0
- ptctools/portainer_client/openapi_client/models/release_dependency.py +102 -0
- ptctools/portainer_client/openapi_client/models/release_file.py +90 -0
- ptctools/portainer_client/openapi_client/models/release_lock.py +100 -0
- ptctools/portainer_client/openapi_client/models/release_maintainer.py +92 -0
- ptctools/portainer_client/openapi_client/models/release_metadata.py +136 -0
- ptctools/portainer_client/openapi_client/models/release_release_element.py +100 -0
- ptctools/portainer_client/openapi_client/models/release_values.py +90 -0
- ptctools/portainer_client/openapi_client/models/resource_quantity.py +98 -0
- ptctools/portainer_client/openapi_client/models/resourcecontrols_resource_control_create_payload.py +101 -0
- ptctools/portainer_client/openapi_client/models/resourcecontrols_resource_control_update_payload.py +94 -0
- ptctools/portainer_client/openapi_client/models/settings_public_settings_response.py +123 -0
- ptctools/portainer_client/openapi_client/models/settings_public_settings_response_edge.py +94 -0
- ptctools/portainer_client/openapi_client/models/settings_settings_update_payload.py +148 -0
- ptctools/portainer_client/openapi_client/models/ssl_ssl_update_payload.py +92 -0
- ptctools/portainer_client/openapi_client/models/stacks_compose_stack_from_file_content_payload.py +102 -0
- ptctools/portainer_client/openapi_client/models/stacks_compose_stack_from_git_repository_payload.py +122 -0
- ptctools/portainer_client/openapi_client/models/stacks_kubernetes_git_deployment_payload.py +114 -0
- ptctools/portainer_client/openapi_client/models/stacks_kubernetes_manifest_url_deployment_payload.py +94 -0
- ptctools/portainer_client/openapi_client/models/stacks_kubernetes_string_deployment_payload.py +96 -0
- ptctools/portainer_client/openapi_client/models/stacks_stack_file_response.py +88 -0
- ptctools/portainer_client/openapi_client/models/stacks_stack_git_redploy_payload.py +113 -0
- ptctools/portainer_client/openapi_client/models/stacks_stack_git_update_payload.py +117 -0
- ptctools/portainer_client/openapi_client/models/stacks_stack_migrate_payload.py +92 -0
- ptctools/portainer_client/openapi_client/models/stacks_swarm_stack_from_file_content_payload.py +104 -0
- ptctools/portainer_client/openapi_client/models/stacks_swarm_stack_from_git_repository_payload.py +124 -0
- ptctools/portainer_client/openapi_client/models/stacks_update_swarm_stack_payload.py +102 -0
- ptctools/portainer_client/openapi_client/models/swarm_service_update_response.py +88 -0
- ptctools/portainer_client/openapi_client/models/system_nodes_count_response.py +88 -0
- ptctools/portainer_client/openapi_client/models/system_status.py +90 -0
- ptctools/portainer_client/openapi_client/models/system_system_info_response.py +93 -0
- ptctools/portainer_client/openapi_client/models/system_version_response.py +116 -0
- ptctools/portainer_client/openapi_client/models/tags_tag_create_payload.py +88 -0
- ptctools/portainer_client/openapi_client/models/teammemberships_team_membership_create_payload.py +92 -0
- ptctools/portainer_client/openapi_client/models/teammemberships_team_membership_update_payload.py +92 -0
- ptctools/portainer_client/openapi_client/models/teams_team_create_payload.py +90 -0
- ptctools/portainer_client/openapi_client/models/teams_team_update_payload.py +88 -0
- ptctools/portainer_client/openapi_client/models/templates_file_response.py +88 -0
- ptctools/portainer_client/openapi_client/models/templates_list_response.py +98 -0
- ptctools/portainer_client/openapi_client/models/unstructured_unstructured.py +88 -0
- ptctools/portainer_client/openapi_client/models/users_access_token_response.py +94 -0
- ptctools/portainer_client/openapi_client/models/users_add_helm_repo_url_payload.py +88 -0
- ptctools/portainer_client/openapi_client/models/users_admin_init_payload.py +90 -0
- ptctools/portainer_client/openapi_client/models/users_helm_user_repository_response.py +98 -0
- ptctools/portainer_client/openapi_client/models/users_theme_payload.py +98 -0
- ptctools/portainer_client/openapi_client/models/users_user_access_token_create_payload.py +90 -0
- ptctools/portainer_client/openapi_client/models/users_user_create_payload.py +92 -0
- ptctools/portainer_client/openapi_client/models/users_user_update_password_payload.py +90 -0
- ptctools/portainer_client/openapi_client/models/users_user_update_payload.py +102 -0
- ptctools/portainer_client/openapi_client/models/v1_app_armor_profile.py +91 -0
- ptctools/portainer_client/openapi_client/models/v1_app_armor_profile_type.py +39 -0
- ptctools/portainer_client/openapi_client/models/v1_capabilities.py +90 -0
- ptctools/portainer_client/openapi_client/models/v1_client_ip_config.py +88 -0
- ptctools/portainer_client/openapi_client/models/v1_condition.py +99 -0
- ptctools/portainer_client/openapi_client/models/v1_config_map_env_source.py +90 -0
- ptctools/portainer_client/openapi_client/models/v1_config_map_key_selector.py +92 -0
- ptctools/portainer_client/openapi_client/models/v1_container.py +207 -0
- ptctools/portainer_client/openapi_client/models/v1_container_port.py +97 -0
- ptctools/portainer_client/openapi_client/models/v1_container_resize_policy.py +92 -0
- ptctools/portainer_client/openapi_client/models/v1_container_restart_policy.py +37 -0
- ptctools/portainer_client/openapi_client/models/v1_csi_persistent_volume_source.py +122 -0
- ptctools/portainer_client/openapi_client/models/v1_duration.py +88 -0
- ptctools/portainer_client/openapi_client/models/v1_env_from_source.py +100 -0
- ptctools/portainer_client/openapi_client/models/v1_env_var.py +96 -0
- ptctools/portainer_client/openapi_client/models/v1_env_var_source.py +110 -0
- ptctools/portainer_client/openapi_client/models/v1_exec_action.py +88 -0
- ptctools/portainer_client/openapi_client/models/v1_grpc_action.py +90 -0
- ptctools/portainer_client/openapi_client/models/v1_http_get_action.py +109 -0
- ptctools/portainer_client/openapi_client/models/v1_http_header.py +90 -0
- ptctools/portainer_client/openapi_client/models/v1_ip_family.py +39 -0
- ptctools/portainer_client/openapi_client/models/v1_ip_family_policy.py +39 -0
- ptctools/portainer_client/openapi_client/models/v1_label_selector.py +98 -0
- ptctools/portainer_client/openapi_client/models/v1_label_selector_operator.py +40 -0
- ptctools/portainer_client/openapi_client/models/v1_label_selector_requirement.py +93 -0
- ptctools/portainer_client/openapi_client/models/v1_lifecycle.py +100 -0
- ptctools/portainer_client/openapi_client/models/v1_lifecycle_handler.py +110 -0
- ptctools/portainer_client/openapi_client/models/v1_list_meta.py +94 -0
- ptctools/portainer_client/openapi_client/models/v1_load_balancer_ingress.py +103 -0
- ptctools/portainer_client/openapi_client/models/v1_load_balancer_ip_mode.py +38 -0
- ptctools/portainer_client/openapi_client/models/v1_load_balancer_status.py +96 -0
- ptctools/portainer_client/openapi_client/models/v1_managed_fields_entry.py +101 -0
- ptctools/portainer_client/openapi_client/models/v1_managed_fields_operation_type.py +38 -0
- ptctools/portainer_client/openapi_client/models/v1_mount_propagation_mode.py +39 -0
- ptctools/portainer_client/openapi_client/models/v1_namespace_condition.py +98 -0
- ptctools/portainer_client/openapi_client/models/v1_namespace_condition_type.py +41 -0
- ptctools/portainer_client/openapi_client/models/v1_namespace_phase.py +38 -0
- ptctools/portainer_client/openapi_client/models/v1_namespace_status.py +99 -0
- ptctools/portainer_client/openapi_client/models/v1_object_field_selector.py +90 -0
- ptctools/portainer_client/openapi_client/models/v1_object_meta.py +132 -0
- ptctools/portainer_client/openapi_client/models/v1_object_reference.py +100 -0
- ptctools/portainer_client/openapi_client/models/v1_owner_reference.py +98 -0
- ptctools/portainer_client/openapi_client/models/v1_persistent_volume_access_mode.py +40 -0
- ptctools/portainer_client/openapi_client/models/v1_persistent_volume_claim_phase.py +39 -0
- ptctools/portainer_client/openapi_client/models/v1_persistent_volume_mode.py +38 -0
- ptctools/portainer_client/openapi_client/models/v1_persistent_volume_reclaim_policy.py +39 -0
- ptctools/portainer_client/openapi_client/models/v1_port_status.py +93 -0
- ptctools/portainer_client/openapi_client/models/v1_probe.py +122 -0
- ptctools/portainer_client/openapi_client/models/v1_proc_mount_type.py +38 -0
- ptctools/portainer_client/openapi_client/models/v1_protocol.py +39 -0
- ptctools/portainer_client/openapi_client/models/v1_pull_policy.py +39 -0
- ptctools/portainer_client/openapi_client/models/v1_recursive_read_only_mode.py +39 -0
- ptctools/portainer_client/openapi_client/models/v1_resource_claim.py +90 -0
- ptctools/portainer_client/openapi_client/models/v1_resource_field_selector.py +96 -0
- ptctools/portainer_client/openapi_client/models/v1_resource_name.py +56 -0
- ptctools/portainer_client/openapi_client/models/v1_resource_quota.py +108 -0
- ptctools/portainer_client/openapi_client/models/v1_resource_quota_scope.py +43 -0
- ptctools/portainer_client/openapi_client/models/v1_resource_quota_spec.py +110 -0
- ptctools/portainer_client/openapi_client/models/v1_resource_quota_status.py +115 -0
- ptctools/portainer_client/openapi_client/models/v1_resource_requirements.py +125 -0
- ptctools/portainer_client/openapi_client/models/v1_resource_resize_restart_policy.py +38 -0
- ptctools/portainer_client/openapi_client/models/v1_role_ref.py +92 -0
- ptctools/portainer_client/openapi_client/models/v1_scope_selector.py +96 -0
- ptctools/portainer_client/openapi_client/models/v1_scope_selector_operator.py +40 -0
- ptctools/portainer_client/openapi_client/models/v1_scoped_resource_selector_requirement.py +94 -0
- ptctools/portainer_client/openapi_client/models/v1_se_linux_options.py +94 -0
- ptctools/portainer_client/openapi_client/models/v1_seccomp_profile.py +91 -0
- ptctools/portainer_client/openapi_client/models/v1_seccomp_profile_type.py +39 -0
- ptctools/portainer_client/openapi_client/models/v1_secret_env_source.py +90 -0
- ptctools/portainer_client/openapi_client/models/v1_secret_key_selector.py +92 -0
- ptctools/portainer_client/openapi_client/models/v1_secret_reference.py +90 -0
- ptctools/portainer_client/openapi_client/models/v1_security_context.py +131 -0
- ptctools/portainer_client/openapi_client/models/v1_service.py +108 -0
- ptctools/portainer_client/openapi_client/models/v1_service_affinity.py +38 -0
- ptctools/portainer_client/openapi_client/models/v1_service_external_traffic_policy.py +40 -0
- ptctools/portainer_client/openapi_client/models/v1_service_internal_traffic_policy.py +38 -0
- ptctools/portainer_client/openapi_client/models/v1_service_port.py +103 -0
- ptctools/portainer_client/openapi_client/models/v1_service_spec.py +144 -0
- ptctools/portainer_client/openapi_client/models/v1_service_status.py +102 -0
- ptctools/portainer_client/openapi_client/models/v1_service_type.py +40 -0
- ptctools/portainer_client/openapi_client/models/v1_session_affinity_config.py +92 -0
- ptctools/portainer_client/openapi_client/models/v1_signal.py +101 -0
- ptctools/portainer_client/openapi_client/models/v1_sleep_action.py +88 -0
- ptctools/portainer_client/openapi_client/models/v1_tcp_socket_action.py +94 -0
- ptctools/portainer_client/openapi_client/models/v1_termination_message_policy.py +38 -0
- ptctools/portainer_client/openapi_client/models/v1_uri_scheme.py +38 -0
- ptctools/portainer_client/openapi_client/models/v1_volume_device.py +90 -0
- ptctools/portainer_client/openapi_client/models/v1_volume_mount.py +102 -0
- ptctools/portainer_client/openapi_client/models/v1_windows_security_context_options.py +94 -0
- ptctools/portainer_client/openapi_client/models/v1beta1_container_metrics.py +103 -0
- ptctools/portainer_client/openapi_client/models/v1beta1_node_metrics.py +119 -0
- ptctools/portainer_client/openapi_client/models/v1beta1_node_metrics_list.py +106 -0
- ptctools/portainer_client/openapi_client/models/v1beta1_pod_metrics.py +114 -0
- ptctools/portainer_client/openapi_client/models/v1beta1_pod_metrics_list.py +106 -0
- ptctools/portainer_client/openapi_client/models/v2_container_resource_metric_source.py +97 -0
- ptctools/portainer_client/openapi_client/models/v2_container_resource_metric_status.py +97 -0
- ptctools/portainer_client/openapi_client/models/v2_cross_version_object_reference.py +92 -0
- ptctools/portainer_client/openapi_client/models/v2_external_metric_source.py +98 -0
- ptctools/portainer_client/openapi_client/models/v2_external_metric_status.py +98 -0
- ptctools/portainer_client/openapi_client/models/v2_horizontal_pod_autoscaler.py +108 -0
- ptctools/portainer_client/openapi_client/models/v2_horizontal_pod_autoscaler_behavior.py +97 -0
- ptctools/portainer_client/openapi_client/models/v2_horizontal_pod_autoscaler_condition.py +98 -0
- ptctools/portainer_client/openapi_client/models/v2_horizontal_pod_autoscaler_condition_type.py +39 -0
- ptctools/portainer_client/openapi_client/models/v2_horizontal_pod_autoscaler_spec.py +112 -0
- ptctools/portainer_client/openapi_client/models/v2_horizontal_pod_autoscaler_status.py +114 -0
- ptctools/portainer_client/openapi_client/models/v2_hpa_scaling_policy.py +93 -0
- ptctools/portainer_client/openapi_client/models/v2_hpa_scaling_policy_type.py +38 -0
- ptctools/portainer_client/openapi_client/models/v2_hpa_scaling_rules.py +107 -0
- ptctools/portainer_client/openapi_client/models/v2_metric_identifier.py +94 -0
- ptctools/portainer_client/openapi_client/models/v2_metric_source_type.py +41 -0
- ptctools/portainer_client/openapi_client/models/v2_metric_spec.py +119 -0
- ptctools/portainer_client/openapi_client/models/v2_metric_status.py +119 -0
- ptctools/portainer_client/openapi_client/models/v2_metric_target.py +102 -0
- ptctools/portainer_client/openapi_client/models/v2_metric_target_type.py +39 -0
- ptctools/portainer_client/openapi_client/models/v2_metric_value_status.py +99 -0
- ptctools/portainer_client/openapi_client/models/v2_object_metric_source.py +104 -0
- ptctools/portainer_client/openapi_client/models/v2_object_metric_status.py +104 -0
- ptctools/portainer_client/openapi_client/models/v2_pods_metric_source.py +98 -0
- ptctools/portainer_client/openapi_client/models/v2_pods_metric_status.py +98 -0
- ptctools/portainer_client/openapi_client/models/v2_resource_metric_source.py +95 -0
- ptctools/portainer_client/openapi_client/models/v2_resource_metric_status.py +95 -0
- ptctools/portainer_client/openapi_client/models/v2_scaling_policy_select.py +39 -0
- ptctools/portainer_client/openapi_client/models/webhooks_webhook_create_payload.py +95 -0
- ptctools/portainer_client/openapi_client/models/webhooks_webhook_update_payload.py +88 -0
- ptctools/portainer_client/openapi_client/rest.py +264 -0
- ptctools/portainer_client/openapi_client/test/__init__.py +0 -0
- ptctools/portainer_client/openapi_client/test/test_auth_api.py +53 -0
- ptctools/portainer_client/openapi_client/test/test_auth_authenticate_payload.py +55 -0
- ptctools/portainer_client/openapi_client/test/test_auth_authenticate_response.py +52 -0
- ptctools/portainer_client/openapi_client/test/test_auth_oauth_payload.py +52 -0
- ptctools/portainer_client/openapi_client/test/test_backup_api.py +46 -0
- ptctools/portainer_client/openapi_client/test/test_backup_backup_payload.py +52 -0
- ptctools/portainer_client/openapi_client/test/test_backup_restore_payload.py +56 -0
- ptctools/portainer_client/openapi_client/test/test_build_build_info.py +58 -0
- ptctools/portainer_client/openapi_client/test/test_build_dependencies_info.py +55 -0
- ptctools/portainer_client/openapi_client/test/test_build_runtime_info.py +54 -0
- ptctools/portainer_client/openapi_client/test/test_containers_container_gpus_response.py +52 -0
- ptctools/portainer_client/openapi_client/test/test_custom_templates_api.py +95 -0
- ptctools/portainer_client/openapi_client/test/test_customtemplates_custom_template_from_file_content_payload.py +70 -0
- ptctools/portainer_client/openapi_client/test/test_customtemplates_custom_template_from_git_repository_payload.py +77 -0
- ptctools/portainer_client/openapi_client/test/test_customtemplates_custom_template_update_payload.py +81 -0
- ptctools/portainer_client/openapi_client/test/test_customtemplates_file_response.py +52 -0
- ptctools/portainer_client/openapi_client/test/test_docker_api.py +53 -0
- ptctools/portainer_client/openapi_client/test/test_docker_container_stats.py +56 -0
- ptctools/portainer_client/openapi_client/test/test_docker_dashboard_response.py +64 -0
- ptctools/portainer_client/openapi_client/test/test_docker_images_counters.py +53 -0
- ptctools/portainer_client/openapi_client/test/test_edge_api.py +46 -0
- ptctools/portainer_client/openapi_client/test/test_edge_deployer_options_payload.py +53 -0
- ptctools/portainer_client/openapi_client/test/test_edge_groups_api.py +67 -0
- ptctools/portainer_client/openapi_client/test/test_edge_jobs_api.py +109 -0
- ptctools/portainer_client/openapi_client/test/test_edge_registry_credentials.py +54 -0
- ptctools/portainer_client/openapi_client/test/test_edge_stack_payload.py +88 -0
- ptctools/portainer_client/openapi_client/test/test_edge_stacks_api.py +102 -0
- ptctools/portainer_client/openapi_client/test/test_edgegroups_decorated_edge_group.py +70 -0
- ptctools/portainer_client/openapi_client/test/test_edgegroups_edge_group_create_payload.py +60 -0
- ptctools/portainer_client/openapi_client/test/test_edgegroups_edge_group_update_payload.py +60 -0
- ptctools/portainer_client/openapi_client/test/test_edgejobs_edge_job_create_from_file_content_payload.py +61 -0
- ptctools/portainer_client/openapi_client/test/test_edgejobs_edge_job_file_response.py +52 -0
- ptctools/portainer_client/openapi_client/test/test_edgejobs_edge_job_update_payload.py +61 -0
- ptctools/portainer_client/openapi_client/test/test_edgejobs_file_response.py +52 -0
- ptctools/portainer_client/openapi_client/test/test_edgejobs_task_container.py +55 -0
- ptctools/portainer_client/openapi_client/test/test_edgestacks_edge_stack_from_git_repository_payload.py +69 -0
- ptctools/portainer_client/openapi_client/test/test_edgestacks_edge_stack_from_string_payload.py +67 -0
- ptctools/portainer_client/openapi_client/test/test_edgestacks_stack_file_response.py +52 -0
- ptctools/portainer_client/openapi_client/test/test_edgestacks_update_edge_stack_payload.py +58 -0
- ptctools/portainer_client/openapi_client/test/test_edgestacks_update_status_payload.py +56 -0
- ptctools/portainer_client/openapi_client/test/test_endpoint_groups_api.py +81 -0
- ptctools/portainer_client/openapi_client/test/test_endpointedge_edge_job_response.py +56 -0
- ptctools/portainer_client/openapi_client/test/test_endpointedge_endpoint_edge_status_inspect_response.py +68 -0
- ptctools/portainer_client/openapi_client/test/test_endpointedge_stack_status_response.py +53 -0
- ptctools/portainer_client/openapi_client/test/test_endpointgroups_endpoint_group_create_payload.py +56 -0
- ptctools/portainer_client/openapi_client/test/test_endpointgroups_endpoint_group_update_payload.py +62 -0
- ptctools/portainer_client/openapi_client/test/test_endpoints_api.py +179 -0
- ptctools/portainer_client/openapi_client/test/test_endpoints_dockerhub_status_response.py +53 -0
- ptctools/portainer_client/openapi_client/test/test_endpoints_endpoint_create_global_key_response.py +52 -0
- ptctools/portainer_client/openapi_client/test/test_endpoints_endpoint_delete_batch_partial_response.py +57 -0
- ptctools/portainer_client/openapi_client/test/test_endpoints_endpoint_delete_batch_payload.py +56 -0
- ptctools/portainer_client/openapi_client/test/test_endpoints_endpoint_delete_request.py +53 -0
- ptctools/portainer_client/openapi_client/test/test_endpoints_endpoint_settings_update_payload.py +66 -0
- ptctools/portainer_client/openapi_client/test/test_endpoints_endpoint_update_payload.py +131 -0
- ptctools/portainer_client/openapi_client/test/test_endpoints_endpoint_update_relations_payload.py +61 -0
- ptctools/portainer_client/openapi_client/test/test_endpoints_endpoint_update_relations_payload_relations_value.py +58 -0
- ptctools/portainer_client/openapi_client/test/test_endpoints_force_update_service_payload.py +53 -0
- ptctools/portainer_client/openapi_client/test/test_endpoints_registry_access_payload.py +62 -0
- ptctools/portainer_client/openapi_client/test/test_filesystem_dir_entry.py +55 -0
- ptctools/portainer_client/openapi_client/test/test_github_com_portainer_portainer_pkg_libhelm_release_hook.py +66 -0
- ptctools/portainer_client/openapi_client/test/test_github_com_portainer_portainer_pkg_libhelm_release_hook_execution.py +54 -0
- ptctools/portainer_client/openapi_client/test/test_github_com_portainer_portainer_pkg_libhelm_release_info.py +61 -0
- ptctools/portainer_client/openapi_client/test/test_github_com_portainer_portainer_pkg_libhelm_release_release.py +112 -0
- ptctools/portainer_client/openapi_client/test/test_gitops_api.py +39 -0
- ptctools/portainer_client/openapi_client/test/test_gitops_file_response.py +52 -0
- ptctools/portainer_client/openapi_client/test/test_gitops_repository_file_preview_payload.py +59 -0
- ptctools/portainer_client/openapi_client/test/test_gittypes_git_authentication.py +55 -0
- ptctools/portainer_client/openapi_client/test/test_gittypes_git_credential_auth_type.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_gittypes_repo_config.py +61 -0
- ptctools/portainer_client/openapi_client/test/test_helm_api.py +109 -0
- ptctools/portainer_client/openapi_client/test/test_helm_install_chart_payload.py +58 -0
- ptctools/portainer_client/openapi_client/test/test_images_image_response.py +59 -0
- ptctools/portainer_client/openapi_client/test/test_intel_api.py +74 -0
- ptctools/portainer_client/openapi_client/test/test_intstr_int_or_string.py +54 -0
- ptctools/portainer_client/openapi_client/test/test_intstr_type.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_k8s_io_api_core_v1_condition_status.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_k8s_io_api_rbac_v1_subject.py +55 -0
- ptctools/portainer_client/openapi_client/test/test_k8s_io_apimachinery_pkg_apis_meta_v1_condition_status.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_kubernetes_api.py +480 -0
- ptctools/portainer_client/openapi_client/test/test_kubernetes_configuration.py +54 -0
- ptctools/portainer_client/openapi_client/test/test_kubernetes_custom_resource_metadata.py +54 -0
- ptctools/portainer_client/openapi_client/test/test_kubernetes_describe_resource_response.py +52 -0
- ptctools/portainer_client/openapi_client/test/test_kubernetes_ingress_rule.py +60 -0
- ptctools/portainer_client/openapi_client/test/test_kubernetes_k8s_application.py +152 -0
- ptctools/portainer_client/openapi_client/test/test_kubernetes_k8s_application_resource.py +55 -0
- ptctools/portainer_client/openapi_client/test/test_kubernetes_k8s_cluster_role.py +55 -0
- ptctools/portainer_client/openapi_client/test/test_kubernetes_k8s_cluster_role_binding.py +67 -0
- ptctools/portainer_client/openapi_client/test/test_kubernetes_k8s_config_map.py +73 -0
- ptctools/portainer_client/openapi_client/test/test_kubernetes_k8s_configuration_owner_resource.py +54 -0
- ptctools/portainer_client/openapi_client/test/test_kubernetes_k8s_cron_job.py +138 -0
- ptctools/portainer_client/openapi_client/test/test_kubernetes_k8s_dashboard.py +58 -0
- ptctools/portainer_client/openapi_client/test/test_kubernetes_k8s_event.py +67 -0
- ptctools/portainer_client/openapi_client/test/test_kubernetes_k8s_event_involved_object.py +55 -0
- ptctools/portainer_client/openapi_client/test/test_kubernetes_k8s_ingress_controller.py +57 -0
- ptctools/portainer_client/openapi_client/test/test_kubernetes_k8s_ingress_info.py +83 -0
- ptctools/portainer_client/openapi_client/test/test_kubernetes_k8s_ingress_path.py +58 -0
- ptctools/portainer_client/openapi_client/test/test_kubernetes_k8s_ingress_tls.py +55 -0
- ptctools/portainer_client/openapi_client/test/test_kubernetes_k8s_job.py +127 -0
- ptctools/portainer_client/openapi_client/test/test_kubernetes_k8s_namespace_details.py +60 -0
- ptctools/portainer_client/openapi_client/test/test_kubernetes_k8s_persistent_volume.py +86 -0
- ptctools/portainer_client/openapi_client/test/test_kubernetes_k8s_persistent_volume_claim.py +174 -0
- ptctools/portainer_client/openapi_client/test/test_kubernetes_k8s_resource_quota.py +54 -0
- ptctools/portainer_client/openapi_client/test/test_kubernetes_k8s_role.py +56 -0
- ptctools/portainer_client/openapi_client/test/test_kubernetes_k8s_role_binding.py +67 -0
- ptctools/portainer_client/openapi_client/test/test_kubernetes_k8s_secret.py +74 -0
- ptctools/portainer_client/openapi_client/test/test_kubernetes_k8s_service_account.py +56 -0
- ptctools/portainer_client/openapi_client/test/test_kubernetes_k8s_service_info.py +190 -0
- ptctools/portainer_client/openapi_client/test/test_kubernetes_k8s_service_ingress.py +53 -0
- ptctools/portainer_client/openapi_client/test/test_kubernetes_k8s_service_port.py +56 -0
- ptctools/portainer_client/openapi_client/test/test_kubernetes_k8s_storage_class.py +55 -0
- ptctools/portainer_client/openapi_client/test/test_kubernetes_k8s_volume_info.py +213 -0
- ptctools/portainer_client/openapi_client/test/test_kubernetes_metadata.py +57 -0
- ptctools/portainer_client/openapi_client/test/test_kubernetes_namespaces_toggle_system_payload.py +52 -0
- ptctools/portainer_client/openapi_client/test/test_kubernetes_pod.py +65 -0
- ptctools/portainer_client/openapi_client/test/test_kubernetes_published_port.py +64 -0
- ptctools/portainer_client/openapi_client/test/test_kubernetes_tls_info.py +54 -0
- ptctools/portainer_client/openapi_client/test/test_ldap_api.py +39 -0
- ptctools/portainer_client/openapi_client/test/test_ldap_check_payload.py +76 -0
- ptctools/portainer_client/openapi_client/test/test_motd_api.py +39 -0
- ptctools/portainer_client/openapi_client/test/test_motd_motd_response.py +60 -0
- ptctools/portainer_client/openapi_client/test/test_oauth2_auth_style.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_openamt_device_action_payload.py +52 -0
- ptctools/portainer_client/openapi_client/test/test_openamt_device_features_payload.py +57 -0
- ptctools/portainer_client/openapi_client/test/test_openamt_open_amt_configure_payload.py +59 -0
- ptctools/portainer_client/openapi_client/test/test_os_file_mode.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_platform_container_platform.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_access_policy.py +52 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_api_key.py +58 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_authentication_method.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_auto_update_settings.py +56 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_azure_credentials.py +54 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_custom_template.py +95 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_custom_template_platform.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_custom_template_variable_definition.py +55 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_diagnostics_data.py +61 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_docker_snapshot.py +87 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_ecr_data.py +52 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_edge.py +55 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_edge_group.py +62 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_edge_job.py +71 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_edge_job_endpoint_meta.py +53 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_edge_job_logs_status.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_edge_stack.py +81 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_edge_stack_deployment_status.py +56 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_edge_stack_deployment_type.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_edge_stack_status.py +75 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_edge_stack_status_details.py +58 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_edge_stack_status_type.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_endpoint.py +222 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_endpoint_agent.py +52 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_endpoint_group.py +79 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_endpoint_post_init_migrations.py +53 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_endpoint_security_settings.py +60 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_endpoint_status.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_endpoint_type.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_environment_edge_settings.py +55 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_github_registry_data.py +53 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_gitlab_registry_data.py +54 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_global_deployment_options.py +52 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_helm_user_repository.py +54 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_internal_auth_settings.py +52 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_k8s_namespace_info.py +77 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_k8s_node_limits.py +53 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_kubernetes_configuration.py +76 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_kubernetes_data.py +104 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_kubernetes_flags.py +54 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_kubernetes_ingress_class_config.py +57 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_kubernetes_snapshot.py +71 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_kubernetes_storage_class_config.py +57 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_ldap_group_search_settings.py +54 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_ldap_search_settings.py +54 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_ldap_settings.py +75 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_membership_role.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_o_auth_settings.py +67 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_open_amt_configuration.py +60 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_open_amt_device_enabled_features.py +56 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_pair.py +53 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_performance_metrics.py +54 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_quay_registry_data.py +53 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_registry.py +116 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_registry_access_policies.py +62 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_registry_management_configuration.py +65 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_registry_type.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_resource_access_level.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_resource_control.py +70 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_resource_control_type.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_role.py +58 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_settings.py +146 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_ssl_settings.py +55 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_stack.py +106 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_stack_deployment_info.py +54 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_stack_option.py +52 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_stack_status.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_stack_type.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_tag.py +59 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_team.py +53 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_team_membership.py +55 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_team_resource_access.py +53 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_template.py +99 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_template_env.py +62 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_template_env_select.py +54 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_template_repository.py +53 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_template_type.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_template_volume.py +54 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_tls_configuration.py +56 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_user.py +67 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_user_resource_access.py +53 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_user_role.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_user_theme_settings.py +52 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_webhook.py +57 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_webhook_type.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_registries_api.py +74 -0
- ptctools/portainer_client/openapi_client/test/test_registries_registry_configure_payload.py +67 -0
- ptctools/portainer_client/openapi_client/test/test_registries_registry_create_payload.py +71 -0
- ptctools/portainer_client/openapi_client/test/test_registries_registry_update_payload.py +79 -0
- ptctools/portainer_client/openapi_client/test/test_release_chart.py +132 -0
- ptctools/portainer_client/openapi_client/test/test_release_chart_reference.py +54 -0
- ptctools/portainer_client/openapi_client/test/test_release_dependency.py +63 -0
- ptctools/portainer_client/openapi_client/test/test_release_file.py +55 -0
- ptctools/portainer_client/openapi_client/test/test_release_lock.py +68 -0
- ptctools/portainer_client/openapi_client/test/test_release_maintainer.py +54 -0
- ptctools/portainer_client/openapi_client/test/test_release_metadata.py +93 -0
- ptctools/portainer_client/openapi_client/test/test_release_release_element.py +58 -0
- ptctools/portainer_client/openapi_client/test/test_release_values.py +53 -0
- ptctools/portainer_client/openapi_client/test/test_resource_controls_api.py +53 -0
- ptctools/portainer_client/openapi_client/test/test_resource_quantity.py +52 -0
- ptctools/portainer_client/openapi_client/test/test_resourcecontrols_resource_control_create_payload.py +60 -0
- ptctools/portainer_client/openapi_client/test/test_resourcecontrols_resource_control_update_payload.py +55 -0
- ptctools/portainer_client/openapi_client/test/test_roles_api.py +39 -0
- ptctools/portainer_client/openapi_client/test/test_settings_api.py +53 -0
- ptctools/portainer_client/openapi_client/test/test_settings_public_settings_response.py +72 -0
- ptctools/portainer_client/openapi_client/test/test_settings_public_settings_response_edge.py +55 -0
- ptctools/portainer_client/openapi_client/test/test_settings_settings_update_payload.py +116 -0
- ptctools/portainer_client/openapi_client/test/test_ssl_api.py +46 -0
- ptctools/portainer_client/openapi_client/test/test_ssl_ssl_update_payload.py +54 -0
- ptctools/portainer_client/openapi_client/test/test_stacks_api.py +186 -0
- ptctools/portainer_client/openapi_client/test/test_stacks_compose_stack_from_file_content_payload.py +67 -0
- ptctools/portainer_client/openapi_client/test/test_stacks_compose_stack_from_git_repository_payload.py +74 -0
- ptctools/portainer_client/openapi_client/test/test_stacks_kubernetes_git_deployment_payload.py +70 -0
- ptctools/portainer_client/openapi_client/test/test_stacks_kubernetes_manifest_url_deployment_payload.py +55 -0
- ptctools/portainer_client/openapi_client/test/test_stacks_kubernetes_string_deployment_payload.py +56 -0
- ptctools/portainer_client/openapi_client/test/test_stacks_stack_file_response.py +55 -0
- ptctools/portainer_client/openapi_client/test/test_stacks_stack_git_redploy_payload.py +64 -0
- ptctools/portainer_client/openapi_client/test/test_stacks_stack_git_update_payload.py +69 -0
- ptctools/portainer_client/openapi_client/test/test_stacks_stack_migrate_payload.py +55 -0
- ptctools/portainer_client/openapi_client/test/test_stacks_swarm_stack_from_file_content_payload.py +69 -0
- ptctools/portainer_client/openapi_client/test/test_stacks_swarm_stack_from_git_repository_payload.py +76 -0
- ptctools/portainer_client/openapi_client/test/test_stacks_update_swarm_stack_payload.py +62 -0
- ptctools/portainer_client/openapi_client/test/test_status_api.py +39 -0
- ptctools/portainer_client/openapi_client/test/test_swarm_service_update_response.py +54 -0
- ptctools/portainer_client/openapi_client/test/test_system_api.py +67 -0
- ptctools/portainer_client/openapi_client/test/test_system_nodes_count_response.py +52 -0
- ptctools/portainer_client/openapi_client/test/test_system_status.py +53 -0
- ptctools/portainer_client/openapi_client/test/test_system_system_info_response.py +54 -0
- ptctools/portainer_client/openapi_client/test/test_system_version_response.py +74 -0
- ptctools/portainer_client/openapi_client/test/test_tags_api.py +53 -0
- ptctools/portainer_client/openapi_client/test/test_tags_tag_create_payload.py +53 -0
- ptctools/portainer_client/openapi_client/test/test_team_memberships_api.py +67 -0
- ptctools/portainer_client/openapi_client/test/test_teammemberships_team_membership_create_payload.py +57 -0
- ptctools/portainer_client/openapi_client/test/test_teammemberships_team_membership_update_payload.py +57 -0
- ptctools/portainer_client/openapi_client/test/test_teams_api.py +67 -0
- ptctools/portainer_client/openapi_client/test/test_teams_team_create_payload.py +54 -0
- ptctools/portainer_client/openapi_client/test/test_teams_team_update_payload.py +52 -0
- ptctools/portainer_client/openapi_client/test/test_templates_api.py +46 -0
- ptctools/portainer_client/openapi_client/test/test_templates_file_response.py +52 -0
- ptctools/portainer_client/openapi_client/test/test_templates_list_response.py +101 -0
- ptctools/portainer_client/openapi_client/test/test_unstructured_unstructured.py +52 -0
- ptctools/portainer_client/openapi_client/test/test_upload_api.py +39 -0
- ptctools/portainer_client/openapi_client/test/test_users_access_token_response.py +60 -0
- ptctools/portainer_client/openapi_client/test/test_users_add_helm_repo_url_payload.py +52 -0
- ptctools/portainer_client/openapi_client/test/test_users_admin_init_payload.py +55 -0
- ptctools/portainer_client/openapi_client/test/test_users_api.py +123 -0
- ptctools/portainer_client/openapi_client/test/test_users_helm_user_repository_response.py +58 -0
- ptctools/portainer_client/openapi_client/test/test_users_theme_payload.py +52 -0
- ptctools/portainer_client/openapi_client/test/test_users_user_access_token_create_payload.py +55 -0
- ptctools/portainer_client/openapi_client/test/test_users_user_create_payload.py +57 -0
- ptctools/portainer_client/openapi_client/test/test_users_user_update_password_payload.py +55 -0
- ptctools/portainer_client/openapi_client/test/test_users_user_update_payload.py +63 -0
- ptctools/portainer_client/openapi_client/test/test_v1_app_armor_profile.py +53 -0
- ptctools/portainer_client/openapi_client/test/test_v1_app_armor_profile_type.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_v1_capabilities.py +57 -0
- ptctools/portainer_client/openapi_client/test/test_v1_client_ip_config.py +52 -0
- ptctools/portainer_client/openapi_client/test/test_v1_condition.py +57 -0
- ptctools/portainer_client/openapi_client/test/test_v1_config_map_env_source.py +53 -0
- ptctools/portainer_client/openapi_client/test/test_v1_config_map_key_selector.py +54 -0
- ptctools/portainer_client/openapi_client/test/test_v1_container.py +165 -0
- ptctools/portainer_client/openapi_client/test/test_v1_container_port.py +56 -0
- ptctools/portainer_client/openapi_client/test/test_v1_container_resize_policy.py +53 -0
- ptctools/portainer_client/openapi_client/test/test_v1_container_restart_policy.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_v1_csi_persistent_volume_source.py +73 -0
- ptctools/portainer_client/openapi_client/test/test_v1_duration.py +52 -0
- ptctools/portainer_client/openapi_client/test/test_v1_env_from_source.py +58 -0
- ptctools/portainer_client/openapi_client/test/test_v1_env_var.py +58 -0
- ptctools/portainer_client/openapi_client/test/test_v1_env_var_source.py +66 -0
- ptctools/portainer_client/openapi_client/test/test_v1_exec_action.py +54 -0
- ptctools/portainer_client/openapi_client/test/test_v1_grpc_action.py +53 -0
- ptctools/portainer_client/openapi_client/test/test_v1_http_get_action.py +63 -0
- ptctools/portainer_client/openapi_client/test/test_v1_http_header.py +53 -0
- ptctools/portainer_client/openapi_client/test/test_v1_ip_family.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_v1_ip_family_policy.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_v1_label_selector.py +62 -0
- ptctools/portainer_client/openapi_client/test/test_v1_label_selector_operator.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_v1_label_selector_requirement.py +56 -0
- ptctools/portainer_client/openapi_client/test/test_v1_lifecycle.py +62 -0
- ptctools/portainer_client/openapi_client/test/test_v1_lifecycle_handler.py +70 -0
- ptctools/portainer_client/openapi_client/test/test_v1_list_meta.py +55 -0
- ptctools/portainer_client/openapi_client/test/test_v1_load_balancer_ingress.py +60 -0
- ptctools/portainer_client/openapi_client/test/test_v1_load_balancer_ip_mode.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_v1_load_balancer_status.py +63 -0
- ptctools/portainer_client/openapi_client/test/test_v1_managed_fields_entry.py +58 -0
- ptctools/portainer_client/openapi_client/test/test_v1_managed_fields_operation_type.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_v1_mount_propagation_mode.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_v1_namespace_condition.py +56 -0
- ptctools/portainer_client/openapi_client/test/test_v1_namespace_condition_type.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_v1_namespace_phase.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_v1_namespace_status.py +60 -0
- ptctools/portainer_client/openapi_client/test/test_v1_object_field_selector.py +53 -0
- ptctools/portainer_client/openapi_client/test/test_v1_object_meta.py +89 -0
- ptctools/portainer_client/openapi_client/test/test_v1_object_reference.py +58 -0
- ptctools/portainer_client/openapi_client/test/test_v1_owner_reference.py +57 -0
- ptctools/portainer_client/openapi_client/test/test_v1_persistent_volume_access_mode.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_v1_persistent_volume_claim_phase.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_v1_persistent_volume_mode.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_v1_persistent_volume_reclaim_policy.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_v1_port_status.py +54 -0
- ptctools/portainer_client/openapi_client/test/test_v1_probe.py +77 -0
- ptctools/portainer_client/openapi_client/test/test_v1_proc_mount_type.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_v1_protocol.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_v1_pull_policy.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_v1_recursive_read_only_mode.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_v1_resource_claim.py +53 -0
- ptctools/portainer_client/openapi_client/test/test_v1_resource_field_selector.py +55 -0
- ptctools/portainer_client/openapi_client/test/test_v1_resource_name.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_v1_resource_quota.py +101 -0
- ptctools/portainer_client/openapi_client/test/test_v1_resource_quota_scope.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_v1_resource_quota_spec.py +67 -0
- ptctools/portainer_client/openapi_client/test/test_v1_resource_quota_status.py +59 -0
- ptctools/portainer_client/openapi_client/test/test_v1_resource_requirements.py +64 -0
- ptctools/portainer_client/openapi_client/test/test_v1_resource_resize_restart_policy.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_v1_role_ref.py +54 -0
- ptctools/portainer_client/openapi_client/test/test_v1_scope_selector.py +59 -0
- ptctools/portainer_client/openapi_client/test/test_v1_scope_selector_operator.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_v1_scoped_resource_selector_requirement.py +56 -0
- ptctools/portainer_client/openapi_client/test/test_v1_se_linux_options.py +55 -0
- ptctools/portainer_client/openapi_client/test/test_v1_seccomp_profile.py +53 -0
- ptctools/portainer_client/openapi_client/test/test_v1_seccomp_profile_type.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_v1_secret_env_source.py +53 -0
- ptctools/portainer_client/openapi_client/test/test_v1_secret_key_selector.py +54 -0
- ptctools/portainer_client/openapi_client/test/test_v1_secret_reference.py +53 -0
- ptctools/portainer_client/openapi_client/test/test_v1_security_context.py +81 -0
- ptctools/portainer_client/openapi_client/test/test_v1_service.py +142 -0
- ptctools/portainer_client/openapi_client/test/test_v1_service_affinity.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_v1_service_external_traffic_policy.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_v1_service_internal_traffic_policy.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_v1_service_port.py +60 -0
- ptctools/portainer_client/openapi_client/test/test_v1_service_spec.py +90 -0
- ptctools/portainer_client/openapi_client/test/test_v1_service_status.py +73 -0
- ptctools/portainer_client/openapi_client/test/test_v1_service_type.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_v1_session_affinity_config.py +53 -0
- ptctools/portainer_client/openapi_client/test/test_v1_signal.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_v1_sleep_action.py +52 -0
- ptctools/portainer_client/openapi_client/test/test_v1_tcp_socket_action.py +56 -0
- ptctools/portainer_client/openapi_client/test/test_v1_termination_message_policy.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_v1_uri_scheme.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_v1_volume_device.py +53 -0
- ptctools/portainer_client/openapi_client/test/test_v1_volume_mount.py +58 -0
- ptctools/portainer_client/openapi_client/test/test_v1_windows_security_context_options.py +55 -0
- ptctools/portainer_client/openapi_client/test/test_v1beta1_container_metrics.py +56 -0
- ptctools/portainer_client/openapi_client/test/test_v1beta1_node_metrics.py +99 -0
- ptctools/portainer_client/openapi_client/test/test_v1beta1_node_metrics_list.py +68 -0
- ptctools/portainer_client/openapi_client/test/test_v1beta1_pod_metrics.py +100 -0
- ptctools/portainer_client/openapi_client/test/test_v1beta1_pod_metrics_list.py +72 -0
- ptctools/portainer_client/openapi_client/test/test_v2_container_resource_metric_source.py +58 -0
- ptctools/portainer_client/openapi_client/test/test_v2_container_resource_metric_status.py +57 -0
- ptctools/portainer_client/openapi_client/test/test_v2_cross_version_object_reference.py +54 -0
- ptctools/portainer_client/openapi_client/test/test_v2_external_metric_source.py +59 -0
- ptctools/portainer_client/openapi_client/test/test_v2_external_metric_status.py +58 -0
- ptctools/portainer_client/openapi_client/test/test_v2_horizontal_pod_autoscaler.py +128 -0
- ptctools/portainer_client/openapi_client/test/test_v2_horizontal_pod_autoscaler_behavior.py +71 -0
- ptctools/portainer_client/openapi_client/test/test_v2_horizontal_pod_autoscaler_condition.py +56 -0
- ptctools/portainer_client/openapi_client/test/test_v2_horizontal_pod_autoscaler_condition_type.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_v2_horizontal_pod_autoscaler_spec.py +69 -0
- ptctools/portainer_client/openapi_client/test/test_v2_horizontal_pod_autoscaler_status.py +72 -0
- ptctools/portainer_client/openapi_client/test/test_v2_hpa_scaling_policy.py +54 -0
- ptctools/portainer_client/openapi_client/test/test_v2_hpa_scaling_policy_type.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_v2_hpa_scaling_rules.py +61 -0
- ptctools/portainer_client/openapi_client/test/test_v2_metric_identifier.py +64 -0
- ptctools/portainer_client/openapi_client/test/test_v2_metric_source_type.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_v2_metric_spec.py +69 -0
- ptctools/portainer_client/openapi_client/test/test_v2_metric_status.py +69 -0
- ptctools/portainer_client/openapi_client/test/test_v2_metric_target.py +57 -0
- ptctools/portainer_client/openapi_client/test/test_v2_metric_target_type.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_v2_metric_value_status.py +56 -0
- ptctools/portainer_client/openapi_client/test/test_v2_object_metric_source.py +63 -0
- ptctools/portainer_client/openapi_client/test/test_v2_object_metric_status.py +62 -0
- ptctools/portainer_client/openapi_client/test/test_v2_pods_metric_source.py +59 -0
- ptctools/portainer_client/openapi_client/test/test_v2_pods_metric_status.py +58 -0
- ptctools/portainer_client/openapi_client/test/test_v2_resource_metric_source.py +57 -0
- ptctools/portainer_client/openapi_client/test/test_v2_resource_metric_status.py +56 -0
- ptctools/portainer_client/openapi_client/test/test_v2_scaling_policy_select.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_webhooks_api.py +67 -0
- ptctools/portainer_client/openapi_client/test/test_webhooks_webhook_create_payload.py +55 -0
- ptctools/portainer_client/openapi_client/test/test_webhooks_webhook_update_payload.py +52 -0
- ptctools/portainer_client/openapi_client/test/test_websocket_api.py +60 -0
- ptctools/portainer_client/openapi_client_README.md +707 -0
- ptctools/secret.py +146 -0
- ptctools/stack.py +216 -261
- ptctools/utils.py +8 -0
- ptctools/volume.py +668 -89
- ptctools-0.2.0.dist-info/METADATA +162 -0
- ptctools-0.2.0.dist-info/RECORD +1241 -0
- ptctools-0.1.0.dist-info/METADATA +0 -99
- ptctools-0.1.0.dist-info/RECORD +0 -14
- {ptctools-0.1.0.dist-info → ptctools-0.2.0.dist-info}/WHEEL +0 -0
- {ptctools-0.1.0.dist-info → ptctools-0.2.0.dist-info}/entry_points.txt +0 -0
- {ptctools-0.1.0.dist-info → ptctools-0.2.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -0,0 +1,1965 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
PortainerCE API
|
|
5
|
+
|
|
6
|
+
Portainer API is an HTTP API served by Portainer. It is used by the Portainer UI and everything you can do with the UI can be done using the HTTP API. Examples are available at https://documentation.portainer.io/api/api-examples/ You can find out more about Portainer at [http://portainer.io](http://portainer.io) and get some support on [Slack](http://portainer.io/slack/). # Authentication Most of the API environments(endpoints) require to be authenticated as well as some level of authorization to be used. Portainer API uses JSON Web Token to manage authentication and thus requires you to provide a token in the **Authorization** header of each request with the **Bearer** authentication mechanism. Example: ``` Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwidXNlcm5hbWUiOiJhZG1pbiIsInJvbGUiOjEsImV4cCI6MTQ5OTM3NjE1NH0.NJ6vE8FY1WG6jsRQzfMqeatJ4vh2TWAeeYfDhP71YEE ``` # Security Each API environment(endpoint) has an associated access policy, it is documented in the description of each environment(endpoint). Different access policies are available: - Public access - Authenticated access - Restricted access - Administrator access ### Public access No authentication is required to access the environments(endpoints) with this access policy. ### Authenticated access Authentication is required to access the environments(endpoints) with this access policy. ### Restricted access Authentication is required to access the environments(endpoints) with this access policy. Extra-checks might be added to ensure access to the resource is granted. Returned data might also be filtered. ### Administrator access Authentication as well as an administrator role are required to access the environments(endpoints) with this access policy. # Execute Docker requests Portainer **DO NOT** expose specific environments(endpoints) to manage your Docker resources (create a container, remove a volume, etc...). Instead, it acts as a reverse-proxy to the Docker HTTP API. This means that you can execute Docker requests **via** the Portainer HTTP API. To do so, you can use the `/endpoints/{id}/docker` Portainer API environment(endpoint) (which is not documented below due to Swagger limitations). This environment(endpoint) has a restricted access policy so you still need to be authenticated to be able to query this environment(endpoint). Any query on this environment(endpoint) will be proxied to the Docker API of the associated environment(endpoint) (requests and responses objects are the same as documented in the Docker API). # Private Registry Using private registry, you will need to pass a based64 encoded JSON string ‘{\"registryId\":\\<registryID value\\>}’ inside the Request Header. The parameter name is \"X-Registry-Auth\". \\<registryID value\\> - The registry ID where the repository was created. Example: ``` eyJyZWdpc3RyeUlkIjoxfQ== ``` **NOTE**: You can find more information on how to query the Docker API in the [Docker official documentation](https://docs.docker.com/engine/api/v1.30/) as well as in [this Portainer example](https://documentation.portainer.io/api/api-examples/).
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 2.33.6
|
|
9
|
+
Contact: info@portainer.io
|
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
|
+
|
|
12
|
+
Do not edit the class manually.
|
|
13
|
+
""" # noqa: E501
|
|
14
|
+
|
|
15
|
+
import warnings
|
|
16
|
+
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
17
|
+
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
18
|
+
from typing_extensions import Annotated
|
|
19
|
+
|
|
20
|
+
from pydantic import Field, StrictInt
|
|
21
|
+
from typing import List
|
|
22
|
+
from typing_extensions import Annotated
|
|
23
|
+
from openapi_client.models.endpointgroups_endpoint_group_create_payload import EndpointgroupsEndpointGroupCreatePayload
|
|
24
|
+
from openapi_client.models.endpointgroups_endpoint_group_update_payload import EndpointgroupsEndpointGroupUpdatePayload
|
|
25
|
+
from openapi_client.models.portainer_endpoint_group import PortainerEndpointGroup
|
|
26
|
+
|
|
27
|
+
from openapi_client.api_client import ApiClient, RequestSerialized
|
|
28
|
+
from openapi_client.api_response import ApiResponse
|
|
29
|
+
from openapi_client.rest import RESTResponseType
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
class EndpointGroupsApi:
|
|
33
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
34
|
+
Ref: https://openapi-generator.tech
|
|
35
|
+
|
|
36
|
+
Do not edit the class manually.
|
|
37
|
+
"""
|
|
38
|
+
|
|
39
|
+
def __init__(self, api_client=None) -> None:
|
|
40
|
+
if api_client is None:
|
|
41
|
+
api_client = ApiClient.get_default()
|
|
42
|
+
self.api_client = api_client
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
@validate_call
|
|
46
|
+
def endpoint_group_add_endpoint(
|
|
47
|
+
self,
|
|
48
|
+
id: Annotated[StrictInt, Field(description="EndpointGroup identifier")],
|
|
49
|
+
endpoint_id: Annotated[StrictInt, Field(description="Environment(Endpoint) identifier")],
|
|
50
|
+
_request_timeout: Union[
|
|
51
|
+
None,
|
|
52
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
53
|
+
Tuple[
|
|
54
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
55
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
56
|
+
]
|
|
57
|
+
] = None,
|
|
58
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
59
|
+
_content_type: Optional[StrictStr] = None,
|
|
60
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
61
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
62
|
+
) -> None:
|
|
63
|
+
"""Add an environment(endpoint) to an environment(endpoint) group
|
|
64
|
+
|
|
65
|
+
Add an environment(endpoint) to an environment(endpoint) group **Access policy**: administrator
|
|
66
|
+
|
|
67
|
+
:param id: EndpointGroup identifier (required)
|
|
68
|
+
:type id: int
|
|
69
|
+
:param endpoint_id: Environment(Endpoint) identifier (required)
|
|
70
|
+
:type endpoint_id: int
|
|
71
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
72
|
+
number provided, it will be total request
|
|
73
|
+
timeout. It can also be a pair (tuple) of
|
|
74
|
+
(connection, read) timeouts.
|
|
75
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
76
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
77
|
+
request; this effectively ignores the
|
|
78
|
+
authentication in the spec for a single request.
|
|
79
|
+
:type _request_auth: dict, optional
|
|
80
|
+
:param _content_type: force content-type for the request.
|
|
81
|
+
:type _content_type: str, Optional
|
|
82
|
+
:param _headers: set to override the headers for a single
|
|
83
|
+
request; this effectively ignores the headers
|
|
84
|
+
in the spec for a single request.
|
|
85
|
+
:type _headers: dict, optional
|
|
86
|
+
:param _host_index: set to override the host_index for a single
|
|
87
|
+
request; this effectively ignores the host_index
|
|
88
|
+
in the spec for a single request.
|
|
89
|
+
:type _host_index: int, optional
|
|
90
|
+
:return: Returns the result object.
|
|
91
|
+
""" # noqa: E501
|
|
92
|
+
|
|
93
|
+
_param = self._endpoint_group_add_endpoint_serialize(
|
|
94
|
+
id=id,
|
|
95
|
+
endpoint_id=endpoint_id,
|
|
96
|
+
_request_auth=_request_auth,
|
|
97
|
+
_content_type=_content_type,
|
|
98
|
+
_headers=_headers,
|
|
99
|
+
_host_index=_host_index
|
|
100
|
+
)
|
|
101
|
+
|
|
102
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
103
|
+
'204': None,
|
|
104
|
+
'400': None,
|
|
105
|
+
'404': None,
|
|
106
|
+
'500': None,
|
|
107
|
+
}
|
|
108
|
+
response_data = self.api_client.call_api(
|
|
109
|
+
*_param,
|
|
110
|
+
_request_timeout=_request_timeout
|
|
111
|
+
)
|
|
112
|
+
response_data.read()
|
|
113
|
+
return self.api_client.response_deserialize(
|
|
114
|
+
response_data=response_data,
|
|
115
|
+
response_types_map=_response_types_map,
|
|
116
|
+
).data
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
@validate_call
|
|
120
|
+
def endpoint_group_add_endpoint_with_http_info(
|
|
121
|
+
self,
|
|
122
|
+
id: Annotated[StrictInt, Field(description="EndpointGroup identifier")],
|
|
123
|
+
endpoint_id: Annotated[StrictInt, Field(description="Environment(Endpoint) identifier")],
|
|
124
|
+
_request_timeout: Union[
|
|
125
|
+
None,
|
|
126
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
127
|
+
Tuple[
|
|
128
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
129
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
130
|
+
]
|
|
131
|
+
] = None,
|
|
132
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
133
|
+
_content_type: Optional[StrictStr] = None,
|
|
134
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
135
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
136
|
+
) -> ApiResponse[None]:
|
|
137
|
+
"""Add an environment(endpoint) to an environment(endpoint) group
|
|
138
|
+
|
|
139
|
+
Add an environment(endpoint) to an environment(endpoint) group **Access policy**: administrator
|
|
140
|
+
|
|
141
|
+
:param id: EndpointGroup identifier (required)
|
|
142
|
+
:type id: int
|
|
143
|
+
:param endpoint_id: Environment(Endpoint) identifier (required)
|
|
144
|
+
:type endpoint_id: int
|
|
145
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
146
|
+
number provided, it will be total request
|
|
147
|
+
timeout. It can also be a pair (tuple) of
|
|
148
|
+
(connection, read) timeouts.
|
|
149
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
150
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
151
|
+
request; this effectively ignores the
|
|
152
|
+
authentication in the spec for a single request.
|
|
153
|
+
:type _request_auth: dict, optional
|
|
154
|
+
:param _content_type: force content-type for the request.
|
|
155
|
+
:type _content_type: str, Optional
|
|
156
|
+
:param _headers: set to override the headers for a single
|
|
157
|
+
request; this effectively ignores the headers
|
|
158
|
+
in the spec for a single request.
|
|
159
|
+
:type _headers: dict, optional
|
|
160
|
+
:param _host_index: set to override the host_index for a single
|
|
161
|
+
request; this effectively ignores the host_index
|
|
162
|
+
in the spec for a single request.
|
|
163
|
+
:type _host_index: int, optional
|
|
164
|
+
:return: Returns the result object.
|
|
165
|
+
""" # noqa: E501
|
|
166
|
+
|
|
167
|
+
_param = self._endpoint_group_add_endpoint_serialize(
|
|
168
|
+
id=id,
|
|
169
|
+
endpoint_id=endpoint_id,
|
|
170
|
+
_request_auth=_request_auth,
|
|
171
|
+
_content_type=_content_type,
|
|
172
|
+
_headers=_headers,
|
|
173
|
+
_host_index=_host_index
|
|
174
|
+
)
|
|
175
|
+
|
|
176
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
177
|
+
'204': None,
|
|
178
|
+
'400': None,
|
|
179
|
+
'404': None,
|
|
180
|
+
'500': None,
|
|
181
|
+
}
|
|
182
|
+
response_data = self.api_client.call_api(
|
|
183
|
+
*_param,
|
|
184
|
+
_request_timeout=_request_timeout
|
|
185
|
+
)
|
|
186
|
+
response_data.read()
|
|
187
|
+
return self.api_client.response_deserialize(
|
|
188
|
+
response_data=response_data,
|
|
189
|
+
response_types_map=_response_types_map,
|
|
190
|
+
)
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
@validate_call
|
|
194
|
+
def endpoint_group_add_endpoint_without_preload_content(
|
|
195
|
+
self,
|
|
196
|
+
id: Annotated[StrictInt, Field(description="EndpointGroup identifier")],
|
|
197
|
+
endpoint_id: Annotated[StrictInt, Field(description="Environment(Endpoint) identifier")],
|
|
198
|
+
_request_timeout: Union[
|
|
199
|
+
None,
|
|
200
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
201
|
+
Tuple[
|
|
202
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
203
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
204
|
+
]
|
|
205
|
+
] = None,
|
|
206
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
207
|
+
_content_type: Optional[StrictStr] = None,
|
|
208
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
209
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
210
|
+
) -> RESTResponseType:
|
|
211
|
+
"""Add an environment(endpoint) to an environment(endpoint) group
|
|
212
|
+
|
|
213
|
+
Add an environment(endpoint) to an environment(endpoint) group **Access policy**: administrator
|
|
214
|
+
|
|
215
|
+
:param id: EndpointGroup identifier (required)
|
|
216
|
+
:type id: int
|
|
217
|
+
:param endpoint_id: Environment(Endpoint) identifier (required)
|
|
218
|
+
:type endpoint_id: int
|
|
219
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
220
|
+
number provided, it will be total request
|
|
221
|
+
timeout. It can also be a pair (tuple) of
|
|
222
|
+
(connection, read) timeouts.
|
|
223
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
224
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
225
|
+
request; this effectively ignores the
|
|
226
|
+
authentication in the spec for a single request.
|
|
227
|
+
:type _request_auth: dict, optional
|
|
228
|
+
:param _content_type: force content-type for the request.
|
|
229
|
+
:type _content_type: str, Optional
|
|
230
|
+
:param _headers: set to override the headers for a single
|
|
231
|
+
request; this effectively ignores the headers
|
|
232
|
+
in the spec for a single request.
|
|
233
|
+
:type _headers: dict, optional
|
|
234
|
+
:param _host_index: set to override the host_index for a single
|
|
235
|
+
request; this effectively ignores the host_index
|
|
236
|
+
in the spec for a single request.
|
|
237
|
+
:type _host_index: int, optional
|
|
238
|
+
:return: Returns the result object.
|
|
239
|
+
""" # noqa: E501
|
|
240
|
+
|
|
241
|
+
_param = self._endpoint_group_add_endpoint_serialize(
|
|
242
|
+
id=id,
|
|
243
|
+
endpoint_id=endpoint_id,
|
|
244
|
+
_request_auth=_request_auth,
|
|
245
|
+
_content_type=_content_type,
|
|
246
|
+
_headers=_headers,
|
|
247
|
+
_host_index=_host_index
|
|
248
|
+
)
|
|
249
|
+
|
|
250
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
251
|
+
'204': None,
|
|
252
|
+
'400': None,
|
|
253
|
+
'404': None,
|
|
254
|
+
'500': None,
|
|
255
|
+
}
|
|
256
|
+
response_data = self.api_client.call_api(
|
|
257
|
+
*_param,
|
|
258
|
+
_request_timeout=_request_timeout
|
|
259
|
+
)
|
|
260
|
+
return response_data.response
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
def _endpoint_group_add_endpoint_serialize(
|
|
264
|
+
self,
|
|
265
|
+
id,
|
|
266
|
+
endpoint_id,
|
|
267
|
+
_request_auth,
|
|
268
|
+
_content_type,
|
|
269
|
+
_headers,
|
|
270
|
+
_host_index,
|
|
271
|
+
) -> RequestSerialized:
|
|
272
|
+
|
|
273
|
+
_host = None
|
|
274
|
+
|
|
275
|
+
_collection_formats: Dict[str, str] = {
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
_path_params: Dict[str, str] = {}
|
|
279
|
+
_query_params: List[Tuple[str, str]] = []
|
|
280
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
281
|
+
_form_params: List[Tuple[str, str]] = []
|
|
282
|
+
_files: Dict[
|
|
283
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
284
|
+
] = {}
|
|
285
|
+
_body_params: Optional[bytes] = None
|
|
286
|
+
|
|
287
|
+
# process the path parameters
|
|
288
|
+
if id is not None:
|
|
289
|
+
_path_params['id'] = id
|
|
290
|
+
if endpoint_id is not None:
|
|
291
|
+
_path_params['endpointId'] = endpoint_id
|
|
292
|
+
# process the query parameters
|
|
293
|
+
# process the header parameters
|
|
294
|
+
# process the form parameters
|
|
295
|
+
# process the body parameter
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
|
|
299
|
+
|
|
300
|
+
# authentication setting
|
|
301
|
+
_auth_settings: List[str] = [
|
|
302
|
+
'jwt',
|
|
303
|
+
'ApiKeyAuth'
|
|
304
|
+
]
|
|
305
|
+
|
|
306
|
+
return self.api_client.param_serialize(
|
|
307
|
+
method='PUT',
|
|
308
|
+
resource_path='/endpoint_groups/{id}/endpoints/{endpointId}',
|
|
309
|
+
path_params=_path_params,
|
|
310
|
+
query_params=_query_params,
|
|
311
|
+
header_params=_header_params,
|
|
312
|
+
body=_body_params,
|
|
313
|
+
post_params=_form_params,
|
|
314
|
+
files=_files,
|
|
315
|
+
auth_settings=_auth_settings,
|
|
316
|
+
collection_formats=_collection_formats,
|
|
317
|
+
_host=_host,
|
|
318
|
+
_request_auth=_request_auth
|
|
319
|
+
)
|
|
320
|
+
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
|
|
324
|
+
@validate_call
|
|
325
|
+
def endpoint_group_delete(
|
|
326
|
+
self,
|
|
327
|
+
id: Annotated[StrictInt, Field(description="EndpointGroup identifier")],
|
|
328
|
+
_request_timeout: Union[
|
|
329
|
+
None,
|
|
330
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
331
|
+
Tuple[
|
|
332
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
333
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
334
|
+
]
|
|
335
|
+
] = None,
|
|
336
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
337
|
+
_content_type: Optional[StrictStr] = None,
|
|
338
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
339
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
340
|
+
) -> None:
|
|
341
|
+
"""Remove an environment(endpoint) group
|
|
342
|
+
|
|
343
|
+
Remove an environment(endpoint) group. **Access policy**: administrator
|
|
344
|
+
|
|
345
|
+
:param id: EndpointGroup identifier (required)
|
|
346
|
+
:type id: int
|
|
347
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
348
|
+
number provided, it will be total request
|
|
349
|
+
timeout. It can also be a pair (tuple) of
|
|
350
|
+
(connection, read) timeouts.
|
|
351
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
352
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
353
|
+
request; this effectively ignores the
|
|
354
|
+
authentication in the spec for a single request.
|
|
355
|
+
:type _request_auth: dict, optional
|
|
356
|
+
:param _content_type: force content-type for the request.
|
|
357
|
+
:type _content_type: str, Optional
|
|
358
|
+
:param _headers: set to override the headers for a single
|
|
359
|
+
request; this effectively ignores the headers
|
|
360
|
+
in the spec for a single request.
|
|
361
|
+
:type _headers: dict, optional
|
|
362
|
+
:param _host_index: set to override the host_index for a single
|
|
363
|
+
request; this effectively ignores the host_index
|
|
364
|
+
in the spec for a single request.
|
|
365
|
+
:type _host_index: int, optional
|
|
366
|
+
:return: Returns the result object.
|
|
367
|
+
""" # noqa: E501
|
|
368
|
+
|
|
369
|
+
_param = self._endpoint_group_delete_serialize(
|
|
370
|
+
id=id,
|
|
371
|
+
_request_auth=_request_auth,
|
|
372
|
+
_content_type=_content_type,
|
|
373
|
+
_headers=_headers,
|
|
374
|
+
_host_index=_host_index
|
|
375
|
+
)
|
|
376
|
+
|
|
377
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
378
|
+
'204': None,
|
|
379
|
+
'400': None,
|
|
380
|
+
'404': None,
|
|
381
|
+
'500': None,
|
|
382
|
+
}
|
|
383
|
+
response_data = self.api_client.call_api(
|
|
384
|
+
*_param,
|
|
385
|
+
_request_timeout=_request_timeout
|
|
386
|
+
)
|
|
387
|
+
response_data.read()
|
|
388
|
+
return self.api_client.response_deserialize(
|
|
389
|
+
response_data=response_data,
|
|
390
|
+
response_types_map=_response_types_map,
|
|
391
|
+
).data
|
|
392
|
+
|
|
393
|
+
|
|
394
|
+
@validate_call
|
|
395
|
+
def endpoint_group_delete_with_http_info(
|
|
396
|
+
self,
|
|
397
|
+
id: Annotated[StrictInt, Field(description="EndpointGroup identifier")],
|
|
398
|
+
_request_timeout: Union[
|
|
399
|
+
None,
|
|
400
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
401
|
+
Tuple[
|
|
402
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
403
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
404
|
+
]
|
|
405
|
+
] = None,
|
|
406
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
407
|
+
_content_type: Optional[StrictStr] = None,
|
|
408
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
409
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
410
|
+
) -> ApiResponse[None]:
|
|
411
|
+
"""Remove an environment(endpoint) group
|
|
412
|
+
|
|
413
|
+
Remove an environment(endpoint) group. **Access policy**: administrator
|
|
414
|
+
|
|
415
|
+
:param id: EndpointGroup identifier (required)
|
|
416
|
+
:type id: int
|
|
417
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
418
|
+
number provided, it will be total request
|
|
419
|
+
timeout. It can also be a pair (tuple) of
|
|
420
|
+
(connection, read) timeouts.
|
|
421
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
422
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
423
|
+
request; this effectively ignores the
|
|
424
|
+
authentication in the spec for a single request.
|
|
425
|
+
:type _request_auth: dict, optional
|
|
426
|
+
:param _content_type: force content-type for the request.
|
|
427
|
+
:type _content_type: str, Optional
|
|
428
|
+
:param _headers: set to override the headers for a single
|
|
429
|
+
request; this effectively ignores the headers
|
|
430
|
+
in the spec for a single request.
|
|
431
|
+
:type _headers: dict, optional
|
|
432
|
+
:param _host_index: set to override the host_index for a single
|
|
433
|
+
request; this effectively ignores the host_index
|
|
434
|
+
in the spec for a single request.
|
|
435
|
+
:type _host_index: int, optional
|
|
436
|
+
:return: Returns the result object.
|
|
437
|
+
""" # noqa: E501
|
|
438
|
+
|
|
439
|
+
_param = self._endpoint_group_delete_serialize(
|
|
440
|
+
id=id,
|
|
441
|
+
_request_auth=_request_auth,
|
|
442
|
+
_content_type=_content_type,
|
|
443
|
+
_headers=_headers,
|
|
444
|
+
_host_index=_host_index
|
|
445
|
+
)
|
|
446
|
+
|
|
447
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
448
|
+
'204': None,
|
|
449
|
+
'400': None,
|
|
450
|
+
'404': None,
|
|
451
|
+
'500': None,
|
|
452
|
+
}
|
|
453
|
+
response_data = self.api_client.call_api(
|
|
454
|
+
*_param,
|
|
455
|
+
_request_timeout=_request_timeout
|
|
456
|
+
)
|
|
457
|
+
response_data.read()
|
|
458
|
+
return self.api_client.response_deserialize(
|
|
459
|
+
response_data=response_data,
|
|
460
|
+
response_types_map=_response_types_map,
|
|
461
|
+
)
|
|
462
|
+
|
|
463
|
+
|
|
464
|
+
@validate_call
|
|
465
|
+
def endpoint_group_delete_without_preload_content(
|
|
466
|
+
self,
|
|
467
|
+
id: Annotated[StrictInt, Field(description="EndpointGroup identifier")],
|
|
468
|
+
_request_timeout: Union[
|
|
469
|
+
None,
|
|
470
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
471
|
+
Tuple[
|
|
472
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
473
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
474
|
+
]
|
|
475
|
+
] = None,
|
|
476
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
477
|
+
_content_type: Optional[StrictStr] = None,
|
|
478
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
479
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
480
|
+
) -> RESTResponseType:
|
|
481
|
+
"""Remove an environment(endpoint) group
|
|
482
|
+
|
|
483
|
+
Remove an environment(endpoint) group. **Access policy**: administrator
|
|
484
|
+
|
|
485
|
+
:param id: EndpointGroup identifier (required)
|
|
486
|
+
:type id: int
|
|
487
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
488
|
+
number provided, it will be total request
|
|
489
|
+
timeout. It can also be a pair (tuple) of
|
|
490
|
+
(connection, read) timeouts.
|
|
491
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
492
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
493
|
+
request; this effectively ignores the
|
|
494
|
+
authentication in the spec for a single request.
|
|
495
|
+
:type _request_auth: dict, optional
|
|
496
|
+
:param _content_type: force content-type for the request.
|
|
497
|
+
:type _content_type: str, Optional
|
|
498
|
+
:param _headers: set to override the headers for a single
|
|
499
|
+
request; this effectively ignores the headers
|
|
500
|
+
in the spec for a single request.
|
|
501
|
+
:type _headers: dict, optional
|
|
502
|
+
:param _host_index: set to override the host_index for a single
|
|
503
|
+
request; this effectively ignores the host_index
|
|
504
|
+
in the spec for a single request.
|
|
505
|
+
:type _host_index: int, optional
|
|
506
|
+
:return: Returns the result object.
|
|
507
|
+
""" # noqa: E501
|
|
508
|
+
|
|
509
|
+
_param = self._endpoint_group_delete_serialize(
|
|
510
|
+
id=id,
|
|
511
|
+
_request_auth=_request_auth,
|
|
512
|
+
_content_type=_content_type,
|
|
513
|
+
_headers=_headers,
|
|
514
|
+
_host_index=_host_index
|
|
515
|
+
)
|
|
516
|
+
|
|
517
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
518
|
+
'204': None,
|
|
519
|
+
'400': None,
|
|
520
|
+
'404': None,
|
|
521
|
+
'500': None,
|
|
522
|
+
}
|
|
523
|
+
response_data = self.api_client.call_api(
|
|
524
|
+
*_param,
|
|
525
|
+
_request_timeout=_request_timeout
|
|
526
|
+
)
|
|
527
|
+
return response_data.response
|
|
528
|
+
|
|
529
|
+
|
|
530
|
+
def _endpoint_group_delete_serialize(
|
|
531
|
+
self,
|
|
532
|
+
id,
|
|
533
|
+
_request_auth,
|
|
534
|
+
_content_type,
|
|
535
|
+
_headers,
|
|
536
|
+
_host_index,
|
|
537
|
+
) -> RequestSerialized:
|
|
538
|
+
|
|
539
|
+
_host = None
|
|
540
|
+
|
|
541
|
+
_collection_formats: Dict[str, str] = {
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
_path_params: Dict[str, str] = {}
|
|
545
|
+
_query_params: List[Tuple[str, str]] = []
|
|
546
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
547
|
+
_form_params: List[Tuple[str, str]] = []
|
|
548
|
+
_files: Dict[
|
|
549
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
550
|
+
] = {}
|
|
551
|
+
_body_params: Optional[bytes] = None
|
|
552
|
+
|
|
553
|
+
# process the path parameters
|
|
554
|
+
if id is not None:
|
|
555
|
+
_path_params['id'] = id
|
|
556
|
+
# process the query parameters
|
|
557
|
+
# process the header parameters
|
|
558
|
+
# process the form parameters
|
|
559
|
+
# process the body parameter
|
|
560
|
+
|
|
561
|
+
|
|
562
|
+
|
|
563
|
+
|
|
564
|
+
# authentication setting
|
|
565
|
+
_auth_settings: List[str] = [
|
|
566
|
+
'jwt',
|
|
567
|
+
'ApiKeyAuth'
|
|
568
|
+
]
|
|
569
|
+
|
|
570
|
+
return self.api_client.param_serialize(
|
|
571
|
+
method='DELETE',
|
|
572
|
+
resource_path='/endpoint_groups/{id}',
|
|
573
|
+
path_params=_path_params,
|
|
574
|
+
query_params=_query_params,
|
|
575
|
+
header_params=_header_params,
|
|
576
|
+
body=_body_params,
|
|
577
|
+
post_params=_form_params,
|
|
578
|
+
files=_files,
|
|
579
|
+
auth_settings=_auth_settings,
|
|
580
|
+
collection_formats=_collection_formats,
|
|
581
|
+
_host=_host,
|
|
582
|
+
_request_auth=_request_auth
|
|
583
|
+
)
|
|
584
|
+
|
|
585
|
+
|
|
586
|
+
|
|
587
|
+
|
|
588
|
+
@validate_call
|
|
589
|
+
def endpoint_group_delete_endpoint(
|
|
590
|
+
self,
|
|
591
|
+
id: Annotated[StrictInt, Field(description="EndpointGroup identifier")],
|
|
592
|
+
endpoint_id: Annotated[StrictInt, Field(description="Environment(Endpoint) identifier")],
|
|
593
|
+
_request_timeout: Union[
|
|
594
|
+
None,
|
|
595
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
596
|
+
Tuple[
|
|
597
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
598
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
599
|
+
]
|
|
600
|
+
] = None,
|
|
601
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
602
|
+
_content_type: Optional[StrictStr] = None,
|
|
603
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
604
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
605
|
+
) -> None:
|
|
606
|
+
"""Removes environment(endpoint) from an environment(endpoint) group
|
|
607
|
+
|
|
608
|
+
**Access policy**: administrator
|
|
609
|
+
|
|
610
|
+
:param id: EndpointGroup identifier (required)
|
|
611
|
+
:type id: int
|
|
612
|
+
:param endpoint_id: Environment(Endpoint) identifier (required)
|
|
613
|
+
:type endpoint_id: int
|
|
614
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
615
|
+
number provided, it will be total request
|
|
616
|
+
timeout. It can also be a pair (tuple) of
|
|
617
|
+
(connection, read) timeouts.
|
|
618
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
619
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
620
|
+
request; this effectively ignores the
|
|
621
|
+
authentication in the spec for a single request.
|
|
622
|
+
:type _request_auth: dict, optional
|
|
623
|
+
:param _content_type: force content-type for the request.
|
|
624
|
+
:type _content_type: str, Optional
|
|
625
|
+
:param _headers: set to override the headers for a single
|
|
626
|
+
request; this effectively ignores the headers
|
|
627
|
+
in the spec for a single request.
|
|
628
|
+
:type _headers: dict, optional
|
|
629
|
+
:param _host_index: set to override the host_index for a single
|
|
630
|
+
request; this effectively ignores the host_index
|
|
631
|
+
in the spec for a single request.
|
|
632
|
+
:type _host_index: int, optional
|
|
633
|
+
:return: Returns the result object.
|
|
634
|
+
""" # noqa: E501
|
|
635
|
+
|
|
636
|
+
_param = self._endpoint_group_delete_endpoint_serialize(
|
|
637
|
+
id=id,
|
|
638
|
+
endpoint_id=endpoint_id,
|
|
639
|
+
_request_auth=_request_auth,
|
|
640
|
+
_content_type=_content_type,
|
|
641
|
+
_headers=_headers,
|
|
642
|
+
_host_index=_host_index
|
|
643
|
+
)
|
|
644
|
+
|
|
645
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
646
|
+
'204': None,
|
|
647
|
+
'400': None,
|
|
648
|
+
'404': None,
|
|
649
|
+
'500': None,
|
|
650
|
+
}
|
|
651
|
+
response_data = self.api_client.call_api(
|
|
652
|
+
*_param,
|
|
653
|
+
_request_timeout=_request_timeout
|
|
654
|
+
)
|
|
655
|
+
response_data.read()
|
|
656
|
+
return self.api_client.response_deserialize(
|
|
657
|
+
response_data=response_data,
|
|
658
|
+
response_types_map=_response_types_map,
|
|
659
|
+
).data
|
|
660
|
+
|
|
661
|
+
|
|
662
|
+
@validate_call
|
|
663
|
+
def endpoint_group_delete_endpoint_with_http_info(
|
|
664
|
+
self,
|
|
665
|
+
id: Annotated[StrictInt, Field(description="EndpointGroup identifier")],
|
|
666
|
+
endpoint_id: Annotated[StrictInt, Field(description="Environment(Endpoint) identifier")],
|
|
667
|
+
_request_timeout: Union[
|
|
668
|
+
None,
|
|
669
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
670
|
+
Tuple[
|
|
671
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
672
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
673
|
+
]
|
|
674
|
+
] = None,
|
|
675
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
676
|
+
_content_type: Optional[StrictStr] = None,
|
|
677
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
678
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
679
|
+
) -> ApiResponse[None]:
|
|
680
|
+
"""Removes environment(endpoint) from an environment(endpoint) group
|
|
681
|
+
|
|
682
|
+
**Access policy**: administrator
|
|
683
|
+
|
|
684
|
+
:param id: EndpointGroup identifier (required)
|
|
685
|
+
:type id: int
|
|
686
|
+
:param endpoint_id: Environment(Endpoint) identifier (required)
|
|
687
|
+
:type endpoint_id: int
|
|
688
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
689
|
+
number provided, it will be total request
|
|
690
|
+
timeout. It can also be a pair (tuple) of
|
|
691
|
+
(connection, read) timeouts.
|
|
692
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
693
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
694
|
+
request; this effectively ignores the
|
|
695
|
+
authentication in the spec for a single request.
|
|
696
|
+
:type _request_auth: dict, optional
|
|
697
|
+
:param _content_type: force content-type for the request.
|
|
698
|
+
:type _content_type: str, Optional
|
|
699
|
+
:param _headers: set to override the headers for a single
|
|
700
|
+
request; this effectively ignores the headers
|
|
701
|
+
in the spec for a single request.
|
|
702
|
+
:type _headers: dict, optional
|
|
703
|
+
:param _host_index: set to override the host_index for a single
|
|
704
|
+
request; this effectively ignores the host_index
|
|
705
|
+
in the spec for a single request.
|
|
706
|
+
:type _host_index: int, optional
|
|
707
|
+
:return: Returns the result object.
|
|
708
|
+
""" # noqa: E501
|
|
709
|
+
|
|
710
|
+
_param = self._endpoint_group_delete_endpoint_serialize(
|
|
711
|
+
id=id,
|
|
712
|
+
endpoint_id=endpoint_id,
|
|
713
|
+
_request_auth=_request_auth,
|
|
714
|
+
_content_type=_content_type,
|
|
715
|
+
_headers=_headers,
|
|
716
|
+
_host_index=_host_index
|
|
717
|
+
)
|
|
718
|
+
|
|
719
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
720
|
+
'204': None,
|
|
721
|
+
'400': None,
|
|
722
|
+
'404': None,
|
|
723
|
+
'500': None,
|
|
724
|
+
}
|
|
725
|
+
response_data = self.api_client.call_api(
|
|
726
|
+
*_param,
|
|
727
|
+
_request_timeout=_request_timeout
|
|
728
|
+
)
|
|
729
|
+
response_data.read()
|
|
730
|
+
return self.api_client.response_deserialize(
|
|
731
|
+
response_data=response_data,
|
|
732
|
+
response_types_map=_response_types_map,
|
|
733
|
+
)
|
|
734
|
+
|
|
735
|
+
|
|
736
|
+
@validate_call
|
|
737
|
+
def endpoint_group_delete_endpoint_without_preload_content(
|
|
738
|
+
self,
|
|
739
|
+
id: Annotated[StrictInt, Field(description="EndpointGroup identifier")],
|
|
740
|
+
endpoint_id: Annotated[StrictInt, Field(description="Environment(Endpoint) identifier")],
|
|
741
|
+
_request_timeout: Union[
|
|
742
|
+
None,
|
|
743
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
744
|
+
Tuple[
|
|
745
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
746
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
747
|
+
]
|
|
748
|
+
] = None,
|
|
749
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
750
|
+
_content_type: Optional[StrictStr] = None,
|
|
751
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
752
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
753
|
+
) -> RESTResponseType:
|
|
754
|
+
"""Removes environment(endpoint) from an environment(endpoint) group
|
|
755
|
+
|
|
756
|
+
**Access policy**: administrator
|
|
757
|
+
|
|
758
|
+
:param id: EndpointGroup identifier (required)
|
|
759
|
+
:type id: int
|
|
760
|
+
:param endpoint_id: Environment(Endpoint) identifier (required)
|
|
761
|
+
:type endpoint_id: int
|
|
762
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
763
|
+
number provided, it will be total request
|
|
764
|
+
timeout. It can also be a pair (tuple) of
|
|
765
|
+
(connection, read) timeouts.
|
|
766
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
767
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
768
|
+
request; this effectively ignores the
|
|
769
|
+
authentication in the spec for a single request.
|
|
770
|
+
:type _request_auth: dict, optional
|
|
771
|
+
:param _content_type: force content-type for the request.
|
|
772
|
+
:type _content_type: str, Optional
|
|
773
|
+
:param _headers: set to override the headers for a single
|
|
774
|
+
request; this effectively ignores the headers
|
|
775
|
+
in the spec for a single request.
|
|
776
|
+
:type _headers: dict, optional
|
|
777
|
+
:param _host_index: set to override the host_index for a single
|
|
778
|
+
request; this effectively ignores the host_index
|
|
779
|
+
in the spec for a single request.
|
|
780
|
+
:type _host_index: int, optional
|
|
781
|
+
:return: Returns the result object.
|
|
782
|
+
""" # noqa: E501
|
|
783
|
+
|
|
784
|
+
_param = self._endpoint_group_delete_endpoint_serialize(
|
|
785
|
+
id=id,
|
|
786
|
+
endpoint_id=endpoint_id,
|
|
787
|
+
_request_auth=_request_auth,
|
|
788
|
+
_content_type=_content_type,
|
|
789
|
+
_headers=_headers,
|
|
790
|
+
_host_index=_host_index
|
|
791
|
+
)
|
|
792
|
+
|
|
793
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
794
|
+
'204': None,
|
|
795
|
+
'400': None,
|
|
796
|
+
'404': None,
|
|
797
|
+
'500': None,
|
|
798
|
+
}
|
|
799
|
+
response_data = self.api_client.call_api(
|
|
800
|
+
*_param,
|
|
801
|
+
_request_timeout=_request_timeout
|
|
802
|
+
)
|
|
803
|
+
return response_data.response
|
|
804
|
+
|
|
805
|
+
|
|
806
|
+
def _endpoint_group_delete_endpoint_serialize(
|
|
807
|
+
self,
|
|
808
|
+
id,
|
|
809
|
+
endpoint_id,
|
|
810
|
+
_request_auth,
|
|
811
|
+
_content_type,
|
|
812
|
+
_headers,
|
|
813
|
+
_host_index,
|
|
814
|
+
) -> RequestSerialized:
|
|
815
|
+
|
|
816
|
+
_host = None
|
|
817
|
+
|
|
818
|
+
_collection_formats: Dict[str, str] = {
|
|
819
|
+
}
|
|
820
|
+
|
|
821
|
+
_path_params: Dict[str, str] = {}
|
|
822
|
+
_query_params: List[Tuple[str, str]] = []
|
|
823
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
824
|
+
_form_params: List[Tuple[str, str]] = []
|
|
825
|
+
_files: Dict[
|
|
826
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
827
|
+
] = {}
|
|
828
|
+
_body_params: Optional[bytes] = None
|
|
829
|
+
|
|
830
|
+
# process the path parameters
|
|
831
|
+
if id is not None:
|
|
832
|
+
_path_params['id'] = id
|
|
833
|
+
if endpoint_id is not None:
|
|
834
|
+
_path_params['endpointId'] = endpoint_id
|
|
835
|
+
# process the query parameters
|
|
836
|
+
# process the header parameters
|
|
837
|
+
# process the form parameters
|
|
838
|
+
# process the body parameter
|
|
839
|
+
|
|
840
|
+
|
|
841
|
+
|
|
842
|
+
|
|
843
|
+
# authentication setting
|
|
844
|
+
_auth_settings: List[str] = [
|
|
845
|
+
'jwt',
|
|
846
|
+
'ApiKeyAuth'
|
|
847
|
+
]
|
|
848
|
+
|
|
849
|
+
return self.api_client.param_serialize(
|
|
850
|
+
method='DELETE',
|
|
851
|
+
resource_path='/endpoint_groups/{id}/endpoints/{endpointId}',
|
|
852
|
+
path_params=_path_params,
|
|
853
|
+
query_params=_query_params,
|
|
854
|
+
header_params=_header_params,
|
|
855
|
+
body=_body_params,
|
|
856
|
+
post_params=_form_params,
|
|
857
|
+
files=_files,
|
|
858
|
+
auth_settings=_auth_settings,
|
|
859
|
+
collection_formats=_collection_formats,
|
|
860
|
+
_host=_host,
|
|
861
|
+
_request_auth=_request_auth
|
|
862
|
+
)
|
|
863
|
+
|
|
864
|
+
|
|
865
|
+
|
|
866
|
+
|
|
867
|
+
@validate_call
|
|
868
|
+
def endpoint_group_list(
|
|
869
|
+
self,
|
|
870
|
+
_request_timeout: Union[
|
|
871
|
+
None,
|
|
872
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
873
|
+
Tuple[
|
|
874
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
875
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
876
|
+
]
|
|
877
|
+
] = None,
|
|
878
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
879
|
+
_content_type: Optional[StrictStr] = None,
|
|
880
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
881
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
882
|
+
) -> List[PortainerEndpointGroup]:
|
|
883
|
+
"""List Environment(Endpoint) groups
|
|
884
|
+
|
|
885
|
+
List all environment(endpoint) groups based on the current user authorizations. Will return all environment(endpoint) groups if using an administrator account otherwise it will only return authorized environment(endpoint) groups. **Access policy**: restricted
|
|
886
|
+
|
|
887
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
888
|
+
number provided, it will be total request
|
|
889
|
+
timeout. It can also be a pair (tuple) of
|
|
890
|
+
(connection, read) timeouts.
|
|
891
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
892
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
893
|
+
request; this effectively ignores the
|
|
894
|
+
authentication in the spec for a single request.
|
|
895
|
+
:type _request_auth: dict, optional
|
|
896
|
+
:param _content_type: force content-type for the request.
|
|
897
|
+
:type _content_type: str, Optional
|
|
898
|
+
:param _headers: set to override the headers for a single
|
|
899
|
+
request; this effectively ignores the headers
|
|
900
|
+
in the spec for a single request.
|
|
901
|
+
:type _headers: dict, optional
|
|
902
|
+
:param _host_index: set to override the host_index for a single
|
|
903
|
+
request; this effectively ignores the host_index
|
|
904
|
+
in the spec for a single request.
|
|
905
|
+
:type _host_index: int, optional
|
|
906
|
+
:return: Returns the result object.
|
|
907
|
+
""" # noqa: E501
|
|
908
|
+
|
|
909
|
+
_param = self._endpoint_group_list_serialize(
|
|
910
|
+
_request_auth=_request_auth,
|
|
911
|
+
_content_type=_content_type,
|
|
912
|
+
_headers=_headers,
|
|
913
|
+
_host_index=_host_index
|
|
914
|
+
)
|
|
915
|
+
|
|
916
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
917
|
+
'200': "List[PortainerEndpointGroup]",
|
|
918
|
+
'500': None,
|
|
919
|
+
}
|
|
920
|
+
response_data = self.api_client.call_api(
|
|
921
|
+
*_param,
|
|
922
|
+
_request_timeout=_request_timeout
|
|
923
|
+
)
|
|
924
|
+
response_data.read()
|
|
925
|
+
return self.api_client.response_deserialize(
|
|
926
|
+
response_data=response_data,
|
|
927
|
+
response_types_map=_response_types_map,
|
|
928
|
+
).data
|
|
929
|
+
|
|
930
|
+
|
|
931
|
+
@validate_call
|
|
932
|
+
def endpoint_group_list_with_http_info(
|
|
933
|
+
self,
|
|
934
|
+
_request_timeout: Union[
|
|
935
|
+
None,
|
|
936
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
937
|
+
Tuple[
|
|
938
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
939
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
940
|
+
]
|
|
941
|
+
] = None,
|
|
942
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
943
|
+
_content_type: Optional[StrictStr] = None,
|
|
944
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
945
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
946
|
+
) -> ApiResponse[List[PortainerEndpointGroup]]:
|
|
947
|
+
"""List Environment(Endpoint) groups
|
|
948
|
+
|
|
949
|
+
List all environment(endpoint) groups based on the current user authorizations. Will return all environment(endpoint) groups if using an administrator account otherwise it will only return authorized environment(endpoint) groups. **Access policy**: restricted
|
|
950
|
+
|
|
951
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
952
|
+
number provided, it will be total request
|
|
953
|
+
timeout. It can also be a pair (tuple) of
|
|
954
|
+
(connection, read) timeouts.
|
|
955
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
956
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
957
|
+
request; this effectively ignores the
|
|
958
|
+
authentication in the spec for a single request.
|
|
959
|
+
:type _request_auth: dict, optional
|
|
960
|
+
:param _content_type: force content-type for the request.
|
|
961
|
+
:type _content_type: str, Optional
|
|
962
|
+
:param _headers: set to override the headers for a single
|
|
963
|
+
request; this effectively ignores the headers
|
|
964
|
+
in the spec for a single request.
|
|
965
|
+
:type _headers: dict, optional
|
|
966
|
+
:param _host_index: set to override the host_index for a single
|
|
967
|
+
request; this effectively ignores the host_index
|
|
968
|
+
in the spec for a single request.
|
|
969
|
+
:type _host_index: int, optional
|
|
970
|
+
:return: Returns the result object.
|
|
971
|
+
""" # noqa: E501
|
|
972
|
+
|
|
973
|
+
_param = self._endpoint_group_list_serialize(
|
|
974
|
+
_request_auth=_request_auth,
|
|
975
|
+
_content_type=_content_type,
|
|
976
|
+
_headers=_headers,
|
|
977
|
+
_host_index=_host_index
|
|
978
|
+
)
|
|
979
|
+
|
|
980
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
981
|
+
'200': "List[PortainerEndpointGroup]",
|
|
982
|
+
'500': None,
|
|
983
|
+
}
|
|
984
|
+
response_data = self.api_client.call_api(
|
|
985
|
+
*_param,
|
|
986
|
+
_request_timeout=_request_timeout
|
|
987
|
+
)
|
|
988
|
+
response_data.read()
|
|
989
|
+
return self.api_client.response_deserialize(
|
|
990
|
+
response_data=response_data,
|
|
991
|
+
response_types_map=_response_types_map,
|
|
992
|
+
)
|
|
993
|
+
|
|
994
|
+
|
|
995
|
+
@validate_call
|
|
996
|
+
def endpoint_group_list_without_preload_content(
|
|
997
|
+
self,
|
|
998
|
+
_request_timeout: Union[
|
|
999
|
+
None,
|
|
1000
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1001
|
+
Tuple[
|
|
1002
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1003
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1004
|
+
]
|
|
1005
|
+
] = None,
|
|
1006
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1007
|
+
_content_type: Optional[StrictStr] = None,
|
|
1008
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1009
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1010
|
+
) -> RESTResponseType:
|
|
1011
|
+
"""List Environment(Endpoint) groups
|
|
1012
|
+
|
|
1013
|
+
List all environment(endpoint) groups based on the current user authorizations. Will return all environment(endpoint) groups if using an administrator account otherwise it will only return authorized environment(endpoint) groups. **Access policy**: restricted
|
|
1014
|
+
|
|
1015
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1016
|
+
number provided, it will be total request
|
|
1017
|
+
timeout. It can also be a pair (tuple) of
|
|
1018
|
+
(connection, read) timeouts.
|
|
1019
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1020
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1021
|
+
request; this effectively ignores the
|
|
1022
|
+
authentication in the spec for a single request.
|
|
1023
|
+
:type _request_auth: dict, optional
|
|
1024
|
+
:param _content_type: force content-type for the request.
|
|
1025
|
+
:type _content_type: str, Optional
|
|
1026
|
+
:param _headers: set to override the headers for a single
|
|
1027
|
+
request; this effectively ignores the headers
|
|
1028
|
+
in the spec for a single request.
|
|
1029
|
+
:type _headers: dict, optional
|
|
1030
|
+
:param _host_index: set to override the host_index for a single
|
|
1031
|
+
request; this effectively ignores the host_index
|
|
1032
|
+
in the spec for a single request.
|
|
1033
|
+
:type _host_index: int, optional
|
|
1034
|
+
:return: Returns the result object.
|
|
1035
|
+
""" # noqa: E501
|
|
1036
|
+
|
|
1037
|
+
_param = self._endpoint_group_list_serialize(
|
|
1038
|
+
_request_auth=_request_auth,
|
|
1039
|
+
_content_type=_content_type,
|
|
1040
|
+
_headers=_headers,
|
|
1041
|
+
_host_index=_host_index
|
|
1042
|
+
)
|
|
1043
|
+
|
|
1044
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1045
|
+
'200': "List[PortainerEndpointGroup]",
|
|
1046
|
+
'500': None,
|
|
1047
|
+
}
|
|
1048
|
+
response_data = self.api_client.call_api(
|
|
1049
|
+
*_param,
|
|
1050
|
+
_request_timeout=_request_timeout
|
|
1051
|
+
)
|
|
1052
|
+
return response_data.response
|
|
1053
|
+
|
|
1054
|
+
|
|
1055
|
+
def _endpoint_group_list_serialize(
|
|
1056
|
+
self,
|
|
1057
|
+
_request_auth,
|
|
1058
|
+
_content_type,
|
|
1059
|
+
_headers,
|
|
1060
|
+
_host_index,
|
|
1061
|
+
) -> RequestSerialized:
|
|
1062
|
+
|
|
1063
|
+
_host = None
|
|
1064
|
+
|
|
1065
|
+
_collection_formats: Dict[str, str] = {
|
|
1066
|
+
}
|
|
1067
|
+
|
|
1068
|
+
_path_params: Dict[str, str] = {}
|
|
1069
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1070
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1071
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1072
|
+
_files: Dict[
|
|
1073
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1074
|
+
] = {}
|
|
1075
|
+
_body_params: Optional[bytes] = None
|
|
1076
|
+
|
|
1077
|
+
# process the path parameters
|
|
1078
|
+
# process the query parameters
|
|
1079
|
+
# process the header parameters
|
|
1080
|
+
# process the form parameters
|
|
1081
|
+
# process the body parameter
|
|
1082
|
+
|
|
1083
|
+
|
|
1084
|
+
# set the HTTP header `Accept`
|
|
1085
|
+
if 'Accept' not in _header_params:
|
|
1086
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1087
|
+
[
|
|
1088
|
+
'application/json'
|
|
1089
|
+
]
|
|
1090
|
+
)
|
|
1091
|
+
|
|
1092
|
+
|
|
1093
|
+
# authentication setting
|
|
1094
|
+
_auth_settings: List[str] = [
|
|
1095
|
+
'jwt',
|
|
1096
|
+
'ApiKeyAuth'
|
|
1097
|
+
]
|
|
1098
|
+
|
|
1099
|
+
return self.api_client.param_serialize(
|
|
1100
|
+
method='GET',
|
|
1101
|
+
resource_path='/endpoint_groups',
|
|
1102
|
+
path_params=_path_params,
|
|
1103
|
+
query_params=_query_params,
|
|
1104
|
+
header_params=_header_params,
|
|
1105
|
+
body=_body_params,
|
|
1106
|
+
post_params=_form_params,
|
|
1107
|
+
files=_files,
|
|
1108
|
+
auth_settings=_auth_settings,
|
|
1109
|
+
collection_formats=_collection_formats,
|
|
1110
|
+
_host=_host,
|
|
1111
|
+
_request_auth=_request_auth
|
|
1112
|
+
)
|
|
1113
|
+
|
|
1114
|
+
|
|
1115
|
+
|
|
1116
|
+
|
|
1117
|
+
@validate_call
|
|
1118
|
+
def endpoint_group_update(
|
|
1119
|
+
self,
|
|
1120
|
+
id: Annotated[StrictInt, Field(description="EndpointGroup identifier")],
|
|
1121
|
+
body: Annotated[EndpointgroupsEndpointGroupUpdatePayload, Field(description="EndpointGroup details")],
|
|
1122
|
+
_request_timeout: Union[
|
|
1123
|
+
None,
|
|
1124
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1125
|
+
Tuple[
|
|
1126
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1127
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1128
|
+
]
|
|
1129
|
+
] = None,
|
|
1130
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1131
|
+
_content_type: Optional[StrictStr] = None,
|
|
1132
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1133
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1134
|
+
) -> PortainerEndpointGroup:
|
|
1135
|
+
"""Update an environment(endpoint) group
|
|
1136
|
+
|
|
1137
|
+
Update an environment(endpoint) group. **Access policy**: administrator
|
|
1138
|
+
|
|
1139
|
+
:param id: EndpointGroup identifier (required)
|
|
1140
|
+
:type id: int
|
|
1141
|
+
:param body: EndpointGroup details (required)
|
|
1142
|
+
:type body: EndpointgroupsEndpointGroupUpdatePayload
|
|
1143
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1144
|
+
number provided, it will be total request
|
|
1145
|
+
timeout. It can also be a pair (tuple) of
|
|
1146
|
+
(connection, read) timeouts.
|
|
1147
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1148
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1149
|
+
request; this effectively ignores the
|
|
1150
|
+
authentication in the spec for a single request.
|
|
1151
|
+
:type _request_auth: dict, optional
|
|
1152
|
+
:param _content_type: force content-type for the request.
|
|
1153
|
+
:type _content_type: str, Optional
|
|
1154
|
+
:param _headers: set to override the headers for a single
|
|
1155
|
+
request; this effectively ignores the headers
|
|
1156
|
+
in the spec for a single request.
|
|
1157
|
+
:type _headers: dict, optional
|
|
1158
|
+
:param _host_index: set to override the host_index for a single
|
|
1159
|
+
request; this effectively ignores the host_index
|
|
1160
|
+
in the spec for a single request.
|
|
1161
|
+
:type _host_index: int, optional
|
|
1162
|
+
:return: Returns the result object.
|
|
1163
|
+
""" # noqa: E501
|
|
1164
|
+
|
|
1165
|
+
_param = self._endpoint_group_update_serialize(
|
|
1166
|
+
id=id,
|
|
1167
|
+
body=body,
|
|
1168
|
+
_request_auth=_request_auth,
|
|
1169
|
+
_content_type=_content_type,
|
|
1170
|
+
_headers=_headers,
|
|
1171
|
+
_host_index=_host_index
|
|
1172
|
+
)
|
|
1173
|
+
|
|
1174
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1175
|
+
'200': "PortainerEndpointGroup",
|
|
1176
|
+
'400': None,
|
|
1177
|
+
'404': None,
|
|
1178
|
+
'500': None,
|
|
1179
|
+
}
|
|
1180
|
+
response_data = self.api_client.call_api(
|
|
1181
|
+
*_param,
|
|
1182
|
+
_request_timeout=_request_timeout
|
|
1183
|
+
)
|
|
1184
|
+
response_data.read()
|
|
1185
|
+
return self.api_client.response_deserialize(
|
|
1186
|
+
response_data=response_data,
|
|
1187
|
+
response_types_map=_response_types_map,
|
|
1188
|
+
).data
|
|
1189
|
+
|
|
1190
|
+
|
|
1191
|
+
@validate_call
|
|
1192
|
+
def endpoint_group_update_with_http_info(
|
|
1193
|
+
self,
|
|
1194
|
+
id: Annotated[StrictInt, Field(description="EndpointGroup identifier")],
|
|
1195
|
+
body: Annotated[EndpointgroupsEndpointGroupUpdatePayload, Field(description="EndpointGroup details")],
|
|
1196
|
+
_request_timeout: Union[
|
|
1197
|
+
None,
|
|
1198
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1199
|
+
Tuple[
|
|
1200
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1201
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1202
|
+
]
|
|
1203
|
+
] = None,
|
|
1204
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1205
|
+
_content_type: Optional[StrictStr] = None,
|
|
1206
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1207
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1208
|
+
) -> ApiResponse[PortainerEndpointGroup]:
|
|
1209
|
+
"""Update an environment(endpoint) group
|
|
1210
|
+
|
|
1211
|
+
Update an environment(endpoint) group. **Access policy**: administrator
|
|
1212
|
+
|
|
1213
|
+
:param id: EndpointGroup identifier (required)
|
|
1214
|
+
:type id: int
|
|
1215
|
+
:param body: EndpointGroup details (required)
|
|
1216
|
+
:type body: EndpointgroupsEndpointGroupUpdatePayload
|
|
1217
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1218
|
+
number provided, it will be total request
|
|
1219
|
+
timeout. It can also be a pair (tuple) of
|
|
1220
|
+
(connection, read) timeouts.
|
|
1221
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1222
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1223
|
+
request; this effectively ignores the
|
|
1224
|
+
authentication in the spec for a single request.
|
|
1225
|
+
:type _request_auth: dict, optional
|
|
1226
|
+
:param _content_type: force content-type for the request.
|
|
1227
|
+
:type _content_type: str, Optional
|
|
1228
|
+
:param _headers: set to override the headers for a single
|
|
1229
|
+
request; this effectively ignores the headers
|
|
1230
|
+
in the spec for a single request.
|
|
1231
|
+
:type _headers: dict, optional
|
|
1232
|
+
:param _host_index: set to override the host_index for a single
|
|
1233
|
+
request; this effectively ignores the host_index
|
|
1234
|
+
in the spec for a single request.
|
|
1235
|
+
:type _host_index: int, optional
|
|
1236
|
+
:return: Returns the result object.
|
|
1237
|
+
""" # noqa: E501
|
|
1238
|
+
|
|
1239
|
+
_param = self._endpoint_group_update_serialize(
|
|
1240
|
+
id=id,
|
|
1241
|
+
body=body,
|
|
1242
|
+
_request_auth=_request_auth,
|
|
1243
|
+
_content_type=_content_type,
|
|
1244
|
+
_headers=_headers,
|
|
1245
|
+
_host_index=_host_index
|
|
1246
|
+
)
|
|
1247
|
+
|
|
1248
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1249
|
+
'200': "PortainerEndpointGroup",
|
|
1250
|
+
'400': None,
|
|
1251
|
+
'404': None,
|
|
1252
|
+
'500': None,
|
|
1253
|
+
}
|
|
1254
|
+
response_data = self.api_client.call_api(
|
|
1255
|
+
*_param,
|
|
1256
|
+
_request_timeout=_request_timeout
|
|
1257
|
+
)
|
|
1258
|
+
response_data.read()
|
|
1259
|
+
return self.api_client.response_deserialize(
|
|
1260
|
+
response_data=response_data,
|
|
1261
|
+
response_types_map=_response_types_map,
|
|
1262
|
+
)
|
|
1263
|
+
|
|
1264
|
+
|
|
1265
|
+
@validate_call
|
|
1266
|
+
def endpoint_group_update_without_preload_content(
|
|
1267
|
+
self,
|
|
1268
|
+
id: Annotated[StrictInt, Field(description="EndpointGroup identifier")],
|
|
1269
|
+
body: Annotated[EndpointgroupsEndpointGroupUpdatePayload, Field(description="EndpointGroup details")],
|
|
1270
|
+
_request_timeout: Union[
|
|
1271
|
+
None,
|
|
1272
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1273
|
+
Tuple[
|
|
1274
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1275
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1276
|
+
]
|
|
1277
|
+
] = None,
|
|
1278
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1279
|
+
_content_type: Optional[StrictStr] = None,
|
|
1280
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1281
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1282
|
+
) -> RESTResponseType:
|
|
1283
|
+
"""Update an environment(endpoint) group
|
|
1284
|
+
|
|
1285
|
+
Update an environment(endpoint) group. **Access policy**: administrator
|
|
1286
|
+
|
|
1287
|
+
:param id: EndpointGroup identifier (required)
|
|
1288
|
+
:type id: int
|
|
1289
|
+
:param body: EndpointGroup details (required)
|
|
1290
|
+
:type body: EndpointgroupsEndpointGroupUpdatePayload
|
|
1291
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1292
|
+
number provided, it will be total request
|
|
1293
|
+
timeout. It can also be a pair (tuple) of
|
|
1294
|
+
(connection, read) timeouts.
|
|
1295
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1296
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1297
|
+
request; this effectively ignores the
|
|
1298
|
+
authentication in the spec for a single request.
|
|
1299
|
+
:type _request_auth: dict, optional
|
|
1300
|
+
:param _content_type: force content-type for the request.
|
|
1301
|
+
:type _content_type: str, Optional
|
|
1302
|
+
:param _headers: set to override the headers for a single
|
|
1303
|
+
request; this effectively ignores the headers
|
|
1304
|
+
in the spec for a single request.
|
|
1305
|
+
:type _headers: dict, optional
|
|
1306
|
+
:param _host_index: set to override the host_index for a single
|
|
1307
|
+
request; this effectively ignores the host_index
|
|
1308
|
+
in the spec for a single request.
|
|
1309
|
+
:type _host_index: int, optional
|
|
1310
|
+
:return: Returns the result object.
|
|
1311
|
+
""" # noqa: E501
|
|
1312
|
+
|
|
1313
|
+
_param = self._endpoint_group_update_serialize(
|
|
1314
|
+
id=id,
|
|
1315
|
+
body=body,
|
|
1316
|
+
_request_auth=_request_auth,
|
|
1317
|
+
_content_type=_content_type,
|
|
1318
|
+
_headers=_headers,
|
|
1319
|
+
_host_index=_host_index
|
|
1320
|
+
)
|
|
1321
|
+
|
|
1322
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1323
|
+
'200': "PortainerEndpointGroup",
|
|
1324
|
+
'400': None,
|
|
1325
|
+
'404': None,
|
|
1326
|
+
'500': None,
|
|
1327
|
+
}
|
|
1328
|
+
response_data = self.api_client.call_api(
|
|
1329
|
+
*_param,
|
|
1330
|
+
_request_timeout=_request_timeout
|
|
1331
|
+
)
|
|
1332
|
+
return response_data.response
|
|
1333
|
+
|
|
1334
|
+
|
|
1335
|
+
def _endpoint_group_update_serialize(
|
|
1336
|
+
self,
|
|
1337
|
+
id,
|
|
1338
|
+
body,
|
|
1339
|
+
_request_auth,
|
|
1340
|
+
_content_type,
|
|
1341
|
+
_headers,
|
|
1342
|
+
_host_index,
|
|
1343
|
+
) -> RequestSerialized:
|
|
1344
|
+
|
|
1345
|
+
_host = None
|
|
1346
|
+
|
|
1347
|
+
_collection_formats: Dict[str, str] = {
|
|
1348
|
+
}
|
|
1349
|
+
|
|
1350
|
+
_path_params: Dict[str, str] = {}
|
|
1351
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1352
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1353
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1354
|
+
_files: Dict[
|
|
1355
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1356
|
+
] = {}
|
|
1357
|
+
_body_params: Optional[bytes] = None
|
|
1358
|
+
|
|
1359
|
+
# process the path parameters
|
|
1360
|
+
if id is not None:
|
|
1361
|
+
_path_params['id'] = id
|
|
1362
|
+
# process the query parameters
|
|
1363
|
+
# process the header parameters
|
|
1364
|
+
# process the form parameters
|
|
1365
|
+
# process the body parameter
|
|
1366
|
+
if body is not None:
|
|
1367
|
+
_body_params = body
|
|
1368
|
+
|
|
1369
|
+
|
|
1370
|
+
# set the HTTP header `Accept`
|
|
1371
|
+
if 'Accept' not in _header_params:
|
|
1372
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1373
|
+
[
|
|
1374
|
+
'application/json'
|
|
1375
|
+
]
|
|
1376
|
+
)
|
|
1377
|
+
|
|
1378
|
+
# set the HTTP header `Content-Type`
|
|
1379
|
+
if _content_type:
|
|
1380
|
+
_header_params['Content-Type'] = _content_type
|
|
1381
|
+
else:
|
|
1382
|
+
_default_content_type = (
|
|
1383
|
+
self.api_client.select_header_content_type(
|
|
1384
|
+
[
|
|
1385
|
+
'application/json'
|
|
1386
|
+
]
|
|
1387
|
+
)
|
|
1388
|
+
)
|
|
1389
|
+
if _default_content_type is not None:
|
|
1390
|
+
_header_params['Content-Type'] = _default_content_type
|
|
1391
|
+
|
|
1392
|
+
# authentication setting
|
|
1393
|
+
_auth_settings: List[str] = [
|
|
1394
|
+
'jwt',
|
|
1395
|
+
'ApiKeyAuth'
|
|
1396
|
+
]
|
|
1397
|
+
|
|
1398
|
+
return self.api_client.param_serialize(
|
|
1399
|
+
method='PUT',
|
|
1400
|
+
resource_path='/endpoint_groups/{id}',
|
|
1401
|
+
path_params=_path_params,
|
|
1402
|
+
query_params=_query_params,
|
|
1403
|
+
header_params=_header_params,
|
|
1404
|
+
body=_body_params,
|
|
1405
|
+
post_params=_form_params,
|
|
1406
|
+
files=_files,
|
|
1407
|
+
auth_settings=_auth_settings,
|
|
1408
|
+
collection_formats=_collection_formats,
|
|
1409
|
+
_host=_host,
|
|
1410
|
+
_request_auth=_request_auth
|
|
1411
|
+
)
|
|
1412
|
+
|
|
1413
|
+
|
|
1414
|
+
|
|
1415
|
+
|
|
1416
|
+
@validate_call
|
|
1417
|
+
def endpoint_groups_id_get(
|
|
1418
|
+
self,
|
|
1419
|
+
id: Annotated[StrictInt, Field(description="Environment(Endpoint) group identifier")],
|
|
1420
|
+
_request_timeout: Union[
|
|
1421
|
+
None,
|
|
1422
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1423
|
+
Tuple[
|
|
1424
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1425
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1426
|
+
]
|
|
1427
|
+
] = None,
|
|
1428
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1429
|
+
_content_type: Optional[StrictStr] = None,
|
|
1430
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1431
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1432
|
+
) -> PortainerEndpointGroup:
|
|
1433
|
+
"""Inspect an Environment(Endpoint) group
|
|
1434
|
+
|
|
1435
|
+
Retrieve details abont an environment(endpoint) group. **Access policy**: administrator
|
|
1436
|
+
|
|
1437
|
+
:param id: Environment(Endpoint) group identifier (required)
|
|
1438
|
+
:type id: int
|
|
1439
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1440
|
+
number provided, it will be total request
|
|
1441
|
+
timeout. It can also be a pair (tuple) of
|
|
1442
|
+
(connection, read) timeouts.
|
|
1443
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1444
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1445
|
+
request; this effectively ignores the
|
|
1446
|
+
authentication in the spec for a single request.
|
|
1447
|
+
:type _request_auth: dict, optional
|
|
1448
|
+
:param _content_type: force content-type for the request.
|
|
1449
|
+
:type _content_type: str, Optional
|
|
1450
|
+
:param _headers: set to override the headers for a single
|
|
1451
|
+
request; this effectively ignores the headers
|
|
1452
|
+
in the spec for a single request.
|
|
1453
|
+
:type _headers: dict, optional
|
|
1454
|
+
:param _host_index: set to override the host_index for a single
|
|
1455
|
+
request; this effectively ignores the host_index
|
|
1456
|
+
in the spec for a single request.
|
|
1457
|
+
:type _host_index: int, optional
|
|
1458
|
+
:return: Returns the result object.
|
|
1459
|
+
""" # noqa: E501
|
|
1460
|
+
|
|
1461
|
+
_param = self._endpoint_groups_id_get_serialize(
|
|
1462
|
+
id=id,
|
|
1463
|
+
_request_auth=_request_auth,
|
|
1464
|
+
_content_type=_content_type,
|
|
1465
|
+
_headers=_headers,
|
|
1466
|
+
_host_index=_host_index
|
|
1467
|
+
)
|
|
1468
|
+
|
|
1469
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1470
|
+
'200': "PortainerEndpointGroup",
|
|
1471
|
+
'400': None,
|
|
1472
|
+
'404': None,
|
|
1473
|
+
'500': None,
|
|
1474
|
+
}
|
|
1475
|
+
response_data = self.api_client.call_api(
|
|
1476
|
+
*_param,
|
|
1477
|
+
_request_timeout=_request_timeout
|
|
1478
|
+
)
|
|
1479
|
+
response_data.read()
|
|
1480
|
+
return self.api_client.response_deserialize(
|
|
1481
|
+
response_data=response_data,
|
|
1482
|
+
response_types_map=_response_types_map,
|
|
1483
|
+
).data
|
|
1484
|
+
|
|
1485
|
+
|
|
1486
|
+
@validate_call
|
|
1487
|
+
def endpoint_groups_id_get_with_http_info(
|
|
1488
|
+
self,
|
|
1489
|
+
id: Annotated[StrictInt, Field(description="Environment(Endpoint) group identifier")],
|
|
1490
|
+
_request_timeout: Union[
|
|
1491
|
+
None,
|
|
1492
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1493
|
+
Tuple[
|
|
1494
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1495
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1496
|
+
]
|
|
1497
|
+
] = None,
|
|
1498
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1499
|
+
_content_type: Optional[StrictStr] = None,
|
|
1500
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1501
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1502
|
+
) -> ApiResponse[PortainerEndpointGroup]:
|
|
1503
|
+
"""Inspect an Environment(Endpoint) group
|
|
1504
|
+
|
|
1505
|
+
Retrieve details abont an environment(endpoint) group. **Access policy**: administrator
|
|
1506
|
+
|
|
1507
|
+
:param id: Environment(Endpoint) group identifier (required)
|
|
1508
|
+
:type id: int
|
|
1509
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1510
|
+
number provided, it will be total request
|
|
1511
|
+
timeout. It can also be a pair (tuple) of
|
|
1512
|
+
(connection, read) timeouts.
|
|
1513
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1514
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1515
|
+
request; this effectively ignores the
|
|
1516
|
+
authentication in the spec for a single request.
|
|
1517
|
+
:type _request_auth: dict, optional
|
|
1518
|
+
:param _content_type: force content-type for the request.
|
|
1519
|
+
:type _content_type: str, Optional
|
|
1520
|
+
:param _headers: set to override the headers for a single
|
|
1521
|
+
request; this effectively ignores the headers
|
|
1522
|
+
in the spec for a single request.
|
|
1523
|
+
:type _headers: dict, optional
|
|
1524
|
+
:param _host_index: set to override the host_index for a single
|
|
1525
|
+
request; this effectively ignores the host_index
|
|
1526
|
+
in the spec for a single request.
|
|
1527
|
+
:type _host_index: int, optional
|
|
1528
|
+
:return: Returns the result object.
|
|
1529
|
+
""" # noqa: E501
|
|
1530
|
+
|
|
1531
|
+
_param = self._endpoint_groups_id_get_serialize(
|
|
1532
|
+
id=id,
|
|
1533
|
+
_request_auth=_request_auth,
|
|
1534
|
+
_content_type=_content_type,
|
|
1535
|
+
_headers=_headers,
|
|
1536
|
+
_host_index=_host_index
|
|
1537
|
+
)
|
|
1538
|
+
|
|
1539
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1540
|
+
'200': "PortainerEndpointGroup",
|
|
1541
|
+
'400': None,
|
|
1542
|
+
'404': None,
|
|
1543
|
+
'500': None,
|
|
1544
|
+
}
|
|
1545
|
+
response_data = self.api_client.call_api(
|
|
1546
|
+
*_param,
|
|
1547
|
+
_request_timeout=_request_timeout
|
|
1548
|
+
)
|
|
1549
|
+
response_data.read()
|
|
1550
|
+
return self.api_client.response_deserialize(
|
|
1551
|
+
response_data=response_data,
|
|
1552
|
+
response_types_map=_response_types_map,
|
|
1553
|
+
)
|
|
1554
|
+
|
|
1555
|
+
|
|
1556
|
+
@validate_call
|
|
1557
|
+
def endpoint_groups_id_get_without_preload_content(
|
|
1558
|
+
self,
|
|
1559
|
+
id: Annotated[StrictInt, Field(description="Environment(Endpoint) group identifier")],
|
|
1560
|
+
_request_timeout: Union[
|
|
1561
|
+
None,
|
|
1562
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1563
|
+
Tuple[
|
|
1564
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1565
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1566
|
+
]
|
|
1567
|
+
] = None,
|
|
1568
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1569
|
+
_content_type: Optional[StrictStr] = None,
|
|
1570
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1571
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1572
|
+
) -> RESTResponseType:
|
|
1573
|
+
"""Inspect an Environment(Endpoint) group
|
|
1574
|
+
|
|
1575
|
+
Retrieve details abont an environment(endpoint) group. **Access policy**: administrator
|
|
1576
|
+
|
|
1577
|
+
:param id: Environment(Endpoint) group identifier (required)
|
|
1578
|
+
:type id: int
|
|
1579
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1580
|
+
number provided, it will be total request
|
|
1581
|
+
timeout. It can also be a pair (tuple) of
|
|
1582
|
+
(connection, read) timeouts.
|
|
1583
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1584
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1585
|
+
request; this effectively ignores the
|
|
1586
|
+
authentication in the spec for a single request.
|
|
1587
|
+
:type _request_auth: dict, optional
|
|
1588
|
+
:param _content_type: force content-type for the request.
|
|
1589
|
+
:type _content_type: str, Optional
|
|
1590
|
+
:param _headers: set to override the headers for a single
|
|
1591
|
+
request; this effectively ignores the headers
|
|
1592
|
+
in the spec for a single request.
|
|
1593
|
+
:type _headers: dict, optional
|
|
1594
|
+
:param _host_index: set to override the host_index for a single
|
|
1595
|
+
request; this effectively ignores the host_index
|
|
1596
|
+
in the spec for a single request.
|
|
1597
|
+
:type _host_index: int, optional
|
|
1598
|
+
:return: Returns the result object.
|
|
1599
|
+
""" # noqa: E501
|
|
1600
|
+
|
|
1601
|
+
_param = self._endpoint_groups_id_get_serialize(
|
|
1602
|
+
id=id,
|
|
1603
|
+
_request_auth=_request_auth,
|
|
1604
|
+
_content_type=_content_type,
|
|
1605
|
+
_headers=_headers,
|
|
1606
|
+
_host_index=_host_index
|
|
1607
|
+
)
|
|
1608
|
+
|
|
1609
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1610
|
+
'200': "PortainerEndpointGroup",
|
|
1611
|
+
'400': None,
|
|
1612
|
+
'404': None,
|
|
1613
|
+
'500': None,
|
|
1614
|
+
}
|
|
1615
|
+
response_data = self.api_client.call_api(
|
|
1616
|
+
*_param,
|
|
1617
|
+
_request_timeout=_request_timeout
|
|
1618
|
+
)
|
|
1619
|
+
return response_data.response
|
|
1620
|
+
|
|
1621
|
+
|
|
1622
|
+
def _endpoint_groups_id_get_serialize(
|
|
1623
|
+
self,
|
|
1624
|
+
id,
|
|
1625
|
+
_request_auth,
|
|
1626
|
+
_content_type,
|
|
1627
|
+
_headers,
|
|
1628
|
+
_host_index,
|
|
1629
|
+
) -> RequestSerialized:
|
|
1630
|
+
|
|
1631
|
+
_host = None
|
|
1632
|
+
|
|
1633
|
+
_collection_formats: Dict[str, str] = {
|
|
1634
|
+
}
|
|
1635
|
+
|
|
1636
|
+
_path_params: Dict[str, str] = {}
|
|
1637
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1638
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1639
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1640
|
+
_files: Dict[
|
|
1641
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1642
|
+
] = {}
|
|
1643
|
+
_body_params: Optional[bytes] = None
|
|
1644
|
+
|
|
1645
|
+
# process the path parameters
|
|
1646
|
+
if id is not None:
|
|
1647
|
+
_path_params['id'] = id
|
|
1648
|
+
# process the query parameters
|
|
1649
|
+
# process the header parameters
|
|
1650
|
+
# process the form parameters
|
|
1651
|
+
# process the body parameter
|
|
1652
|
+
|
|
1653
|
+
|
|
1654
|
+
# set the HTTP header `Accept`
|
|
1655
|
+
if 'Accept' not in _header_params:
|
|
1656
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1657
|
+
[
|
|
1658
|
+
'application/json'
|
|
1659
|
+
]
|
|
1660
|
+
)
|
|
1661
|
+
|
|
1662
|
+
|
|
1663
|
+
# authentication setting
|
|
1664
|
+
_auth_settings: List[str] = [
|
|
1665
|
+
'jwt',
|
|
1666
|
+
'ApiKeyAuth'
|
|
1667
|
+
]
|
|
1668
|
+
|
|
1669
|
+
return self.api_client.param_serialize(
|
|
1670
|
+
method='GET',
|
|
1671
|
+
resource_path='/endpoint_groups/{id}',
|
|
1672
|
+
path_params=_path_params,
|
|
1673
|
+
query_params=_query_params,
|
|
1674
|
+
header_params=_header_params,
|
|
1675
|
+
body=_body_params,
|
|
1676
|
+
post_params=_form_params,
|
|
1677
|
+
files=_files,
|
|
1678
|
+
auth_settings=_auth_settings,
|
|
1679
|
+
collection_formats=_collection_formats,
|
|
1680
|
+
_host=_host,
|
|
1681
|
+
_request_auth=_request_auth
|
|
1682
|
+
)
|
|
1683
|
+
|
|
1684
|
+
|
|
1685
|
+
|
|
1686
|
+
|
|
1687
|
+
@validate_call
|
|
1688
|
+
def endpoint_groups_post(
|
|
1689
|
+
self,
|
|
1690
|
+
body: Annotated[EndpointgroupsEndpointGroupCreatePayload, Field(description="Environment(Endpoint) Group details")],
|
|
1691
|
+
_request_timeout: Union[
|
|
1692
|
+
None,
|
|
1693
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1694
|
+
Tuple[
|
|
1695
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1696
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1697
|
+
]
|
|
1698
|
+
] = None,
|
|
1699
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1700
|
+
_content_type: Optional[StrictStr] = None,
|
|
1701
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1702
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1703
|
+
) -> PortainerEndpointGroup:
|
|
1704
|
+
"""Create an Environment(Endpoint) Group
|
|
1705
|
+
|
|
1706
|
+
Create a new environment(endpoint) group. **Access policy**: administrator
|
|
1707
|
+
|
|
1708
|
+
:param body: Environment(Endpoint) Group details (required)
|
|
1709
|
+
:type body: EndpointgroupsEndpointGroupCreatePayload
|
|
1710
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1711
|
+
number provided, it will be total request
|
|
1712
|
+
timeout. It can also be a pair (tuple) of
|
|
1713
|
+
(connection, read) timeouts.
|
|
1714
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1715
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1716
|
+
request; this effectively ignores the
|
|
1717
|
+
authentication in the spec for a single request.
|
|
1718
|
+
:type _request_auth: dict, optional
|
|
1719
|
+
:param _content_type: force content-type for the request.
|
|
1720
|
+
:type _content_type: str, Optional
|
|
1721
|
+
:param _headers: set to override the headers for a single
|
|
1722
|
+
request; this effectively ignores the headers
|
|
1723
|
+
in the spec for a single request.
|
|
1724
|
+
:type _headers: dict, optional
|
|
1725
|
+
:param _host_index: set to override the host_index for a single
|
|
1726
|
+
request; this effectively ignores the host_index
|
|
1727
|
+
in the spec for a single request.
|
|
1728
|
+
:type _host_index: int, optional
|
|
1729
|
+
:return: Returns the result object.
|
|
1730
|
+
""" # noqa: E501
|
|
1731
|
+
|
|
1732
|
+
_param = self._endpoint_groups_post_serialize(
|
|
1733
|
+
body=body,
|
|
1734
|
+
_request_auth=_request_auth,
|
|
1735
|
+
_content_type=_content_type,
|
|
1736
|
+
_headers=_headers,
|
|
1737
|
+
_host_index=_host_index
|
|
1738
|
+
)
|
|
1739
|
+
|
|
1740
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1741
|
+
'200': "PortainerEndpointGroup",
|
|
1742
|
+
'400': None,
|
|
1743
|
+
'500': None,
|
|
1744
|
+
}
|
|
1745
|
+
response_data = self.api_client.call_api(
|
|
1746
|
+
*_param,
|
|
1747
|
+
_request_timeout=_request_timeout
|
|
1748
|
+
)
|
|
1749
|
+
response_data.read()
|
|
1750
|
+
return self.api_client.response_deserialize(
|
|
1751
|
+
response_data=response_data,
|
|
1752
|
+
response_types_map=_response_types_map,
|
|
1753
|
+
).data
|
|
1754
|
+
|
|
1755
|
+
|
|
1756
|
+
@validate_call
|
|
1757
|
+
def endpoint_groups_post_with_http_info(
|
|
1758
|
+
self,
|
|
1759
|
+
body: Annotated[EndpointgroupsEndpointGroupCreatePayload, Field(description="Environment(Endpoint) Group details")],
|
|
1760
|
+
_request_timeout: Union[
|
|
1761
|
+
None,
|
|
1762
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1763
|
+
Tuple[
|
|
1764
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1765
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1766
|
+
]
|
|
1767
|
+
] = None,
|
|
1768
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1769
|
+
_content_type: Optional[StrictStr] = None,
|
|
1770
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1771
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1772
|
+
) -> ApiResponse[PortainerEndpointGroup]:
|
|
1773
|
+
"""Create an Environment(Endpoint) Group
|
|
1774
|
+
|
|
1775
|
+
Create a new environment(endpoint) group. **Access policy**: administrator
|
|
1776
|
+
|
|
1777
|
+
:param body: Environment(Endpoint) Group details (required)
|
|
1778
|
+
:type body: EndpointgroupsEndpointGroupCreatePayload
|
|
1779
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1780
|
+
number provided, it will be total request
|
|
1781
|
+
timeout. It can also be a pair (tuple) of
|
|
1782
|
+
(connection, read) timeouts.
|
|
1783
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1784
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1785
|
+
request; this effectively ignores the
|
|
1786
|
+
authentication in the spec for a single request.
|
|
1787
|
+
:type _request_auth: dict, optional
|
|
1788
|
+
:param _content_type: force content-type for the request.
|
|
1789
|
+
:type _content_type: str, Optional
|
|
1790
|
+
:param _headers: set to override the headers for a single
|
|
1791
|
+
request; this effectively ignores the headers
|
|
1792
|
+
in the spec for a single request.
|
|
1793
|
+
:type _headers: dict, optional
|
|
1794
|
+
:param _host_index: set to override the host_index for a single
|
|
1795
|
+
request; this effectively ignores the host_index
|
|
1796
|
+
in the spec for a single request.
|
|
1797
|
+
:type _host_index: int, optional
|
|
1798
|
+
:return: Returns the result object.
|
|
1799
|
+
""" # noqa: E501
|
|
1800
|
+
|
|
1801
|
+
_param = self._endpoint_groups_post_serialize(
|
|
1802
|
+
body=body,
|
|
1803
|
+
_request_auth=_request_auth,
|
|
1804
|
+
_content_type=_content_type,
|
|
1805
|
+
_headers=_headers,
|
|
1806
|
+
_host_index=_host_index
|
|
1807
|
+
)
|
|
1808
|
+
|
|
1809
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1810
|
+
'200': "PortainerEndpointGroup",
|
|
1811
|
+
'400': None,
|
|
1812
|
+
'500': None,
|
|
1813
|
+
}
|
|
1814
|
+
response_data = self.api_client.call_api(
|
|
1815
|
+
*_param,
|
|
1816
|
+
_request_timeout=_request_timeout
|
|
1817
|
+
)
|
|
1818
|
+
response_data.read()
|
|
1819
|
+
return self.api_client.response_deserialize(
|
|
1820
|
+
response_data=response_data,
|
|
1821
|
+
response_types_map=_response_types_map,
|
|
1822
|
+
)
|
|
1823
|
+
|
|
1824
|
+
|
|
1825
|
+
@validate_call
|
|
1826
|
+
def endpoint_groups_post_without_preload_content(
|
|
1827
|
+
self,
|
|
1828
|
+
body: Annotated[EndpointgroupsEndpointGroupCreatePayload, Field(description="Environment(Endpoint) Group details")],
|
|
1829
|
+
_request_timeout: Union[
|
|
1830
|
+
None,
|
|
1831
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1832
|
+
Tuple[
|
|
1833
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1834
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1835
|
+
]
|
|
1836
|
+
] = None,
|
|
1837
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1838
|
+
_content_type: Optional[StrictStr] = None,
|
|
1839
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1840
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1841
|
+
) -> RESTResponseType:
|
|
1842
|
+
"""Create an Environment(Endpoint) Group
|
|
1843
|
+
|
|
1844
|
+
Create a new environment(endpoint) group. **Access policy**: administrator
|
|
1845
|
+
|
|
1846
|
+
:param body: Environment(Endpoint) Group details (required)
|
|
1847
|
+
:type body: EndpointgroupsEndpointGroupCreatePayload
|
|
1848
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1849
|
+
number provided, it will be total request
|
|
1850
|
+
timeout. It can also be a pair (tuple) of
|
|
1851
|
+
(connection, read) timeouts.
|
|
1852
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1853
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1854
|
+
request; this effectively ignores the
|
|
1855
|
+
authentication in the spec for a single request.
|
|
1856
|
+
:type _request_auth: dict, optional
|
|
1857
|
+
:param _content_type: force content-type for the request.
|
|
1858
|
+
:type _content_type: str, Optional
|
|
1859
|
+
:param _headers: set to override the headers for a single
|
|
1860
|
+
request; this effectively ignores the headers
|
|
1861
|
+
in the spec for a single request.
|
|
1862
|
+
:type _headers: dict, optional
|
|
1863
|
+
:param _host_index: set to override the host_index for a single
|
|
1864
|
+
request; this effectively ignores the host_index
|
|
1865
|
+
in the spec for a single request.
|
|
1866
|
+
:type _host_index: int, optional
|
|
1867
|
+
:return: Returns the result object.
|
|
1868
|
+
""" # noqa: E501
|
|
1869
|
+
|
|
1870
|
+
_param = self._endpoint_groups_post_serialize(
|
|
1871
|
+
body=body,
|
|
1872
|
+
_request_auth=_request_auth,
|
|
1873
|
+
_content_type=_content_type,
|
|
1874
|
+
_headers=_headers,
|
|
1875
|
+
_host_index=_host_index
|
|
1876
|
+
)
|
|
1877
|
+
|
|
1878
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1879
|
+
'200': "PortainerEndpointGroup",
|
|
1880
|
+
'400': None,
|
|
1881
|
+
'500': None,
|
|
1882
|
+
}
|
|
1883
|
+
response_data = self.api_client.call_api(
|
|
1884
|
+
*_param,
|
|
1885
|
+
_request_timeout=_request_timeout
|
|
1886
|
+
)
|
|
1887
|
+
return response_data.response
|
|
1888
|
+
|
|
1889
|
+
|
|
1890
|
+
def _endpoint_groups_post_serialize(
|
|
1891
|
+
self,
|
|
1892
|
+
body,
|
|
1893
|
+
_request_auth,
|
|
1894
|
+
_content_type,
|
|
1895
|
+
_headers,
|
|
1896
|
+
_host_index,
|
|
1897
|
+
) -> RequestSerialized:
|
|
1898
|
+
|
|
1899
|
+
_host = None
|
|
1900
|
+
|
|
1901
|
+
_collection_formats: Dict[str, str] = {
|
|
1902
|
+
}
|
|
1903
|
+
|
|
1904
|
+
_path_params: Dict[str, str] = {}
|
|
1905
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1906
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1907
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1908
|
+
_files: Dict[
|
|
1909
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1910
|
+
] = {}
|
|
1911
|
+
_body_params: Optional[bytes] = None
|
|
1912
|
+
|
|
1913
|
+
# process the path parameters
|
|
1914
|
+
# process the query parameters
|
|
1915
|
+
# process the header parameters
|
|
1916
|
+
# process the form parameters
|
|
1917
|
+
# process the body parameter
|
|
1918
|
+
if body is not None:
|
|
1919
|
+
_body_params = body
|
|
1920
|
+
|
|
1921
|
+
|
|
1922
|
+
# set the HTTP header `Accept`
|
|
1923
|
+
if 'Accept' not in _header_params:
|
|
1924
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1925
|
+
[
|
|
1926
|
+
'application/json'
|
|
1927
|
+
]
|
|
1928
|
+
)
|
|
1929
|
+
|
|
1930
|
+
# set the HTTP header `Content-Type`
|
|
1931
|
+
if _content_type:
|
|
1932
|
+
_header_params['Content-Type'] = _content_type
|
|
1933
|
+
else:
|
|
1934
|
+
_default_content_type = (
|
|
1935
|
+
self.api_client.select_header_content_type(
|
|
1936
|
+
[
|
|
1937
|
+
'application/json'
|
|
1938
|
+
]
|
|
1939
|
+
)
|
|
1940
|
+
)
|
|
1941
|
+
if _default_content_type is not None:
|
|
1942
|
+
_header_params['Content-Type'] = _default_content_type
|
|
1943
|
+
|
|
1944
|
+
# authentication setting
|
|
1945
|
+
_auth_settings: List[str] = [
|
|
1946
|
+
'jwt',
|
|
1947
|
+
'ApiKeyAuth'
|
|
1948
|
+
]
|
|
1949
|
+
|
|
1950
|
+
return self.api_client.param_serialize(
|
|
1951
|
+
method='POST',
|
|
1952
|
+
resource_path='/endpoint_groups',
|
|
1953
|
+
path_params=_path_params,
|
|
1954
|
+
query_params=_query_params,
|
|
1955
|
+
header_params=_header_params,
|
|
1956
|
+
body=_body_params,
|
|
1957
|
+
post_params=_form_params,
|
|
1958
|
+
files=_files,
|
|
1959
|
+
auth_settings=_auth_settings,
|
|
1960
|
+
collection_formats=_collection_formats,
|
|
1961
|
+
_host=_host,
|
|
1962
|
+
_request_auth=_request_auth
|
|
1963
|
+
)
|
|
1964
|
+
|
|
1965
|
+
|