ptctools 0.1.0__py3-none-any.whl → 0.1.1__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/config.py +81 -142
- ptctools/db.py +166 -136
- 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/stack.py +177 -259
- ptctools/utils.py +8 -0
- ptctools/volume.py +581 -66
- {ptctools-0.1.0.dist-info → ptctools-0.1.1.dist-info}/METADATA +33 -1
- ptctools-0.1.1.dist-info/RECORD +1239 -0
- ptctools-0.1.0.dist-info/RECORD +0 -14
- {ptctools-0.1.0.dist-info → ptctools-0.1.1.dist-info}/WHEEL +0 -0
- {ptctools-0.1.0.dist-info → ptctools-0.1.1.dist-info}/entry_points.txt +0 -0
- {ptctools-0.1.0.dist-info → ptctools-0.1.1.dist-info}/licenses/LICENSE +0 -0
|
@@ -0,0 +1,2990 @@
|
|
|
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, StrictBool, StrictBytes, StrictInt, StrictStr
|
|
21
|
+
from typing import List, Optional, Tuple, Union
|
|
22
|
+
from typing_extensions import Annotated
|
|
23
|
+
from openapi_client.models.edge_stack_payload import EdgeStackPayload
|
|
24
|
+
from openapi_client.models.edgestacks_edge_stack_from_git_repository_payload import EdgestacksEdgeStackFromGitRepositoryPayload
|
|
25
|
+
from openapi_client.models.edgestacks_edge_stack_from_string_payload import EdgestacksEdgeStackFromStringPayload
|
|
26
|
+
from openapi_client.models.edgestacks_stack_file_response import EdgestacksStackFileResponse
|
|
27
|
+
from openapi_client.models.edgestacks_update_edge_stack_payload import EdgestacksUpdateEdgeStackPayload
|
|
28
|
+
from openapi_client.models.edgestacks_update_status_payload import EdgestacksUpdateStatusPayload
|
|
29
|
+
from openapi_client.models.portainer_edge_stack import PortainerEdgeStack
|
|
30
|
+
|
|
31
|
+
from openapi_client.api_client import ApiClient, RequestSerialized
|
|
32
|
+
from openapi_client.api_response import ApiResponse
|
|
33
|
+
from openapi_client.rest import RESTResponseType
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
class EdgeStacksApi:
|
|
37
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
38
|
+
Ref: https://openapi-generator.tech
|
|
39
|
+
|
|
40
|
+
Do not edit the class manually.
|
|
41
|
+
"""
|
|
42
|
+
|
|
43
|
+
def __init__(self, api_client=None) -> None:
|
|
44
|
+
if api_client is None:
|
|
45
|
+
api_client = ApiClient.get_default()
|
|
46
|
+
self.api_client = api_client
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
@validate_call
|
|
50
|
+
def edge_stack_create_file(
|
|
51
|
+
self,
|
|
52
|
+
name: Annotated[StrictStr, Field(description="Name of the stack. it must only consist of lowercase alphanumeric characters, hyphens, or underscores as well as start with a letter or number")],
|
|
53
|
+
file: Annotated[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]], Field(description="Content of the Stack file")],
|
|
54
|
+
edge_groups: Annotated[StrictStr, Field(description="JSON stringified array of Edge Groups ids")],
|
|
55
|
+
deployment_type: Annotated[StrictInt, Field(description="deploy type 0 - 'compose', 1 - 'kubernetes'")],
|
|
56
|
+
dryrun: Annotated[Optional[StrictStr], Field(description="if true, will not create an edge stack, but just will check the settings and return a non-persisted edge stack object")] = None,
|
|
57
|
+
registries: Annotated[Optional[StrictStr], Field(description="JSON stringified array of Registry ids to use for this stack")] = None,
|
|
58
|
+
use_manifest_namespaces: Annotated[Optional[StrictBool], Field(description="Uses the manifest's namespaces instead of the default one, relevant only for kube environments")] = None,
|
|
59
|
+
pre_pull_image: Annotated[Optional[StrictBool], Field(description="Pre Pull image")] = None,
|
|
60
|
+
retry_deploy: Annotated[Optional[StrictBool], Field(description="Retry deploy")] = None,
|
|
61
|
+
_request_timeout: Union[
|
|
62
|
+
None,
|
|
63
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
64
|
+
Tuple[
|
|
65
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
66
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
67
|
+
]
|
|
68
|
+
] = None,
|
|
69
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
70
|
+
_content_type: Optional[StrictStr] = None,
|
|
71
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
72
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
73
|
+
) -> PortainerEdgeStack:
|
|
74
|
+
"""Create an EdgeStack from file
|
|
75
|
+
|
|
76
|
+
**Access policy**: administrator
|
|
77
|
+
|
|
78
|
+
:param name: Name of the stack. it must only consist of lowercase alphanumeric characters, hyphens, or underscores as well as start with a letter or number (required)
|
|
79
|
+
:type name: str
|
|
80
|
+
:param file: Content of the Stack file (required)
|
|
81
|
+
:type file: bytearray
|
|
82
|
+
:param edge_groups: JSON stringified array of Edge Groups ids (required)
|
|
83
|
+
:type edge_groups: str
|
|
84
|
+
:param deployment_type: deploy type 0 - 'compose', 1 - 'kubernetes' (required)
|
|
85
|
+
:type deployment_type: int
|
|
86
|
+
:param dryrun: if true, will not create an edge stack, but just will check the settings and return a non-persisted edge stack object
|
|
87
|
+
:type dryrun: str
|
|
88
|
+
:param registries: JSON stringified array of Registry ids to use for this stack
|
|
89
|
+
:type registries: str
|
|
90
|
+
:param use_manifest_namespaces: Uses the manifest's namespaces instead of the default one, relevant only for kube environments
|
|
91
|
+
:type use_manifest_namespaces: bool
|
|
92
|
+
:param pre_pull_image: Pre Pull image
|
|
93
|
+
:type pre_pull_image: bool
|
|
94
|
+
:param retry_deploy: Retry deploy
|
|
95
|
+
:type retry_deploy: bool
|
|
96
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
97
|
+
number provided, it will be total request
|
|
98
|
+
timeout. It can also be a pair (tuple) of
|
|
99
|
+
(connection, read) timeouts.
|
|
100
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
101
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
102
|
+
request; this effectively ignores the
|
|
103
|
+
authentication in the spec for a single request.
|
|
104
|
+
:type _request_auth: dict, optional
|
|
105
|
+
:param _content_type: force content-type for the request.
|
|
106
|
+
:type _content_type: str, Optional
|
|
107
|
+
:param _headers: set to override the headers for a single
|
|
108
|
+
request; this effectively ignores the headers
|
|
109
|
+
in the spec for a single request.
|
|
110
|
+
:type _headers: dict, optional
|
|
111
|
+
:param _host_index: set to override the host_index for a single
|
|
112
|
+
request; this effectively ignores the host_index
|
|
113
|
+
in the spec for a single request.
|
|
114
|
+
:type _host_index: int, optional
|
|
115
|
+
:return: Returns the result object.
|
|
116
|
+
""" # noqa: E501
|
|
117
|
+
|
|
118
|
+
_param = self._edge_stack_create_file_serialize(
|
|
119
|
+
name=name,
|
|
120
|
+
file=file,
|
|
121
|
+
edge_groups=edge_groups,
|
|
122
|
+
deployment_type=deployment_type,
|
|
123
|
+
dryrun=dryrun,
|
|
124
|
+
registries=registries,
|
|
125
|
+
use_manifest_namespaces=use_manifest_namespaces,
|
|
126
|
+
pre_pull_image=pre_pull_image,
|
|
127
|
+
retry_deploy=retry_deploy,
|
|
128
|
+
_request_auth=_request_auth,
|
|
129
|
+
_content_type=_content_type,
|
|
130
|
+
_headers=_headers,
|
|
131
|
+
_host_index=_host_index
|
|
132
|
+
)
|
|
133
|
+
|
|
134
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
135
|
+
'200': "PortainerEdgeStack",
|
|
136
|
+
'400': None,
|
|
137
|
+
'500': None,
|
|
138
|
+
'503': None,
|
|
139
|
+
}
|
|
140
|
+
response_data = self.api_client.call_api(
|
|
141
|
+
*_param,
|
|
142
|
+
_request_timeout=_request_timeout
|
|
143
|
+
)
|
|
144
|
+
response_data.read()
|
|
145
|
+
return self.api_client.response_deserialize(
|
|
146
|
+
response_data=response_data,
|
|
147
|
+
response_types_map=_response_types_map,
|
|
148
|
+
).data
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
@validate_call
|
|
152
|
+
def edge_stack_create_file_with_http_info(
|
|
153
|
+
self,
|
|
154
|
+
name: Annotated[StrictStr, Field(description="Name of the stack. it must only consist of lowercase alphanumeric characters, hyphens, or underscores as well as start with a letter or number")],
|
|
155
|
+
file: Annotated[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]], Field(description="Content of the Stack file")],
|
|
156
|
+
edge_groups: Annotated[StrictStr, Field(description="JSON stringified array of Edge Groups ids")],
|
|
157
|
+
deployment_type: Annotated[StrictInt, Field(description="deploy type 0 - 'compose', 1 - 'kubernetes'")],
|
|
158
|
+
dryrun: Annotated[Optional[StrictStr], Field(description="if true, will not create an edge stack, but just will check the settings and return a non-persisted edge stack object")] = None,
|
|
159
|
+
registries: Annotated[Optional[StrictStr], Field(description="JSON stringified array of Registry ids to use for this stack")] = None,
|
|
160
|
+
use_manifest_namespaces: Annotated[Optional[StrictBool], Field(description="Uses the manifest's namespaces instead of the default one, relevant only for kube environments")] = None,
|
|
161
|
+
pre_pull_image: Annotated[Optional[StrictBool], Field(description="Pre Pull image")] = None,
|
|
162
|
+
retry_deploy: Annotated[Optional[StrictBool], Field(description="Retry deploy")] = None,
|
|
163
|
+
_request_timeout: Union[
|
|
164
|
+
None,
|
|
165
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
166
|
+
Tuple[
|
|
167
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
168
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
169
|
+
]
|
|
170
|
+
] = None,
|
|
171
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
172
|
+
_content_type: Optional[StrictStr] = None,
|
|
173
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
174
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
175
|
+
) -> ApiResponse[PortainerEdgeStack]:
|
|
176
|
+
"""Create an EdgeStack from file
|
|
177
|
+
|
|
178
|
+
**Access policy**: administrator
|
|
179
|
+
|
|
180
|
+
:param name: Name of the stack. it must only consist of lowercase alphanumeric characters, hyphens, or underscores as well as start with a letter or number (required)
|
|
181
|
+
:type name: str
|
|
182
|
+
:param file: Content of the Stack file (required)
|
|
183
|
+
:type file: bytearray
|
|
184
|
+
:param edge_groups: JSON stringified array of Edge Groups ids (required)
|
|
185
|
+
:type edge_groups: str
|
|
186
|
+
:param deployment_type: deploy type 0 - 'compose', 1 - 'kubernetes' (required)
|
|
187
|
+
:type deployment_type: int
|
|
188
|
+
:param dryrun: if true, will not create an edge stack, but just will check the settings and return a non-persisted edge stack object
|
|
189
|
+
:type dryrun: str
|
|
190
|
+
:param registries: JSON stringified array of Registry ids to use for this stack
|
|
191
|
+
:type registries: str
|
|
192
|
+
:param use_manifest_namespaces: Uses the manifest's namespaces instead of the default one, relevant only for kube environments
|
|
193
|
+
:type use_manifest_namespaces: bool
|
|
194
|
+
:param pre_pull_image: Pre Pull image
|
|
195
|
+
:type pre_pull_image: bool
|
|
196
|
+
:param retry_deploy: Retry deploy
|
|
197
|
+
:type retry_deploy: bool
|
|
198
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
199
|
+
number provided, it will be total request
|
|
200
|
+
timeout. It can also be a pair (tuple) of
|
|
201
|
+
(connection, read) timeouts.
|
|
202
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
203
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
204
|
+
request; this effectively ignores the
|
|
205
|
+
authentication in the spec for a single request.
|
|
206
|
+
:type _request_auth: dict, optional
|
|
207
|
+
:param _content_type: force content-type for the request.
|
|
208
|
+
:type _content_type: str, Optional
|
|
209
|
+
:param _headers: set to override the headers for a single
|
|
210
|
+
request; this effectively ignores the headers
|
|
211
|
+
in the spec for a single request.
|
|
212
|
+
:type _headers: dict, optional
|
|
213
|
+
:param _host_index: set to override the host_index for a single
|
|
214
|
+
request; this effectively ignores the host_index
|
|
215
|
+
in the spec for a single request.
|
|
216
|
+
:type _host_index: int, optional
|
|
217
|
+
:return: Returns the result object.
|
|
218
|
+
""" # noqa: E501
|
|
219
|
+
|
|
220
|
+
_param = self._edge_stack_create_file_serialize(
|
|
221
|
+
name=name,
|
|
222
|
+
file=file,
|
|
223
|
+
edge_groups=edge_groups,
|
|
224
|
+
deployment_type=deployment_type,
|
|
225
|
+
dryrun=dryrun,
|
|
226
|
+
registries=registries,
|
|
227
|
+
use_manifest_namespaces=use_manifest_namespaces,
|
|
228
|
+
pre_pull_image=pre_pull_image,
|
|
229
|
+
retry_deploy=retry_deploy,
|
|
230
|
+
_request_auth=_request_auth,
|
|
231
|
+
_content_type=_content_type,
|
|
232
|
+
_headers=_headers,
|
|
233
|
+
_host_index=_host_index
|
|
234
|
+
)
|
|
235
|
+
|
|
236
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
237
|
+
'200': "PortainerEdgeStack",
|
|
238
|
+
'400': None,
|
|
239
|
+
'500': None,
|
|
240
|
+
'503': None,
|
|
241
|
+
}
|
|
242
|
+
response_data = self.api_client.call_api(
|
|
243
|
+
*_param,
|
|
244
|
+
_request_timeout=_request_timeout
|
|
245
|
+
)
|
|
246
|
+
response_data.read()
|
|
247
|
+
return self.api_client.response_deserialize(
|
|
248
|
+
response_data=response_data,
|
|
249
|
+
response_types_map=_response_types_map,
|
|
250
|
+
)
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
@validate_call
|
|
254
|
+
def edge_stack_create_file_without_preload_content(
|
|
255
|
+
self,
|
|
256
|
+
name: Annotated[StrictStr, Field(description="Name of the stack. it must only consist of lowercase alphanumeric characters, hyphens, or underscores as well as start with a letter or number")],
|
|
257
|
+
file: Annotated[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]], Field(description="Content of the Stack file")],
|
|
258
|
+
edge_groups: Annotated[StrictStr, Field(description="JSON stringified array of Edge Groups ids")],
|
|
259
|
+
deployment_type: Annotated[StrictInt, Field(description="deploy type 0 - 'compose', 1 - 'kubernetes'")],
|
|
260
|
+
dryrun: Annotated[Optional[StrictStr], Field(description="if true, will not create an edge stack, but just will check the settings and return a non-persisted edge stack object")] = None,
|
|
261
|
+
registries: Annotated[Optional[StrictStr], Field(description="JSON stringified array of Registry ids to use for this stack")] = None,
|
|
262
|
+
use_manifest_namespaces: Annotated[Optional[StrictBool], Field(description="Uses the manifest's namespaces instead of the default one, relevant only for kube environments")] = None,
|
|
263
|
+
pre_pull_image: Annotated[Optional[StrictBool], Field(description="Pre Pull image")] = None,
|
|
264
|
+
retry_deploy: Annotated[Optional[StrictBool], Field(description="Retry deploy")] = None,
|
|
265
|
+
_request_timeout: Union[
|
|
266
|
+
None,
|
|
267
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
268
|
+
Tuple[
|
|
269
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
270
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
271
|
+
]
|
|
272
|
+
] = None,
|
|
273
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
274
|
+
_content_type: Optional[StrictStr] = None,
|
|
275
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
276
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
277
|
+
) -> RESTResponseType:
|
|
278
|
+
"""Create an EdgeStack from file
|
|
279
|
+
|
|
280
|
+
**Access policy**: administrator
|
|
281
|
+
|
|
282
|
+
:param name: Name of the stack. it must only consist of lowercase alphanumeric characters, hyphens, or underscores as well as start with a letter or number (required)
|
|
283
|
+
:type name: str
|
|
284
|
+
:param file: Content of the Stack file (required)
|
|
285
|
+
:type file: bytearray
|
|
286
|
+
:param edge_groups: JSON stringified array of Edge Groups ids (required)
|
|
287
|
+
:type edge_groups: str
|
|
288
|
+
:param deployment_type: deploy type 0 - 'compose', 1 - 'kubernetes' (required)
|
|
289
|
+
:type deployment_type: int
|
|
290
|
+
:param dryrun: if true, will not create an edge stack, but just will check the settings and return a non-persisted edge stack object
|
|
291
|
+
:type dryrun: str
|
|
292
|
+
:param registries: JSON stringified array of Registry ids to use for this stack
|
|
293
|
+
:type registries: str
|
|
294
|
+
:param use_manifest_namespaces: Uses the manifest's namespaces instead of the default one, relevant only for kube environments
|
|
295
|
+
:type use_manifest_namespaces: bool
|
|
296
|
+
:param pre_pull_image: Pre Pull image
|
|
297
|
+
:type pre_pull_image: bool
|
|
298
|
+
:param retry_deploy: Retry deploy
|
|
299
|
+
:type retry_deploy: bool
|
|
300
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
301
|
+
number provided, it will be total request
|
|
302
|
+
timeout. It can also be a pair (tuple) of
|
|
303
|
+
(connection, read) timeouts.
|
|
304
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
305
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
306
|
+
request; this effectively ignores the
|
|
307
|
+
authentication in the spec for a single request.
|
|
308
|
+
:type _request_auth: dict, optional
|
|
309
|
+
:param _content_type: force content-type for the request.
|
|
310
|
+
:type _content_type: str, Optional
|
|
311
|
+
:param _headers: set to override the headers for a single
|
|
312
|
+
request; this effectively ignores the headers
|
|
313
|
+
in the spec for a single request.
|
|
314
|
+
:type _headers: dict, optional
|
|
315
|
+
:param _host_index: set to override the host_index for a single
|
|
316
|
+
request; this effectively ignores the host_index
|
|
317
|
+
in the spec for a single request.
|
|
318
|
+
:type _host_index: int, optional
|
|
319
|
+
:return: Returns the result object.
|
|
320
|
+
""" # noqa: E501
|
|
321
|
+
|
|
322
|
+
_param = self._edge_stack_create_file_serialize(
|
|
323
|
+
name=name,
|
|
324
|
+
file=file,
|
|
325
|
+
edge_groups=edge_groups,
|
|
326
|
+
deployment_type=deployment_type,
|
|
327
|
+
dryrun=dryrun,
|
|
328
|
+
registries=registries,
|
|
329
|
+
use_manifest_namespaces=use_manifest_namespaces,
|
|
330
|
+
pre_pull_image=pre_pull_image,
|
|
331
|
+
retry_deploy=retry_deploy,
|
|
332
|
+
_request_auth=_request_auth,
|
|
333
|
+
_content_type=_content_type,
|
|
334
|
+
_headers=_headers,
|
|
335
|
+
_host_index=_host_index
|
|
336
|
+
)
|
|
337
|
+
|
|
338
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
339
|
+
'200': "PortainerEdgeStack",
|
|
340
|
+
'400': None,
|
|
341
|
+
'500': None,
|
|
342
|
+
'503': None,
|
|
343
|
+
}
|
|
344
|
+
response_data = self.api_client.call_api(
|
|
345
|
+
*_param,
|
|
346
|
+
_request_timeout=_request_timeout
|
|
347
|
+
)
|
|
348
|
+
return response_data.response
|
|
349
|
+
|
|
350
|
+
|
|
351
|
+
def _edge_stack_create_file_serialize(
|
|
352
|
+
self,
|
|
353
|
+
name,
|
|
354
|
+
file,
|
|
355
|
+
edge_groups,
|
|
356
|
+
deployment_type,
|
|
357
|
+
dryrun,
|
|
358
|
+
registries,
|
|
359
|
+
use_manifest_namespaces,
|
|
360
|
+
pre_pull_image,
|
|
361
|
+
retry_deploy,
|
|
362
|
+
_request_auth,
|
|
363
|
+
_content_type,
|
|
364
|
+
_headers,
|
|
365
|
+
_host_index,
|
|
366
|
+
) -> RequestSerialized:
|
|
367
|
+
|
|
368
|
+
_host = None
|
|
369
|
+
|
|
370
|
+
_collection_formats: Dict[str, str] = {
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
_path_params: Dict[str, str] = {}
|
|
374
|
+
_query_params: List[Tuple[str, str]] = []
|
|
375
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
376
|
+
_form_params: List[Tuple[str, str]] = []
|
|
377
|
+
_files: Dict[
|
|
378
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
379
|
+
] = {}
|
|
380
|
+
_body_params: Optional[bytes] = None
|
|
381
|
+
|
|
382
|
+
# process the path parameters
|
|
383
|
+
# process the query parameters
|
|
384
|
+
if dryrun is not None:
|
|
385
|
+
|
|
386
|
+
_query_params.append(('dryrun', dryrun))
|
|
387
|
+
|
|
388
|
+
# process the header parameters
|
|
389
|
+
# process the form parameters
|
|
390
|
+
if name is not None:
|
|
391
|
+
_form_params.append(('Name', name))
|
|
392
|
+
if file is not None:
|
|
393
|
+
_files['file'] = file
|
|
394
|
+
if edge_groups is not None:
|
|
395
|
+
_form_params.append(('EdgeGroups', edge_groups))
|
|
396
|
+
if deployment_type is not None:
|
|
397
|
+
_form_params.append(('DeploymentType', deployment_type))
|
|
398
|
+
if registries is not None:
|
|
399
|
+
_form_params.append(('Registries', registries))
|
|
400
|
+
if use_manifest_namespaces is not None:
|
|
401
|
+
_form_params.append(('UseManifestNamespaces', use_manifest_namespaces))
|
|
402
|
+
if pre_pull_image is not None:
|
|
403
|
+
_form_params.append(('PrePullImage', pre_pull_image))
|
|
404
|
+
if retry_deploy is not None:
|
|
405
|
+
_form_params.append(('RetryDeploy', retry_deploy))
|
|
406
|
+
# process the body parameter
|
|
407
|
+
|
|
408
|
+
|
|
409
|
+
# set the HTTP header `Accept`
|
|
410
|
+
if 'Accept' not in _header_params:
|
|
411
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
412
|
+
[
|
|
413
|
+
'application/json'
|
|
414
|
+
]
|
|
415
|
+
)
|
|
416
|
+
|
|
417
|
+
# set the HTTP header `Content-Type`
|
|
418
|
+
if _content_type:
|
|
419
|
+
_header_params['Content-Type'] = _content_type
|
|
420
|
+
else:
|
|
421
|
+
_default_content_type = (
|
|
422
|
+
self.api_client.select_header_content_type(
|
|
423
|
+
[
|
|
424
|
+
'multipart/form-data'
|
|
425
|
+
]
|
|
426
|
+
)
|
|
427
|
+
)
|
|
428
|
+
if _default_content_type is not None:
|
|
429
|
+
_header_params['Content-Type'] = _default_content_type
|
|
430
|
+
|
|
431
|
+
# authentication setting
|
|
432
|
+
_auth_settings: List[str] = [
|
|
433
|
+
'jwt',
|
|
434
|
+
'ApiKeyAuth'
|
|
435
|
+
]
|
|
436
|
+
|
|
437
|
+
return self.api_client.param_serialize(
|
|
438
|
+
method='POST',
|
|
439
|
+
resource_path='/edge_stacks/create/file',
|
|
440
|
+
path_params=_path_params,
|
|
441
|
+
query_params=_query_params,
|
|
442
|
+
header_params=_header_params,
|
|
443
|
+
body=_body_params,
|
|
444
|
+
post_params=_form_params,
|
|
445
|
+
files=_files,
|
|
446
|
+
auth_settings=_auth_settings,
|
|
447
|
+
collection_formats=_collection_formats,
|
|
448
|
+
_host=_host,
|
|
449
|
+
_request_auth=_request_auth
|
|
450
|
+
)
|
|
451
|
+
|
|
452
|
+
|
|
453
|
+
|
|
454
|
+
|
|
455
|
+
@validate_call
|
|
456
|
+
def edge_stack_create_repository(
|
|
457
|
+
self,
|
|
458
|
+
body: Annotated[EdgestacksEdgeStackFromGitRepositoryPayload, Field(description="stack config")],
|
|
459
|
+
dryrun: Annotated[Optional[StrictStr], Field(description="if true, will not create an edge stack, but just will check the settings and return a non-persisted edge stack object")] = None,
|
|
460
|
+
_request_timeout: Union[
|
|
461
|
+
None,
|
|
462
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
463
|
+
Tuple[
|
|
464
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
465
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
466
|
+
]
|
|
467
|
+
] = None,
|
|
468
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
469
|
+
_content_type: Optional[StrictStr] = None,
|
|
470
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
471
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
472
|
+
) -> PortainerEdgeStack:
|
|
473
|
+
"""Create an EdgeStack from a git repository
|
|
474
|
+
|
|
475
|
+
**Access policy**: administrator
|
|
476
|
+
|
|
477
|
+
:param body: stack config (required)
|
|
478
|
+
:type body: EdgestacksEdgeStackFromGitRepositoryPayload
|
|
479
|
+
:param dryrun: if true, will not create an edge stack, but just will check the settings and return a non-persisted edge stack object
|
|
480
|
+
:type dryrun: str
|
|
481
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
482
|
+
number provided, it will be total request
|
|
483
|
+
timeout. It can also be a pair (tuple) of
|
|
484
|
+
(connection, read) timeouts.
|
|
485
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
486
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
487
|
+
request; this effectively ignores the
|
|
488
|
+
authentication in the spec for a single request.
|
|
489
|
+
:type _request_auth: dict, optional
|
|
490
|
+
:param _content_type: force content-type for the request.
|
|
491
|
+
:type _content_type: str, Optional
|
|
492
|
+
:param _headers: set to override the headers for a single
|
|
493
|
+
request; this effectively ignores the headers
|
|
494
|
+
in the spec for a single request.
|
|
495
|
+
:type _headers: dict, optional
|
|
496
|
+
:param _host_index: set to override the host_index for a single
|
|
497
|
+
request; this effectively ignores the host_index
|
|
498
|
+
in the spec for a single request.
|
|
499
|
+
:type _host_index: int, optional
|
|
500
|
+
:return: Returns the result object.
|
|
501
|
+
""" # noqa: E501
|
|
502
|
+
|
|
503
|
+
_param = self._edge_stack_create_repository_serialize(
|
|
504
|
+
body=body,
|
|
505
|
+
dryrun=dryrun,
|
|
506
|
+
_request_auth=_request_auth,
|
|
507
|
+
_content_type=_content_type,
|
|
508
|
+
_headers=_headers,
|
|
509
|
+
_host_index=_host_index
|
|
510
|
+
)
|
|
511
|
+
|
|
512
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
513
|
+
'200': "PortainerEdgeStack",
|
|
514
|
+
'400': None,
|
|
515
|
+
'500': None,
|
|
516
|
+
'503': None,
|
|
517
|
+
}
|
|
518
|
+
response_data = self.api_client.call_api(
|
|
519
|
+
*_param,
|
|
520
|
+
_request_timeout=_request_timeout
|
|
521
|
+
)
|
|
522
|
+
response_data.read()
|
|
523
|
+
return self.api_client.response_deserialize(
|
|
524
|
+
response_data=response_data,
|
|
525
|
+
response_types_map=_response_types_map,
|
|
526
|
+
).data
|
|
527
|
+
|
|
528
|
+
|
|
529
|
+
@validate_call
|
|
530
|
+
def edge_stack_create_repository_with_http_info(
|
|
531
|
+
self,
|
|
532
|
+
body: Annotated[EdgestacksEdgeStackFromGitRepositoryPayload, Field(description="stack config")],
|
|
533
|
+
dryrun: Annotated[Optional[StrictStr], Field(description="if true, will not create an edge stack, but just will check the settings and return a non-persisted edge stack object")] = None,
|
|
534
|
+
_request_timeout: Union[
|
|
535
|
+
None,
|
|
536
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
537
|
+
Tuple[
|
|
538
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
539
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
540
|
+
]
|
|
541
|
+
] = None,
|
|
542
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
543
|
+
_content_type: Optional[StrictStr] = None,
|
|
544
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
545
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
546
|
+
) -> ApiResponse[PortainerEdgeStack]:
|
|
547
|
+
"""Create an EdgeStack from a git repository
|
|
548
|
+
|
|
549
|
+
**Access policy**: administrator
|
|
550
|
+
|
|
551
|
+
:param body: stack config (required)
|
|
552
|
+
:type body: EdgestacksEdgeStackFromGitRepositoryPayload
|
|
553
|
+
:param dryrun: if true, will not create an edge stack, but just will check the settings and return a non-persisted edge stack object
|
|
554
|
+
:type dryrun: str
|
|
555
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
556
|
+
number provided, it will be total request
|
|
557
|
+
timeout. It can also be a pair (tuple) of
|
|
558
|
+
(connection, read) timeouts.
|
|
559
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
560
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
561
|
+
request; this effectively ignores the
|
|
562
|
+
authentication in the spec for a single request.
|
|
563
|
+
:type _request_auth: dict, optional
|
|
564
|
+
:param _content_type: force content-type for the request.
|
|
565
|
+
:type _content_type: str, Optional
|
|
566
|
+
:param _headers: set to override the headers for a single
|
|
567
|
+
request; this effectively ignores the headers
|
|
568
|
+
in the spec for a single request.
|
|
569
|
+
:type _headers: dict, optional
|
|
570
|
+
:param _host_index: set to override the host_index for a single
|
|
571
|
+
request; this effectively ignores the host_index
|
|
572
|
+
in the spec for a single request.
|
|
573
|
+
:type _host_index: int, optional
|
|
574
|
+
:return: Returns the result object.
|
|
575
|
+
""" # noqa: E501
|
|
576
|
+
|
|
577
|
+
_param = self._edge_stack_create_repository_serialize(
|
|
578
|
+
body=body,
|
|
579
|
+
dryrun=dryrun,
|
|
580
|
+
_request_auth=_request_auth,
|
|
581
|
+
_content_type=_content_type,
|
|
582
|
+
_headers=_headers,
|
|
583
|
+
_host_index=_host_index
|
|
584
|
+
)
|
|
585
|
+
|
|
586
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
587
|
+
'200': "PortainerEdgeStack",
|
|
588
|
+
'400': None,
|
|
589
|
+
'500': None,
|
|
590
|
+
'503': None,
|
|
591
|
+
}
|
|
592
|
+
response_data = self.api_client.call_api(
|
|
593
|
+
*_param,
|
|
594
|
+
_request_timeout=_request_timeout
|
|
595
|
+
)
|
|
596
|
+
response_data.read()
|
|
597
|
+
return self.api_client.response_deserialize(
|
|
598
|
+
response_data=response_data,
|
|
599
|
+
response_types_map=_response_types_map,
|
|
600
|
+
)
|
|
601
|
+
|
|
602
|
+
|
|
603
|
+
@validate_call
|
|
604
|
+
def edge_stack_create_repository_without_preload_content(
|
|
605
|
+
self,
|
|
606
|
+
body: Annotated[EdgestacksEdgeStackFromGitRepositoryPayload, Field(description="stack config")],
|
|
607
|
+
dryrun: Annotated[Optional[StrictStr], Field(description="if true, will not create an edge stack, but just will check the settings and return a non-persisted edge stack object")] = None,
|
|
608
|
+
_request_timeout: Union[
|
|
609
|
+
None,
|
|
610
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
611
|
+
Tuple[
|
|
612
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
613
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
614
|
+
]
|
|
615
|
+
] = None,
|
|
616
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
617
|
+
_content_type: Optional[StrictStr] = None,
|
|
618
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
619
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
620
|
+
) -> RESTResponseType:
|
|
621
|
+
"""Create an EdgeStack from a git repository
|
|
622
|
+
|
|
623
|
+
**Access policy**: administrator
|
|
624
|
+
|
|
625
|
+
:param body: stack config (required)
|
|
626
|
+
:type body: EdgestacksEdgeStackFromGitRepositoryPayload
|
|
627
|
+
:param dryrun: if true, will not create an edge stack, but just will check the settings and return a non-persisted edge stack object
|
|
628
|
+
:type dryrun: str
|
|
629
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
630
|
+
number provided, it will be total request
|
|
631
|
+
timeout. It can also be a pair (tuple) of
|
|
632
|
+
(connection, read) timeouts.
|
|
633
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
634
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
635
|
+
request; this effectively ignores the
|
|
636
|
+
authentication in the spec for a single request.
|
|
637
|
+
:type _request_auth: dict, optional
|
|
638
|
+
:param _content_type: force content-type for the request.
|
|
639
|
+
:type _content_type: str, Optional
|
|
640
|
+
:param _headers: set to override the headers for a single
|
|
641
|
+
request; this effectively ignores the headers
|
|
642
|
+
in the spec for a single request.
|
|
643
|
+
:type _headers: dict, optional
|
|
644
|
+
:param _host_index: set to override the host_index for a single
|
|
645
|
+
request; this effectively ignores the host_index
|
|
646
|
+
in the spec for a single request.
|
|
647
|
+
:type _host_index: int, optional
|
|
648
|
+
:return: Returns the result object.
|
|
649
|
+
""" # noqa: E501
|
|
650
|
+
|
|
651
|
+
_param = self._edge_stack_create_repository_serialize(
|
|
652
|
+
body=body,
|
|
653
|
+
dryrun=dryrun,
|
|
654
|
+
_request_auth=_request_auth,
|
|
655
|
+
_content_type=_content_type,
|
|
656
|
+
_headers=_headers,
|
|
657
|
+
_host_index=_host_index
|
|
658
|
+
)
|
|
659
|
+
|
|
660
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
661
|
+
'200': "PortainerEdgeStack",
|
|
662
|
+
'400': None,
|
|
663
|
+
'500': None,
|
|
664
|
+
'503': None,
|
|
665
|
+
}
|
|
666
|
+
response_data = self.api_client.call_api(
|
|
667
|
+
*_param,
|
|
668
|
+
_request_timeout=_request_timeout
|
|
669
|
+
)
|
|
670
|
+
return response_data.response
|
|
671
|
+
|
|
672
|
+
|
|
673
|
+
def _edge_stack_create_repository_serialize(
|
|
674
|
+
self,
|
|
675
|
+
body,
|
|
676
|
+
dryrun,
|
|
677
|
+
_request_auth,
|
|
678
|
+
_content_type,
|
|
679
|
+
_headers,
|
|
680
|
+
_host_index,
|
|
681
|
+
) -> RequestSerialized:
|
|
682
|
+
|
|
683
|
+
_host = None
|
|
684
|
+
|
|
685
|
+
_collection_formats: Dict[str, str] = {
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
_path_params: Dict[str, str] = {}
|
|
689
|
+
_query_params: List[Tuple[str, str]] = []
|
|
690
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
691
|
+
_form_params: List[Tuple[str, str]] = []
|
|
692
|
+
_files: Dict[
|
|
693
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
694
|
+
] = {}
|
|
695
|
+
_body_params: Optional[bytes] = None
|
|
696
|
+
|
|
697
|
+
# process the path parameters
|
|
698
|
+
# process the query parameters
|
|
699
|
+
if dryrun is not None:
|
|
700
|
+
|
|
701
|
+
_query_params.append(('dryrun', dryrun))
|
|
702
|
+
|
|
703
|
+
# process the header parameters
|
|
704
|
+
# process the form parameters
|
|
705
|
+
# process the body parameter
|
|
706
|
+
if body is not None:
|
|
707
|
+
_body_params = body
|
|
708
|
+
|
|
709
|
+
|
|
710
|
+
# set the HTTP header `Accept`
|
|
711
|
+
if 'Accept' not in _header_params:
|
|
712
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
713
|
+
[
|
|
714
|
+
'application/json'
|
|
715
|
+
]
|
|
716
|
+
)
|
|
717
|
+
|
|
718
|
+
|
|
719
|
+
# authentication setting
|
|
720
|
+
_auth_settings: List[str] = [
|
|
721
|
+
'jwt',
|
|
722
|
+
'ApiKeyAuth'
|
|
723
|
+
]
|
|
724
|
+
|
|
725
|
+
return self.api_client.param_serialize(
|
|
726
|
+
method='POST',
|
|
727
|
+
resource_path='/edge_stacks/create/repository',
|
|
728
|
+
path_params=_path_params,
|
|
729
|
+
query_params=_query_params,
|
|
730
|
+
header_params=_header_params,
|
|
731
|
+
body=_body_params,
|
|
732
|
+
post_params=_form_params,
|
|
733
|
+
files=_files,
|
|
734
|
+
auth_settings=_auth_settings,
|
|
735
|
+
collection_formats=_collection_formats,
|
|
736
|
+
_host=_host,
|
|
737
|
+
_request_auth=_request_auth
|
|
738
|
+
)
|
|
739
|
+
|
|
740
|
+
|
|
741
|
+
|
|
742
|
+
|
|
743
|
+
@validate_call
|
|
744
|
+
def edge_stack_create_string(
|
|
745
|
+
self,
|
|
746
|
+
body: Annotated[EdgestacksEdgeStackFromStringPayload, Field(description="stack config")],
|
|
747
|
+
dryrun: Annotated[Optional[StrictStr], Field(description="if true, will not create an edge stack, but just will check the settings and return a non-persisted edge stack object")] = None,
|
|
748
|
+
_request_timeout: Union[
|
|
749
|
+
None,
|
|
750
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
751
|
+
Tuple[
|
|
752
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
753
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
754
|
+
]
|
|
755
|
+
] = None,
|
|
756
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
757
|
+
_content_type: Optional[StrictStr] = None,
|
|
758
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
759
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
760
|
+
) -> PortainerEdgeStack:
|
|
761
|
+
"""Create an EdgeStack from a text
|
|
762
|
+
|
|
763
|
+
**Access policy**: administrator
|
|
764
|
+
|
|
765
|
+
:param body: stack config (required)
|
|
766
|
+
:type body: EdgestacksEdgeStackFromStringPayload
|
|
767
|
+
:param dryrun: if true, will not create an edge stack, but just will check the settings and return a non-persisted edge stack object
|
|
768
|
+
:type dryrun: str
|
|
769
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
770
|
+
number provided, it will be total request
|
|
771
|
+
timeout. It can also be a pair (tuple) of
|
|
772
|
+
(connection, read) timeouts.
|
|
773
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
774
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
775
|
+
request; this effectively ignores the
|
|
776
|
+
authentication in the spec for a single request.
|
|
777
|
+
:type _request_auth: dict, optional
|
|
778
|
+
:param _content_type: force content-type for the request.
|
|
779
|
+
:type _content_type: str, Optional
|
|
780
|
+
:param _headers: set to override the headers for a single
|
|
781
|
+
request; this effectively ignores the headers
|
|
782
|
+
in the spec for a single request.
|
|
783
|
+
:type _headers: dict, optional
|
|
784
|
+
:param _host_index: set to override the host_index for a single
|
|
785
|
+
request; this effectively ignores the host_index
|
|
786
|
+
in the spec for a single request.
|
|
787
|
+
:type _host_index: int, optional
|
|
788
|
+
:return: Returns the result object.
|
|
789
|
+
""" # noqa: E501
|
|
790
|
+
|
|
791
|
+
_param = self._edge_stack_create_string_serialize(
|
|
792
|
+
body=body,
|
|
793
|
+
dryrun=dryrun,
|
|
794
|
+
_request_auth=_request_auth,
|
|
795
|
+
_content_type=_content_type,
|
|
796
|
+
_headers=_headers,
|
|
797
|
+
_host_index=_host_index
|
|
798
|
+
)
|
|
799
|
+
|
|
800
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
801
|
+
'200': "PortainerEdgeStack",
|
|
802
|
+
'400': None,
|
|
803
|
+
'500': None,
|
|
804
|
+
'503': None,
|
|
805
|
+
}
|
|
806
|
+
response_data = self.api_client.call_api(
|
|
807
|
+
*_param,
|
|
808
|
+
_request_timeout=_request_timeout
|
|
809
|
+
)
|
|
810
|
+
response_data.read()
|
|
811
|
+
return self.api_client.response_deserialize(
|
|
812
|
+
response_data=response_data,
|
|
813
|
+
response_types_map=_response_types_map,
|
|
814
|
+
).data
|
|
815
|
+
|
|
816
|
+
|
|
817
|
+
@validate_call
|
|
818
|
+
def edge_stack_create_string_with_http_info(
|
|
819
|
+
self,
|
|
820
|
+
body: Annotated[EdgestacksEdgeStackFromStringPayload, Field(description="stack config")],
|
|
821
|
+
dryrun: Annotated[Optional[StrictStr], Field(description="if true, will not create an edge stack, but just will check the settings and return a non-persisted edge stack object")] = None,
|
|
822
|
+
_request_timeout: Union[
|
|
823
|
+
None,
|
|
824
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
825
|
+
Tuple[
|
|
826
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
827
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
828
|
+
]
|
|
829
|
+
] = None,
|
|
830
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
831
|
+
_content_type: Optional[StrictStr] = None,
|
|
832
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
833
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
834
|
+
) -> ApiResponse[PortainerEdgeStack]:
|
|
835
|
+
"""Create an EdgeStack from a text
|
|
836
|
+
|
|
837
|
+
**Access policy**: administrator
|
|
838
|
+
|
|
839
|
+
:param body: stack config (required)
|
|
840
|
+
:type body: EdgestacksEdgeStackFromStringPayload
|
|
841
|
+
:param dryrun: if true, will not create an edge stack, but just will check the settings and return a non-persisted edge stack object
|
|
842
|
+
:type dryrun: str
|
|
843
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
844
|
+
number provided, it will be total request
|
|
845
|
+
timeout. It can also be a pair (tuple) of
|
|
846
|
+
(connection, read) timeouts.
|
|
847
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
848
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
849
|
+
request; this effectively ignores the
|
|
850
|
+
authentication in the spec for a single request.
|
|
851
|
+
:type _request_auth: dict, optional
|
|
852
|
+
:param _content_type: force content-type for the request.
|
|
853
|
+
:type _content_type: str, Optional
|
|
854
|
+
:param _headers: set to override the headers for a single
|
|
855
|
+
request; this effectively ignores the headers
|
|
856
|
+
in the spec for a single request.
|
|
857
|
+
:type _headers: dict, optional
|
|
858
|
+
:param _host_index: set to override the host_index for a single
|
|
859
|
+
request; this effectively ignores the host_index
|
|
860
|
+
in the spec for a single request.
|
|
861
|
+
:type _host_index: int, optional
|
|
862
|
+
:return: Returns the result object.
|
|
863
|
+
""" # noqa: E501
|
|
864
|
+
|
|
865
|
+
_param = self._edge_stack_create_string_serialize(
|
|
866
|
+
body=body,
|
|
867
|
+
dryrun=dryrun,
|
|
868
|
+
_request_auth=_request_auth,
|
|
869
|
+
_content_type=_content_type,
|
|
870
|
+
_headers=_headers,
|
|
871
|
+
_host_index=_host_index
|
|
872
|
+
)
|
|
873
|
+
|
|
874
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
875
|
+
'200': "PortainerEdgeStack",
|
|
876
|
+
'400': None,
|
|
877
|
+
'500': None,
|
|
878
|
+
'503': None,
|
|
879
|
+
}
|
|
880
|
+
response_data = self.api_client.call_api(
|
|
881
|
+
*_param,
|
|
882
|
+
_request_timeout=_request_timeout
|
|
883
|
+
)
|
|
884
|
+
response_data.read()
|
|
885
|
+
return self.api_client.response_deserialize(
|
|
886
|
+
response_data=response_data,
|
|
887
|
+
response_types_map=_response_types_map,
|
|
888
|
+
)
|
|
889
|
+
|
|
890
|
+
|
|
891
|
+
@validate_call
|
|
892
|
+
def edge_stack_create_string_without_preload_content(
|
|
893
|
+
self,
|
|
894
|
+
body: Annotated[EdgestacksEdgeStackFromStringPayload, Field(description="stack config")],
|
|
895
|
+
dryrun: Annotated[Optional[StrictStr], Field(description="if true, will not create an edge stack, but just will check the settings and return a non-persisted edge stack object")] = None,
|
|
896
|
+
_request_timeout: Union[
|
|
897
|
+
None,
|
|
898
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
899
|
+
Tuple[
|
|
900
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
901
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
902
|
+
]
|
|
903
|
+
] = None,
|
|
904
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
905
|
+
_content_type: Optional[StrictStr] = None,
|
|
906
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
907
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
908
|
+
) -> RESTResponseType:
|
|
909
|
+
"""Create an EdgeStack from a text
|
|
910
|
+
|
|
911
|
+
**Access policy**: administrator
|
|
912
|
+
|
|
913
|
+
:param body: stack config (required)
|
|
914
|
+
:type body: EdgestacksEdgeStackFromStringPayload
|
|
915
|
+
:param dryrun: if true, will not create an edge stack, but just will check the settings and return a non-persisted edge stack object
|
|
916
|
+
:type dryrun: str
|
|
917
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
918
|
+
number provided, it will be total request
|
|
919
|
+
timeout. It can also be a pair (tuple) of
|
|
920
|
+
(connection, read) timeouts.
|
|
921
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
922
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
923
|
+
request; this effectively ignores the
|
|
924
|
+
authentication in the spec for a single request.
|
|
925
|
+
:type _request_auth: dict, optional
|
|
926
|
+
:param _content_type: force content-type for the request.
|
|
927
|
+
:type _content_type: str, Optional
|
|
928
|
+
:param _headers: set to override the headers for a single
|
|
929
|
+
request; this effectively ignores the headers
|
|
930
|
+
in the spec for a single request.
|
|
931
|
+
:type _headers: dict, optional
|
|
932
|
+
:param _host_index: set to override the host_index for a single
|
|
933
|
+
request; this effectively ignores the host_index
|
|
934
|
+
in the spec for a single request.
|
|
935
|
+
:type _host_index: int, optional
|
|
936
|
+
:return: Returns the result object.
|
|
937
|
+
""" # noqa: E501
|
|
938
|
+
|
|
939
|
+
_param = self._edge_stack_create_string_serialize(
|
|
940
|
+
body=body,
|
|
941
|
+
dryrun=dryrun,
|
|
942
|
+
_request_auth=_request_auth,
|
|
943
|
+
_content_type=_content_type,
|
|
944
|
+
_headers=_headers,
|
|
945
|
+
_host_index=_host_index
|
|
946
|
+
)
|
|
947
|
+
|
|
948
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
949
|
+
'200': "PortainerEdgeStack",
|
|
950
|
+
'400': None,
|
|
951
|
+
'500': None,
|
|
952
|
+
'503': None,
|
|
953
|
+
}
|
|
954
|
+
response_data = self.api_client.call_api(
|
|
955
|
+
*_param,
|
|
956
|
+
_request_timeout=_request_timeout
|
|
957
|
+
)
|
|
958
|
+
return response_data.response
|
|
959
|
+
|
|
960
|
+
|
|
961
|
+
def _edge_stack_create_string_serialize(
|
|
962
|
+
self,
|
|
963
|
+
body,
|
|
964
|
+
dryrun,
|
|
965
|
+
_request_auth,
|
|
966
|
+
_content_type,
|
|
967
|
+
_headers,
|
|
968
|
+
_host_index,
|
|
969
|
+
) -> RequestSerialized:
|
|
970
|
+
|
|
971
|
+
_host = None
|
|
972
|
+
|
|
973
|
+
_collection_formats: Dict[str, str] = {
|
|
974
|
+
}
|
|
975
|
+
|
|
976
|
+
_path_params: Dict[str, str] = {}
|
|
977
|
+
_query_params: List[Tuple[str, str]] = []
|
|
978
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
979
|
+
_form_params: List[Tuple[str, str]] = []
|
|
980
|
+
_files: Dict[
|
|
981
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
982
|
+
] = {}
|
|
983
|
+
_body_params: Optional[bytes] = None
|
|
984
|
+
|
|
985
|
+
# process the path parameters
|
|
986
|
+
# process the query parameters
|
|
987
|
+
if dryrun is not None:
|
|
988
|
+
|
|
989
|
+
_query_params.append(('dryrun', dryrun))
|
|
990
|
+
|
|
991
|
+
# process the header parameters
|
|
992
|
+
# process the form parameters
|
|
993
|
+
# process the body parameter
|
|
994
|
+
if body is not None:
|
|
995
|
+
_body_params = body
|
|
996
|
+
|
|
997
|
+
|
|
998
|
+
# set the HTTP header `Accept`
|
|
999
|
+
if 'Accept' not in _header_params:
|
|
1000
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1001
|
+
[
|
|
1002
|
+
'application/json'
|
|
1003
|
+
]
|
|
1004
|
+
)
|
|
1005
|
+
|
|
1006
|
+
|
|
1007
|
+
# authentication setting
|
|
1008
|
+
_auth_settings: List[str] = [
|
|
1009
|
+
'jwt',
|
|
1010
|
+
'ApiKeyAuth'
|
|
1011
|
+
]
|
|
1012
|
+
|
|
1013
|
+
return self.api_client.param_serialize(
|
|
1014
|
+
method='POST',
|
|
1015
|
+
resource_path='/edge_stacks/create/string',
|
|
1016
|
+
path_params=_path_params,
|
|
1017
|
+
query_params=_query_params,
|
|
1018
|
+
header_params=_header_params,
|
|
1019
|
+
body=_body_params,
|
|
1020
|
+
post_params=_form_params,
|
|
1021
|
+
files=_files,
|
|
1022
|
+
auth_settings=_auth_settings,
|
|
1023
|
+
collection_formats=_collection_formats,
|
|
1024
|
+
_host=_host,
|
|
1025
|
+
_request_auth=_request_auth
|
|
1026
|
+
)
|
|
1027
|
+
|
|
1028
|
+
|
|
1029
|
+
|
|
1030
|
+
|
|
1031
|
+
@validate_call
|
|
1032
|
+
def edge_stack_delete(
|
|
1033
|
+
self,
|
|
1034
|
+
id: Annotated[StrictInt, Field(description="EdgeStack Id")],
|
|
1035
|
+
_request_timeout: Union[
|
|
1036
|
+
None,
|
|
1037
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1038
|
+
Tuple[
|
|
1039
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1040
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1041
|
+
]
|
|
1042
|
+
] = None,
|
|
1043
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1044
|
+
_content_type: Optional[StrictStr] = None,
|
|
1045
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1046
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1047
|
+
) -> None:
|
|
1048
|
+
"""Delete an EdgeStack
|
|
1049
|
+
|
|
1050
|
+
**Access policy**: administrator
|
|
1051
|
+
|
|
1052
|
+
:param id: EdgeStack Id (required)
|
|
1053
|
+
:type id: int
|
|
1054
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1055
|
+
number provided, it will be total request
|
|
1056
|
+
timeout. It can also be a pair (tuple) of
|
|
1057
|
+
(connection, read) timeouts.
|
|
1058
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1059
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1060
|
+
request; this effectively ignores the
|
|
1061
|
+
authentication in the spec for a single request.
|
|
1062
|
+
:type _request_auth: dict, optional
|
|
1063
|
+
:param _content_type: force content-type for the request.
|
|
1064
|
+
:type _content_type: str, Optional
|
|
1065
|
+
:param _headers: set to override the headers for a single
|
|
1066
|
+
request; this effectively ignores the headers
|
|
1067
|
+
in the spec for a single request.
|
|
1068
|
+
:type _headers: dict, optional
|
|
1069
|
+
:param _host_index: set to override the host_index for a single
|
|
1070
|
+
request; this effectively ignores the host_index
|
|
1071
|
+
in the spec for a single request.
|
|
1072
|
+
:type _host_index: int, optional
|
|
1073
|
+
:return: Returns the result object.
|
|
1074
|
+
""" # noqa: E501
|
|
1075
|
+
|
|
1076
|
+
_param = self._edge_stack_delete_serialize(
|
|
1077
|
+
id=id,
|
|
1078
|
+
_request_auth=_request_auth,
|
|
1079
|
+
_content_type=_content_type,
|
|
1080
|
+
_headers=_headers,
|
|
1081
|
+
_host_index=_host_index
|
|
1082
|
+
)
|
|
1083
|
+
|
|
1084
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1085
|
+
'204': None,
|
|
1086
|
+
'400': None,
|
|
1087
|
+
'500': None,
|
|
1088
|
+
'503': None,
|
|
1089
|
+
}
|
|
1090
|
+
response_data = self.api_client.call_api(
|
|
1091
|
+
*_param,
|
|
1092
|
+
_request_timeout=_request_timeout
|
|
1093
|
+
)
|
|
1094
|
+
response_data.read()
|
|
1095
|
+
return self.api_client.response_deserialize(
|
|
1096
|
+
response_data=response_data,
|
|
1097
|
+
response_types_map=_response_types_map,
|
|
1098
|
+
).data
|
|
1099
|
+
|
|
1100
|
+
|
|
1101
|
+
@validate_call
|
|
1102
|
+
def edge_stack_delete_with_http_info(
|
|
1103
|
+
self,
|
|
1104
|
+
id: Annotated[StrictInt, Field(description="EdgeStack Id")],
|
|
1105
|
+
_request_timeout: Union[
|
|
1106
|
+
None,
|
|
1107
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1108
|
+
Tuple[
|
|
1109
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1110
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1111
|
+
]
|
|
1112
|
+
] = None,
|
|
1113
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1114
|
+
_content_type: Optional[StrictStr] = None,
|
|
1115
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1116
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1117
|
+
) -> ApiResponse[None]:
|
|
1118
|
+
"""Delete an EdgeStack
|
|
1119
|
+
|
|
1120
|
+
**Access policy**: administrator
|
|
1121
|
+
|
|
1122
|
+
:param id: EdgeStack Id (required)
|
|
1123
|
+
:type id: int
|
|
1124
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1125
|
+
number provided, it will be total request
|
|
1126
|
+
timeout. It can also be a pair (tuple) of
|
|
1127
|
+
(connection, read) timeouts.
|
|
1128
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1129
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1130
|
+
request; this effectively ignores the
|
|
1131
|
+
authentication in the spec for a single request.
|
|
1132
|
+
:type _request_auth: dict, optional
|
|
1133
|
+
:param _content_type: force content-type for the request.
|
|
1134
|
+
:type _content_type: str, Optional
|
|
1135
|
+
:param _headers: set to override the headers for a single
|
|
1136
|
+
request; this effectively ignores the headers
|
|
1137
|
+
in the spec for a single request.
|
|
1138
|
+
:type _headers: dict, optional
|
|
1139
|
+
:param _host_index: set to override the host_index for a single
|
|
1140
|
+
request; this effectively ignores the host_index
|
|
1141
|
+
in the spec for a single request.
|
|
1142
|
+
:type _host_index: int, optional
|
|
1143
|
+
:return: Returns the result object.
|
|
1144
|
+
""" # noqa: E501
|
|
1145
|
+
|
|
1146
|
+
_param = self._edge_stack_delete_serialize(
|
|
1147
|
+
id=id,
|
|
1148
|
+
_request_auth=_request_auth,
|
|
1149
|
+
_content_type=_content_type,
|
|
1150
|
+
_headers=_headers,
|
|
1151
|
+
_host_index=_host_index
|
|
1152
|
+
)
|
|
1153
|
+
|
|
1154
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1155
|
+
'204': None,
|
|
1156
|
+
'400': None,
|
|
1157
|
+
'500': None,
|
|
1158
|
+
'503': None,
|
|
1159
|
+
}
|
|
1160
|
+
response_data = self.api_client.call_api(
|
|
1161
|
+
*_param,
|
|
1162
|
+
_request_timeout=_request_timeout
|
|
1163
|
+
)
|
|
1164
|
+
response_data.read()
|
|
1165
|
+
return self.api_client.response_deserialize(
|
|
1166
|
+
response_data=response_data,
|
|
1167
|
+
response_types_map=_response_types_map,
|
|
1168
|
+
)
|
|
1169
|
+
|
|
1170
|
+
|
|
1171
|
+
@validate_call
|
|
1172
|
+
def edge_stack_delete_without_preload_content(
|
|
1173
|
+
self,
|
|
1174
|
+
id: Annotated[StrictInt, Field(description="EdgeStack Id")],
|
|
1175
|
+
_request_timeout: Union[
|
|
1176
|
+
None,
|
|
1177
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1178
|
+
Tuple[
|
|
1179
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1180
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1181
|
+
]
|
|
1182
|
+
] = None,
|
|
1183
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1184
|
+
_content_type: Optional[StrictStr] = None,
|
|
1185
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1186
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1187
|
+
) -> RESTResponseType:
|
|
1188
|
+
"""Delete an EdgeStack
|
|
1189
|
+
|
|
1190
|
+
**Access policy**: administrator
|
|
1191
|
+
|
|
1192
|
+
:param id: EdgeStack Id (required)
|
|
1193
|
+
:type id: int
|
|
1194
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1195
|
+
number provided, it will be total request
|
|
1196
|
+
timeout. It can also be a pair (tuple) of
|
|
1197
|
+
(connection, read) timeouts.
|
|
1198
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1199
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1200
|
+
request; this effectively ignores the
|
|
1201
|
+
authentication in the spec for a single request.
|
|
1202
|
+
:type _request_auth: dict, optional
|
|
1203
|
+
:param _content_type: force content-type for the request.
|
|
1204
|
+
:type _content_type: str, Optional
|
|
1205
|
+
:param _headers: set to override the headers for a single
|
|
1206
|
+
request; this effectively ignores the headers
|
|
1207
|
+
in the spec for a single request.
|
|
1208
|
+
:type _headers: dict, optional
|
|
1209
|
+
:param _host_index: set to override the host_index for a single
|
|
1210
|
+
request; this effectively ignores the host_index
|
|
1211
|
+
in the spec for a single request.
|
|
1212
|
+
:type _host_index: int, optional
|
|
1213
|
+
:return: Returns the result object.
|
|
1214
|
+
""" # noqa: E501
|
|
1215
|
+
|
|
1216
|
+
_param = self._edge_stack_delete_serialize(
|
|
1217
|
+
id=id,
|
|
1218
|
+
_request_auth=_request_auth,
|
|
1219
|
+
_content_type=_content_type,
|
|
1220
|
+
_headers=_headers,
|
|
1221
|
+
_host_index=_host_index
|
|
1222
|
+
)
|
|
1223
|
+
|
|
1224
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1225
|
+
'204': None,
|
|
1226
|
+
'400': None,
|
|
1227
|
+
'500': None,
|
|
1228
|
+
'503': None,
|
|
1229
|
+
}
|
|
1230
|
+
response_data = self.api_client.call_api(
|
|
1231
|
+
*_param,
|
|
1232
|
+
_request_timeout=_request_timeout
|
|
1233
|
+
)
|
|
1234
|
+
return response_data.response
|
|
1235
|
+
|
|
1236
|
+
|
|
1237
|
+
def _edge_stack_delete_serialize(
|
|
1238
|
+
self,
|
|
1239
|
+
id,
|
|
1240
|
+
_request_auth,
|
|
1241
|
+
_content_type,
|
|
1242
|
+
_headers,
|
|
1243
|
+
_host_index,
|
|
1244
|
+
) -> RequestSerialized:
|
|
1245
|
+
|
|
1246
|
+
_host = None
|
|
1247
|
+
|
|
1248
|
+
_collection_formats: Dict[str, str] = {
|
|
1249
|
+
}
|
|
1250
|
+
|
|
1251
|
+
_path_params: Dict[str, str] = {}
|
|
1252
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1253
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1254
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1255
|
+
_files: Dict[
|
|
1256
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1257
|
+
] = {}
|
|
1258
|
+
_body_params: Optional[bytes] = None
|
|
1259
|
+
|
|
1260
|
+
# process the path parameters
|
|
1261
|
+
if id is not None:
|
|
1262
|
+
_path_params['id'] = id
|
|
1263
|
+
# process the query parameters
|
|
1264
|
+
# process the header parameters
|
|
1265
|
+
# process the form parameters
|
|
1266
|
+
# process the body parameter
|
|
1267
|
+
|
|
1268
|
+
|
|
1269
|
+
|
|
1270
|
+
|
|
1271
|
+
# authentication setting
|
|
1272
|
+
_auth_settings: List[str] = [
|
|
1273
|
+
'jwt',
|
|
1274
|
+
'ApiKeyAuth'
|
|
1275
|
+
]
|
|
1276
|
+
|
|
1277
|
+
return self.api_client.param_serialize(
|
|
1278
|
+
method='DELETE',
|
|
1279
|
+
resource_path='/edge_stacks/{id}',
|
|
1280
|
+
path_params=_path_params,
|
|
1281
|
+
query_params=_query_params,
|
|
1282
|
+
header_params=_header_params,
|
|
1283
|
+
body=_body_params,
|
|
1284
|
+
post_params=_form_params,
|
|
1285
|
+
files=_files,
|
|
1286
|
+
auth_settings=_auth_settings,
|
|
1287
|
+
collection_formats=_collection_formats,
|
|
1288
|
+
_host=_host,
|
|
1289
|
+
_request_auth=_request_auth
|
|
1290
|
+
)
|
|
1291
|
+
|
|
1292
|
+
|
|
1293
|
+
|
|
1294
|
+
|
|
1295
|
+
@validate_call
|
|
1296
|
+
def edge_stack_file(
|
|
1297
|
+
self,
|
|
1298
|
+
id: Annotated[StrictInt, Field(description="EdgeStack Id")],
|
|
1299
|
+
_request_timeout: Union[
|
|
1300
|
+
None,
|
|
1301
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1302
|
+
Tuple[
|
|
1303
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1304
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1305
|
+
]
|
|
1306
|
+
] = None,
|
|
1307
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1308
|
+
_content_type: Optional[StrictStr] = None,
|
|
1309
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1310
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1311
|
+
) -> EdgestacksStackFileResponse:
|
|
1312
|
+
"""Fetches the stack file for an EdgeStack
|
|
1313
|
+
|
|
1314
|
+
**Access policy**: administrator
|
|
1315
|
+
|
|
1316
|
+
:param id: EdgeStack Id (required)
|
|
1317
|
+
:type id: int
|
|
1318
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1319
|
+
number provided, it will be total request
|
|
1320
|
+
timeout. It can also be a pair (tuple) of
|
|
1321
|
+
(connection, read) timeouts.
|
|
1322
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1323
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1324
|
+
request; this effectively ignores the
|
|
1325
|
+
authentication in the spec for a single request.
|
|
1326
|
+
:type _request_auth: dict, optional
|
|
1327
|
+
:param _content_type: force content-type for the request.
|
|
1328
|
+
:type _content_type: str, Optional
|
|
1329
|
+
:param _headers: set to override the headers for a single
|
|
1330
|
+
request; this effectively ignores the headers
|
|
1331
|
+
in the spec for a single request.
|
|
1332
|
+
:type _headers: dict, optional
|
|
1333
|
+
:param _host_index: set to override the host_index for a single
|
|
1334
|
+
request; this effectively ignores the host_index
|
|
1335
|
+
in the spec for a single request.
|
|
1336
|
+
:type _host_index: int, optional
|
|
1337
|
+
:return: Returns the result object.
|
|
1338
|
+
""" # noqa: E501
|
|
1339
|
+
|
|
1340
|
+
_param = self._edge_stack_file_serialize(
|
|
1341
|
+
id=id,
|
|
1342
|
+
_request_auth=_request_auth,
|
|
1343
|
+
_content_type=_content_type,
|
|
1344
|
+
_headers=_headers,
|
|
1345
|
+
_host_index=_host_index
|
|
1346
|
+
)
|
|
1347
|
+
|
|
1348
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1349
|
+
'200': "EdgestacksStackFileResponse",
|
|
1350
|
+
'400': None,
|
|
1351
|
+
'500': None,
|
|
1352
|
+
'503': None,
|
|
1353
|
+
}
|
|
1354
|
+
response_data = self.api_client.call_api(
|
|
1355
|
+
*_param,
|
|
1356
|
+
_request_timeout=_request_timeout
|
|
1357
|
+
)
|
|
1358
|
+
response_data.read()
|
|
1359
|
+
return self.api_client.response_deserialize(
|
|
1360
|
+
response_data=response_data,
|
|
1361
|
+
response_types_map=_response_types_map,
|
|
1362
|
+
).data
|
|
1363
|
+
|
|
1364
|
+
|
|
1365
|
+
@validate_call
|
|
1366
|
+
def edge_stack_file_with_http_info(
|
|
1367
|
+
self,
|
|
1368
|
+
id: Annotated[StrictInt, Field(description="EdgeStack Id")],
|
|
1369
|
+
_request_timeout: Union[
|
|
1370
|
+
None,
|
|
1371
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1372
|
+
Tuple[
|
|
1373
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1374
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1375
|
+
]
|
|
1376
|
+
] = None,
|
|
1377
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1378
|
+
_content_type: Optional[StrictStr] = None,
|
|
1379
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1380
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1381
|
+
) -> ApiResponse[EdgestacksStackFileResponse]:
|
|
1382
|
+
"""Fetches the stack file for an EdgeStack
|
|
1383
|
+
|
|
1384
|
+
**Access policy**: administrator
|
|
1385
|
+
|
|
1386
|
+
:param id: EdgeStack Id (required)
|
|
1387
|
+
:type id: int
|
|
1388
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1389
|
+
number provided, it will be total request
|
|
1390
|
+
timeout. It can also be a pair (tuple) of
|
|
1391
|
+
(connection, read) timeouts.
|
|
1392
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1393
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1394
|
+
request; this effectively ignores the
|
|
1395
|
+
authentication in the spec for a single request.
|
|
1396
|
+
:type _request_auth: dict, optional
|
|
1397
|
+
:param _content_type: force content-type for the request.
|
|
1398
|
+
:type _content_type: str, Optional
|
|
1399
|
+
:param _headers: set to override the headers for a single
|
|
1400
|
+
request; this effectively ignores the headers
|
|
1401
|
+
in the spec for a single request.
|
|
1402
|
+
:type _headers: dict, optional
|
|
1403
|
+
:param _host_index: set to override the host_index for a single
|
|
1404
|
+
request; this effectively ignores the host_index
|
|
1405
|
+
in the spec for a single request.
|
|
1406
|
+
:type _host_index: int, optional
|
|
1407
|
+
:return: Returns the result object.
|
|
1408
|
+
""" # noqa: E501
|
|
1409
|
+
|
|
1410
|
+
_param = self._edge_stack_file_serialize(
|
|
1411
|
+
id=id,
|
|
1412
|
+
_request_auth=_request_auth,
|
|
1413
|
+
_content_type=_content_type,
|
|
1414
|
+
_headers=_headers,
|
|
1415
|
+
_host_index=_host_index
|
|
1416
|
+
)
|
|
1417
|
+
|
|
1418
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1419
|
+
'200': "EdgestacksStackFileResponse",
|
|
1420
|
+
'400': None,
|
|
1421
|
+
'500': None,
|
|
1422
|
+
'503': None,
|
|
1423
|
+
}
|
|
1424
|
+
response_data = self.api_client.call_api(
|
|
1425
|
+
*_param,
|
|
1426
|
+
_request_timeout=_request_timeout
|
|
1427
|
+
)
|
|
1428
|
+
response_data.read()
|
|
1429
|
+
return self.api_client.response_deserialize(
|
|
1430
|
+
response_data=response_data,
|
|
1431
|
+
response_types_map=_response_types_map,
|
|
1432
|
+
)
|
|
1433
|
+
|
|
1434
|
+
|
|
1435
|
+
@validate_call
|
|
1436
|
+
def edge_stack_file_without_preload_content(
|
|
1437
|
+
self,
|
|
1438
|
+
id: Annotated[StrictInt, Field(description="EdgeStack Id")],
|
|
1439
|
+
_request_timeout: Union[
|
|
1440
|
+
None,
|
|
1441
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1442
|
+
Tuple[
|
|
1443
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1444
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1445
|
+
]
|
|
1446
|
+
] = None,
|
|
1447
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1448
|
+
_content_type: Optional[StrictStr] = None,
|
|
1449
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1450
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1451
|
+
) -> RESTResponseType:
|
|
1452
|
+
"""Fetches the stack file for an EdgeStack
|
|
1453
|
+
|
|
1454
|
+
**Access policy**: administrator
|
|
1455
|
+
|
|
1456
|
+
:param id: EdgeStack Id (required)
|
|
1457
|
+
:type id: int
|
|
1458
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1459
|
+
number provided, it will be total request
|
|
1460
|
+
timeout. It can also be a pair (tuple) of
|
|
1461
|
+
(connection, read) timeouts.
|
|
1462
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1463
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1464
|
+
request; this effectively ignores the
|
|
1465
|
+
authentication in the spec for a single request.
|
|
1466
|
+
:type _request_auth: dict, optional
|
|
1467
|
+
:param _content_type: force content-type for the request.
|
|
1468
|
+
:type _content_type: str, Optional
|
|
1469
|
+
:param _headers: set to override the headers for a single
|
|
1470
|
+
request; this effectively ignores the headers
|
|
1471
|
+
in the spec for a single request.
|
|
1472
|
+
:type _headers: dict, optional
|
|
1473
|
+
:param _host_index: set to override the host_index for a single
|
|
1474
|
+
request; this effectively ignores the host_index
|
|
1475
|
+
in the spec for a single request.
|
|
1476
|
+
:type _host_index: int, optional
|
|
1477
|
+
:return: Returns the result object.
|
|
1478
|
+
""" # noqa: E501
|
|
1479
|
+
|
|
1480
|
+
_param = self._edge_stack_file_serialize(
|
|
1481
|
+
id=id,
|
|
1482
|
+
_request_auth=_request_auth,
|
|
1483
|
+
_content_type=_content_type,
|
|
1484
|
+
_headers=_headers,
|
|
1485
|
+
_host_index=_host_index
|
|
1486
|
+
)
|
|
1487
|
+
|
|
1488
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1489
|
+
'200': "EdgestacksStackFileResponse",
|
|
1490
|
+
'400': None,
|
|
1491
|
+
'500': None,
|
|
1492
|
+
'503': None,
|
|
1493
|
+
}
|
|
1494
|
+
response_data = self.api_client.call_api(
|
|
1495
|
+
*_param,
|
|
1496
|
+
_request_timeout=_request_timeout
|
|
1497
|
+
)
|
|
1498
|
+
return response_data.response
|
|
1499
|
+
|
|
1500
|
+
|
|
1501
|
+
def _edge_stack_file_serialize(
|
|
1502
|
+
self,
|
|
1503
|
+
id,
|
|
1504
|
+
_request_auth,
|
|
1505
|
+
_content_type,
|
|
1506
|
+
_headers,
|
|
1507
|
+
_host_index,
|
|
1508
|
+
) -> RequestSerialized:
|
|
1509
|
+
|
|
1510
|
+
_host = None
|
|
1511
|
+
|
|
1512
|
+
_collection_formats: Dict[str, str] = {
|
|
1513
|
+
}
|
|
1514
|
+
|
|
1515
|
+
_path_params: Dict[str, str] = {}
|
|
1516
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1517
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1518
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1519
|
+
_files: Dict[
|
|
1520
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1521
|
+
] = {}
|
|
1522
|
+
_body_params: Optional[bytes] = None
|
|
1523
|
+
|
|
1524
|
+
# process the path parameters
|
|
1525
|
+
if id is not None:
|
|
1526
|
+
_path_params['id'] = id
|
|
1527
|
+
# process the query parameters
|
|
1528
|
+
# process the header parameters
|
|
1529
|
+
# process the form parameters
|
|
1530
|
+
# process the body parameter
|
|
1531
|
+
|
|
1532
|
+
|
|
1533
|
+
# set the HTTP header `Accept`
|
|
1534
|
+
if 'Accept' not in _header_params:
|
|
1535
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1536
|
+
[
|
|
1537
|
+
'application/json'
|
|
1538
|
+
]
|
|
1539
|
+
)
|
|
1540
|
+
|
|
1541
|
+
|
|
1542
|
+
# authentication setting
|
|
1543
|
+
_auth_settings: List[str] = [
|
|
1544
|
+
'jwt',
|
|
1545
|
+
'ApiKeyAuth'
|
|
1546
|
+
]
|
|
1547
|
+
|
|
1548
|
+
return self.api_client.param_serialize(
|
|
1549
|
+
method='GET',
|
|
1550
|
+
resource_path='/edge_stacks/{id}/file',
|
|
1551
|
+
path_params=_path_params,
|
|
1552
|
+
query_params=_query_params,
|
|
1553
|
+
header_params=_header_params,
|
|
1554
|
+
body=_body_params,
|
|
1555
|
+
post_params=_form_params,
|
|
1556
|
+
files=_files,
|
|
1557
|
+
auth_settings=_auth_settings,
|
|
1558
|
+
collection_formats=_collection_formats,
|
|
1559
|
+
_host=_host,
|
|
1560
|
+
_request_auth=_request_auth
|
|
1561
|
+
)
|
|
1562
|
+
|
|
1563
|
+
|
|
1564
|
+
|
|
1565
|
+
|
|
1566
|
+
@validate_call
|
|
1567
|
+
def edge_stack_inspect(
|
|
1568
|
+
self,
|
|
1569
|
+
id: Annotated[StrictInt, Field(description="EdgeStack Id")],
|
|
1570
|
+
_request_timeout: Union[
|
|
1571
|
+
None,
|
|
1572
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1573
|
+
Tuple[
|
|
1574
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1575
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1576
|
+
]
|
|
1577
|
+
] = None,
|
|
1578
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1579
|
+
_content_type: Optional[StrictStr] = None,
|
|
1580
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1581
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1582
|
+
) -> PortainerEdgeStack:
|
|
1583
|
+
"""Inspect an EdgeStack
|
|
1584
|
+
|
|
1585
|
+
**Access policy**: administrator
|
|
1586
|
+
|
|
1587
|
+
:param id: EdgeStack Id (required)
|
|
1588
|
+
:type id: int
|
|
1589
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1590
|
+
number provided, it will be total request
|
|
1591
|
+
timeout. It can also be a pair (tuple) of
|
|
1592
|
+
(connection, read) timeouts.
|
|
1593
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1594
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1595
|
+
request; this effectively ignores the
|
|
1596
|
+
authentication in the spec for a single request.
|
|
1597
|
+
:type _request_auth: dict, optional
|
|
1598
|
+
:param _content_type: force content-type for the request.
|
|
1599
|
+
:type _content_type: str, Optional
|
|
1600
|
+
:param _headers: set to override the headers for a single
|
|
1601
|
+
request; this effectively ignores the headers
|
|
1602
|
+
in the spec for a single request.
|
|
1603
|
+
:type _headers: dict, optional
|
|
1604
|
+
:param _host_index: set to override the host_index for a single
|
|
1605
|
+
request; this effectively ignores the host_index
|
|
1606
|
+
in the spec for a single request.
|
|
1607
|
+
:type _host_index: int, optional
|
|
1608
|
+
:return: Returns the result object.
|
|
1609
|
+
""" # noqa: E501
|
|
1610
|
+
|
|
1611
|
+
_param = self._edge_stack_inspect_serialize(
|
|
1612
|
+
id=id,
|
|
1613
|
+
_request_auth=_request_auth,
|
|
1614
|
+
_content_type=_content_type,
|
|
1615
|
+
_headers=_headers,
|
|
1616
|
+
_host_index=_host_index
|
|
1617
|
+
)
|
|
1618
|
+
|
|
1619
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1620
|
+
'200': "PortainerEdgeStack",
|
|
1621
|
+
'400': None,
|
|
1622
|
+
'500': None,
|
|
1623
|
+
'503': None,
|
|
1624
|
+
}
|
|
1625
|
+
response_data = self.api_client.call_api(
|
|
1626
|
+
*_param,
|
|
1627
|
+
_request_timeout=_request_timeout
|
|
1628
|
+
)
|
|
1629
|
+
response_data.read()
|
|
1630
|
+
return self.api_client.response_deserialize(
|
|
1631
|
+
response_data=response_data,
|
|
1632
|
+
response_types_map=_response_types_map,
|
|
1633
|
+
).data
|
|
1634
|
+
|
|
1635
|
+
|
|
1636
|
+
@validate_call
|
|
1637
|
+
def edge_stack_inspect_with_http_info(
|
|
1638
|
+
self,
|
|
1639
|
+
id: Annotated[StrictInt, Field(description="EdgeStack Id")],
|
|
1640
|
+
_request_timeout: Union[
|
|
1641
|
+
None,
|
|
1642
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1643
|
+
Tuple[
|
|
1644
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1645
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1646
|
+
]
|
|
1647
|
+
] = None,
|
|
1648
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1649
|
+
_content_type: Optional[StrictStr] = None,
|
|
1650
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1651
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1652
|
+
) -> ApiResponse[PortainerEdgeStack]:
|
|
1653
|
+
"""Inspect an EdgeStack
|
|
1654
|
+
|
|
1655
|
+
**Access policy**: administrator
|
|
1656
|
+
|
|
1657
|
+
:param id: EdgeStack Id (required)
|
|
1658
|
+
:type id: int
|
|
1659
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1660
|
+
number provided, it will be total request
|
|
1661
|
+
timeout. It can also be a pair (tuple) of
|
|
1662
|
+
(connection, read) timeouts.
|
|
1663
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1664
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1665
|
+
request; this effectively ignores the
|
|
1666
|
+
authentication in the spec for a single request.
|
|
1667
|
+
:type _request_auth: dict, optional
|
|
1668
|
+
:param _content_type: force content-type for the request.
|
|
1669
|
+
:type _content_type: str, Optional
|
|
1670
|
+
:param _headers: set to override the headers for a single
|
|
1671
|
+
request; this effectively ignores the headers
|
|
1672
|
+
in the spec for a single request.
|
|
1673
|
+
:type _headers: dict, optional
|
|
1674
|
+
:param _host_index: set to override the host_index for a single
|
|
1675
|
+
request; this effectively ignores the host_index
|
|
1676
|
+
in the spec for a single request.
|
|
1677
|
+
:type _host_index: int, optional
|
|
1678
|
+
:return: Returns the result object.
|
|
1679
|
+
""" # noqa: E501
|
|
1680
|
+
|
|
1681
|
+
_param = self._edge_stack_inspect_serialize(
|
|
1682
|
+
id=id,
|
|
1683
|
+
_request_auth=_request_auth,
|
|
1684
|
+
_content_type=_content_type,
|
|
1685
|
+
_headers=_headers,
|
|
1686
|
+
_host_index=_host_index
|
|
1687
|
+
)
|
|
1688
|
+
|
|
1689
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1690
|
+
'200': "PortainerEdgeStack",
|
|
1691
|
+
'400': None,
|
|
1692
|
+
'500': None,
|
|
1693
|
+
'503': None,
|
|
1694
|
+
}
|
|
1695
|
+
response_data = self.api_client.call_api(
|
|
1696
|
+
*_param,
|
|
1697
|
+
_request_timeout=_request_timeout
|
|
1698
|
+
)
|
|
1699
|
+
response_data.read()
|
|
1700
|
+
return self.api_client.response_deserialize(
|
|
1701
|
+
response_data=response_data,
|
|
1702
|
+
response_types_map=_response_types_map,
|
|
1703
|
+
)
|
|
1704
|
+
|
|
1705
|
+
|
|
1706
|
+
@validate_call
|
|
1707
|
+
def edge_stack_inspect_without_preload_content(
|
|
1708
|
+
self,
|
|
1709
|
+
id: Annotated[StrictInt, Field(description="EdgeStack Id")],
|
|
1710
|
+
_request_timeout: Union[
|
|
1711
|
+
None,
|
|
1712
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1713
|
+
Tuple[
|
|
1714
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1715
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1716
|
+
]
|
|
1717
|
+
] = None,
|
|
1718
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1719
|
+
_content_type: Optional[StrictStr] = None,
|
|
1720
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1721
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1722
|
+
) -> RESTResponseType:
|
|
1723
|
+
"""Inspect an EdgeStack
|
|
1724
|
+
|
|
1725
|
+
**Access policy**: administrator
|
|
1726
|
+
|
|
1727
|
+
:param id: EdgeStack Id (required)
|
|
1728
|
+
:type id: int
|
|
1729
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1730
|
+
number provided, it will be total request
|
|
1731
|
+
timeout. It can also be a pair (tuple) of
|
|
1732
|
+
(connection, read) timeouts.
|
|
1733
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1734
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1735
|
+
request; this effectively ignores the
|
|
1736
|
+
authentication in the spec for a single request.
|
|
1737
|
+
:type _request_auth: dict, optional
|
|
1738
|
+
:param _content_type: force content-type for the request.
|
|
1739
|
+
:type _content_type: str, Optional
|
|
1740
|
+
:param _headers: set to override the headers for a single
|
|
1741
|
+
request; this effectively ignores the headers
|
|
1742
|
+
in the spec for a single request.
|
|
1743
|
+
:type _headers: dict, optional
|
|
1744
|
+
:param _host_index: set to override the host_index for a single
|
|
1745
|
+
request; this effectively ignores the host_index
|
|
1746
|
+
in the spec for a single request.
|
|
1747
|
+
:type _host_index: int, optional
|
|
1748
|
+
:return: Returns the result object.
|
|
1749
|
+
""" # noqa: E501
|
|
1750
|
+
|
|
1751
|
+
_param = self._edge_stack_inspect_serialize(
|
|
1752
|
+
id=id,
|
|
1753
|
+
_request_auth=_request_auth,
|
|
1754
|
+
_content_type=_content_type,
|
|
1755
|
+
_headers=_headers,
|
|
1756
|
+
_host_index=_host_index
|
|
1757
|
+
)
|
|
1758
|
+
|
|
1759
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1760
|
+
'200': "PortainerEdgeStack",
|
|
1761
|
+
'400': None,
|
|
1762
|
+
'500': None,
|
|
1763
|
+
'503': None,
|
|
1764
|
+
}
|
|
1765
|
+
response_data = self.api_client.call_api(
|
|
1766
|
+
*_param,
|
|
1767
|
+
_request_timeout=_request_timeout
|
|
1768
|
+
)
|
|
1769
|
+
return response_data.response
|
|
1770
|
+
|
|
1771
|
+
|
|
1772
|
+
def _edge_stack_inspect_serialize(
|
|
1773
|
+
self,
|
|
1774
|
+
id,
|
|
1775
|
+
_request_auth,
|
|
1776
|
+
_content_type,
|
|
1777
|
+
_headers,
|
|
1778
|
+
_host_index,
|
|
1779
|
+
) -> RequestSerialized:
|
|
1780
|
+
|
|
1781
|
+
_host = None
|
|
1782
|
+
|
|
1783
|
+
_collection_formats: Dict[str, str] = {
|
|
1784
|
+
}
|
|
1785
|
+
|
|
1786
|
+
_path_params: Dict[str, str] = {}
|
|
1787
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1788
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1789
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1790
|
+
_files: Dict[
|
|
1791
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1792
|
+
] = {}
|
|
1793
|
+
_body_params: Optional[bytes] = None
|
|
1794
|
+
|
|
1795
|
+
# process the path parameters
|
|
1796
|
+
if id is not None:
|
|
1797
|
+
_path_params['id'] = id
|
|
1798
|
+
# process the query parameters
|
|
1799
|
+
# process the header parameters
|
|
1800
|
+
# process the form parameters
|
|
1801
|
+
# process the body parameter
|
|
1802
|
+
|
|
1803
|
+
|
|
1804
|
+
# set the HTTP header `Accept`
|
|
1805
|
+
if 'Accept' not in _header_params:
|
|
1806
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1807
|
+
[
|
|
1808
|
+
'application/json'
|
|
1809
|
+
]
|
|
1810
|
+
)
|
|
1811
|
+
|
|
1812
|
+
|
|
1813
|
+
# authentication setting
|
|
1814
|
+
_auth_settings: List[str] = [
|
|
1815
|
+
'jwt',
|
|
1816
|
+
'ApiKeyAuth'
|
|
1817
|
+
]
|
|
1818
|
+
|
|
1819
|
+
return self.api_client.param_serialize(
|
|
1820
|
+
method='GET',
|
|
1821
|
+
resource_path='/edge_stacks/{id}',
|
|
1822
|
+
path_params=_path_params,
|
|
1823
|
+
query_params=_query_params,
|
|
1824
|
+
header_params=_header_params,
|
|
1825
|
+
body=_body_params,
|
|
1826
|
+
post_params=_form_params,
|
|
1827
|
+
files=_files,
|
|
1828
|
+
auth_settings=_auth_settings,
|
|
1829
|
+
collection_formats=_collection_formats,
|
|
1830
|
+
_host=_host,
|
|
1831
|
+
_request_auth=_request_auth
|
|
1832
|
+
)
|
|
1833
|
+
|
|
1834
|
+
|
|
1835
|
+
|
|
1836
|
+
|
|
1837
|
+
@validate_call
|
|
1838
|
+
def edge_stack_list(
|
|
1839
|
+
self,
|
|
1840
|
+
summarize_statuses: Annotated[Optional[StrictBool], Field(description="will summarize the statuses")] = None,
|
|
1841
|
+
_request_timeout: Union[
|
|
1842
|
+
None,
|
|
1843
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1844
|
+
Tuple[
|
|
1845
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1846
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1847
|
+
]
|
|
1848
|
+
] = None,
|
|
1849
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1850
|
+
_content_type: Optional[StrictStr] = None,
|
|
1851
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1852
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1853
|
+
) -> List[PortainerEdgeStack]:
|
|
1854
|
+
"""Fetches the list of EdgeStacks
|
|
1855
|
+
|
|
1856
|
+
**Access policy**: administrator
|
|
1857
|
+
|
|
1858
|
+
:param summarize_statuses: will summarize the statuses
|
|
1859
|
+
:type summarize_statuses: bool
|
|
1860
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1861
|
+
number provided, it will be total request
|
|
1862
|
+
timeout. It can also be a pair (tuple) of
|
|
1863
|
+
(connection, read) timeouts.
|
|
1864
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1865
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1866
|
+
request; this effectively ignores the
|
|
1867
|
+
authentication in the spec for a single request.
|
|
1868
|
+
:type _request_auth: dict, optional
|
|
1869
|
+
:param _content_type: force content-type for the request.
|
|
1870
|
+
:type _content_type: str, Optional
|
|
1871
|
+
:param _headers: set to override the headers for a single
|
|
1872
|
+
request; this effectively ignores the headers
|
|
1873
|
+
in the spec for a single request.
|
|
1874
|
+
:type _headers: dict, optional
|
|
1875
|
+
:param _host_index: set to override the host_index for a single
|
|
1876
|
+
request; this effectively ignores the host_index
|
|
1877
|
+
in the spec for a single request.
|
|
1878
|
+
:type _host_index: int, optional
|
|
1879
|
+
:return: Returns the result object.
|
|
1880
|
+
""" # noqa: E501
|
|
1881
|
+
|
|
1882
|
+
_param = self._edge_stack_list_serialize(
|
|
1883
|
+
summarize_statuses=summarize_statuses,
|
|
1884
|
+
_request_auth=_request_auth,
|
|
1885
|
+
_content_type=_content_type,
|
|
1886
|
+
_headers=_headers,
|
|
1887
|
+
_host_index=_host_index
|
|
1888
|
+
)
|
|
1889
|
+
|
|
1890
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1891
|
+
'200': "List[PortainerEdgeStack]",
|
|
1892
|
+
'400': None,
|
|
1893
|
+
'500': None,
|
|
1894
|
+
'503': None,
|
|
1895
|
+
}
|
|
1896
|
+
response_data = self.api_client.call_api(
|
|
1897
|
+
*_param,
|
|
1898
|
+
_request_timeout=_request_timeout
|
|
1899
|
+
)
|
|
1900
|
+
response_data.read()
|
|
1901
|
+
return self.api_client.response_deserialize(
|
|
1902
|
+
response_data=response_data,
|
|
1903
|
+
response_types_map=_response_types_map,
|
|
1904
|
+
).data
|
|
1905
|
+
|
|
1906
|
+
|
|
1907
|
+
@validate_call
|
|
1908
|
+
def edge_stack_list_with_http_info(
|
|
1909
|
+
self,
|
|
1910
|
+
summarize_statuses: Annotated[Optional[StrictBool], Field(description="will summarize the statuses")] = None,
|
|
1911
|
+
_request_timeout: Union[
|
|
1912
|
+
None,
|
|
1913
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1914
|
+
Tuple[
|
|
1915
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1916
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1917
|
+
]
|
|
1918
|
+
] = None,
|
|
1919
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1920
|
+
_content_type: Optional[StrictStr] = None,
|
|
1921
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1922
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1923
|
+
) -> ApiResponse[List[PortainerEdgeStack]]:
|
|
1924
|
+
"""Fetches the list of EdgeStacks
|
|
1925
|
+
|
|
1926
|
+
**Access policy**: administrator
|
|
1927
|
+
|
|
1928
|
+
:param summarize_statuses: will summarize the statuses
|
|
1929
|
+
:type summarize_statuses: bool
|
|
1930
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1931
|
+
number provided, it will be total request
|
|
1932
|
+
timeout. It can also be a pair (tuple) of
|
|
1933
|
+
(connection, read) timeouts.
|
|
1934
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1935
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1936
|
+
request; this effectively ignores the
|
|
1937
|
+
authentication in the spec for a single request.
|
|
1938
|
+
:type _request_auth: dict, optional
|
|
1939
|
+
:param _content_type: force content-type for the request.
|
|
1940
|
+
:type _content_type: str, Optional
|
|
1941
|
+
:param _headers: set to override the headers for a single
|
|
1942
|
+
request; this effectively ignores the headers
|
|
1943
|
+
in the spec for a single request.
|
|
1944
|
+
:type _headers: dict, optional
|
|
1945
|
+
:param _host_index: set to override the host_index for a single
|
|
1946
|
+
request; this effectively ignores the host_index
|
|
1947
|
+
in the spec for a single request.
|
|
1948
|
+
:type _host_index: int, optional
|
|
1949
|
+
:return: Returns the result object.
|
|
1950
|
+
""" # noqa: E501
|
|
1951
|
+
|
|
1952
|
+
_param = self._edge_stack_list_serialize(
|
|
1953
|
+
summarize_statuses=summarize_statuses,
|
|
1954
|
+
_request_auth=_request_auth,
|
|
1955
|
+
_content_type=_content_type,
|
|
1956
|
+
_headers=_headers,
|
|
1957
|
+
_host_index=_host_index
|
|
1958
|
+
)
|
|
1959
|
+
|
|
1960
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1961
|
+
'200': "List[PortainerEdgeStack]",
|
|
1962
|
+
'400': None,
|
|
1963
|
+
'500': None,
|
|
1964
|
+
'503': None,
|
|
1965
|
+
}
|
|
1966
|
+
response_data = self.api_client.call_api(
|
|
1967
|
+
*_param,
|
|
1968
|
+
_request_timeout=_request_timeout
|
|
1969
|
+
)
|
|
1970
|
+
response_data.read()
|
|
1971
|
+
return self.api_client.response_deserialize(
|
|
1972
|
+
response_data=response_data,
|
|
1973
|
+
response_types_map=_response_types_map,
|
|
1974
|
+
)
|
|
1975
|
+
|
|
1976
|
+
|
|
1977
|
+
@validate_call
|
|
1978
|
+
def edge_stack_list_without_preload_content(
|
|
1979
|
+
self,
|
|
1980
|
+
summarize_statuses: Annotated[Optional[StrictBool], Field(description="will summarize the statuses")] = None,
|
|
1981
|
+
_request_timeout: Union[
|
|
1982
|
+
None,
|
|
1983
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1984
|
+
Tuple[
|
|
1985
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1986
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1987
|
+
]
|
|
1988
|
+
] = None,
|
|
1989
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1990
|
+
_content_type: Optional[StrictStr] = None,
|
|
1991
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1992
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1993
|
+
) -> RESTResponseType:
|
|
1994
|
+
"""Fetches the list of EdgeStacks
|
|
1995
|
+
|
|
1996
|
+
**Access policy**: administrator
|
|
1997
|
+
|
|
1998
|
+
:param summarize_statuses: will summarize the statuses
|
|
1999
|
+
:type summarize_statuses: bool
|
|
2000
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2001
|
+
number provided, it will be total request
|
|
2002
|
+
timeout. It can also be a pair (tuple) of
|
|
2003
|
+
(connection, read) timeouts.
|
|
2004
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2005
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2006
|
+
request; this effectively ignores the
|
|
2007
|
+
authentication in the spec for a single request.
|
|
2008
|
+
:type _request_auth: dict, optional
|
|
2009
|
+
:param _content_type: force content-type for the request.
|
|
2010
|
+
:type _content_type: str, Optional
|
|
2011
|
+
:param _headers: set to override the headers for a single
|
|
2012
|
+
request; this effectively ignores the headers
|
|
2013
|
+
in the spec for a single request.
|
|
2014
|
+
:type _headers: dict, optional
|
|
2015
|
+
:param _host_index: set to override the host_index for a single
|
|
2016
|
+
request; this effectively ignores the host_index
|
|
2017
|
+
in the spec for a single request.
|
|
2018
|
+
:type _host_index: int, optional
|
|
2019
|
+
:return: Returns the result object.
|
|
2020
|
+
""" # noqa: E501
|
|
2021
|
+
|
|
2022
|
+
_param = self._edge_stack_list_serialize(
|
|
2023
|
+
summarize_statuses=summarize_statuses,
|
|
2024
|
+
_request_auth=_request_auth,
|
|
2025
|
+
_content_type=_content_type,
|
|
2026
|
+
_headers=_headers,
|
|
2027
|
+
_host_index=_host_index
|
|
2028
|
+
)
|
|
2029
|
+
|
|
2030
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2031
|
+
'200': "List[PortainerEdgeStack]",
|
|
2032
|
+
'400': None,
|
|
2033
|
+
'500': None,
|
|
2034
|
+
'503': None,
|
|
2035
|
+
}
|
|
2036
|
+
response_data = self.api_client.call_api(
|
|
2037
|
+
*_param,
|
|
2038
|
+
_request_timeout=_request_timeout
|
|
2039
|
+
)
|
|
2040
|
+
return response_data.response
|
|
2041
|
+
|
|
2042
|
+
|
|
2043
|
+
def _edge_stack_list_serialize(
|
|
2044
|
+
self,
|
|
2045
|
+
summarize_statuses,
|
|
2046
|
+
_request_auth,
|
|
2047
|
+
_content_type,
|
|
2048
|
+
_headers,
|
|
2049
|
+
_host_index,
|
|
2050
|
+
) -> RequestSerialized:
|
|
2051
|
+
|
|
2052
|
+
_host = None
|
|
2053
|
+
|
|
2054
|
+
_collection_formats: Dict[str, str] = {
|
|
2055
|
+
}
|
|
2056
|
+
|
|
2057
|
+
_path_params: Dict[str, str] = {}
|
|
2058
|
+
_query_params: List[Tuple[str, str]] = []
|
|
2059
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2060
|
+
_form_params: List[Tuple[str, str]] = []
|
|
2061
|
+
_files: Dict[
|
|
2062
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2063
|
+
] = {}
|
|
2064
|
+
_body_params: Optional[bytes] = None
|
|
2065
|
+
|
|
2066
|
+
# process the path parameters
|
|
2067
|
+
# process the query parameters
|
|
2068
|
+
if summarize_statuses is not None:
|
|
2069
|
+
|
|
2070
|
+
_query_params.append(('summarizeStatuses', summarize_statuses))
|
|
2071
|
+
|
|
2072
|
+
# process the header parameters
|
|
2073
|
+
# process the form parameters
|
|
2074
|
+
# process the body parameter
|
|
2075
|
+
|
|
2076
|
+
|
|
2077
|
+
# set the HTTP header `Accept`
|
|
2078
|
+
if 'Accept' not in _header_params:
|
|
2079
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2080
|
+
[
|
|
2081
|
+
'application/json'
|
|
2082
|
+
]
|
|
2083
|
+
)
|
|
2084
|
+
|
|
2085
|
+
|
|
2086
|
+
# authentication setting
|
|
2087
|
+
_auth_settings: List[str] = [
|
|
2088
|
+
'jwt',
|
|
2089
|
+
'ApiKeyAuth'
|
|
2090
|
+
]
|
|
2091
|
+
|
|
2092
|
+
return self.api_client.param_serialize(
|
|
2093
|
+
method='GET',
|
|
2094
|
+
resource_path='/edge_stacks',
|
|
2095
|
+
path_params=_path_params,
|
|
2096
|
+
query_params=_query_params,
|
|
2097
|
+
header_params=_header_params,
|
|
2098
|
+
body=_body_params,
|
|
2099
|
+
post_params=_form_params,
|
|
2100
|
+
files=_files,
|
|
2101
|
+
auth_settings=_auth_settings,
|
|
2102
|
+
collection_formats=_collection_formats,
|
|
2103
|
+
_host=_host,
|
|
2104
|
+
_request_auth=_request_auth
|
|
2105
|
+
)
|
|
2106
|
+
|
|
2107
|
+
|
|
2108
|
+
|
|
2109
|
+
|
|
2110
|
+
@validate_call
|
|
2111
|
+
def edge_stack_status_update(
|
|
2112
|
+
self,
|
|
2113
|
+
id: Annotated[StrictInt, Field(description="EdgeStack Id")],
|
|
2114
|
+
body: Annotated[EdgestacksUpdateStatusPayload, Field(description="EdgeStack status payload")],
|
|
2115
|
+
_request_timeout: Union[
|
|
2116
|
+
None,
|
|
2117
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2118
|
+
Tuple[
|
|
2119
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2120
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2121
|
+
]
|
|
2122
|
+
] = None,
|
|
2123
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2124
|
+
_content_type: Optional[StrictStr] = None,
|
|
2125
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2126
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2127
|
+
) -> PortainerEdgeStack:
|
|
2128
|
+
"""Update an EdgeStack status
|
|
2129
|
+
|
|
2130
|
+
Authorized only if the request is done by an Edge Environment(Endpoint)
|
|
2131
|
+
|
|
2132
|
+
:param id: EdgeStack Id (required)
|
|
2133
|
+
:type id: int
|
|
2134
|
+
:param body: EdgeStack status payload (required)
|
|
2135
|
+
:type body: EdgestacksUpdateStatusPayload
|
|
2136
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2137
|
+
number provided, it will be total request
|
|
2138
|
+
timeout. It can also be a pair (tuple) of
|
|
2139
|
+
(connection, read) timeouts.
|
|
2140
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2141
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2142
|
+
request; this effectively ignores the
|
|
2143
|
+
authentication in the spec for a single request.
|
|
2144
|
+
:type _request_auth: dict, optional
|
|
2145
|
+
:param _content_type: force content-type for the request.
|
|
2146
|
+
:type _content_type: str, Optional
|
|
2147
|
+
:param _headers: set to override the headers for a single
|
|
2148
|
+
request; this effectively ignores the headers
|
|
2149
|
+
in the spec for a single request.
|
|
2150
|
+
:type _headers: dict, optional
|
|
2151
|
+
:param _host_index: set to override the host_index for a single
|
|
2152
|
+
request; this effectively ignores the host_index
|
|
2153
|
+
in the spec for a single request.
|
|
2154
|
+
:type _host_index: int, optional
|
|
2155
|
+
:return: Returns the result object.
|
|
2156
|
+
""" # noqa: E501
|
|
2157
|
+
|
|
2158
|
+
_param = self._edge_stack_status_update_serialize(
|
|
2159
|
+
id=id,
|
|
2160
|
+
body=body,
|
|
2161
|
+
_request_auth=_request_auth,
|
|
2162
|
+
_content_type=_content_type,
|
|
2163
|
+
_headers=_headers,
|
|
2164
|
+
_host_index=_host_index
|
|
2165
|
+
)
|
|
2166
|
+
|
|
2167
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2168
|
+
'200': "PortainerEdgeStack",
|
|
2169
|
+
'400': None,
|
|
2170
|
+
'403': None,
|
|
2171
|
+
'404': None,
|
|
2172
|
+
'500': None,
|
|
2173
|
+
}
|
|
2174
|
+
response_data = self.api_client.call_api(
|
|
2175
|
+
*_param,
|
|
2176
|
+
_request_timeout=_request_timeout
|
|
2177
|
+
)
|
|
2178
|
+
response_data.read()
|
|
2179
|
+
return self.api_client.response_deserialize(
|
|
2180
|
+
response_data=response_data,
|
|
2181
|
+
response_types_map=_response_types_map,
|
|
2182
|
+
).data
|
|
2183
|
+
|
|
2184
|
+
|
|
2185
|
+
@validate_call
|
|
2186
|
+
def edge_stack_status_update_with_http_info(
|
|
2187
|
+
self,
|
|
2188
|
+
id: Annotated[StrictInt, Field(description="EdgeStack Id")],
|
|
2189
|
+
body: Annotated[EdgestacksUpdateStatusPayload, Field(description="EdgeStack status payload")],
|
|
2190
|
+
_request_timeout: Union[
|
|
2191
|
+
None,
|
|
2192
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2193
|
+
Tuple[
|
|
2194
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2195
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2196
|
+
]
|
|
2197
|
+
] = None,
|
|
2198
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2199
|
+
_content_type: Optional[StrictStr] = None,
|
|
2200
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2201
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2202
|
+
) -> ApiResponse[PortainerEdgeStack]:
|
|
2203
|
+
"""Update an EdgeStack status
|
|
2204
|
+
|
|
2205
|
+
Authorized only if the request is done by an Edge Environment(Endpoint)
|
|
2206
|
+
|
|
2207
|
+
:param id: EdgeStack Id (required)
|
|
2208
|
+
:type id: int
|
|
2209
|
+
:param body: EdgeStack status payload (required)
|
|
2210
|
+
:type body: EdgestacksUpdateStatusPayload
|
|
2211
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2212
|
+
number provided, it will be total request
|
|
2213
|
+
timeout. It can also be a pair (tuple) of
|
|
2214
|
+
(connection, read) timeouts.
|
|
2215
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2216
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2217
|
+
request; this effectively ignores the
|
|
2218
|
+
authentication in the spec for a single request.
|
|
2219
|
+
:type _request_auth: dict, optional
|
|
2220
|
+
:param _content_type: force content-type for the request.
|
|
2221
|
+
:type _content_type: str, Optional
|
|
2222
|
+
:param _headers: set to override the headers for a single
|
|
2223
|
+
request; this effectively ignores the headers
|
|
2224
|
+
in the spec for a single request.
|
|
2225
|
+
:type _headers: dict, optional
|
|
2226
|
+
:param _host_index: set to override the host_index for a single
|
|
2227
|
+
request; this effectively ignores the host_index
|
|
2228
|
+
in the spec for a single request.
|
|
2229
|
+
:type _host_index: int, optional
|
|
2230
|
+
:return: Returns the result object.
|
|
2231
|
+
""" # noqa: E501
|
|
2232
|
+
|
|
2233
|
+
_param = self._edge_stack_status_update_serialize(
|
|
2234
|
+
id=id,
|
|
2235
|
+
body=body,
|
|
2236
|
+
_request_auth=_request_auth,
|
|
2237
|
+
_content_type=_content_type,
|
|
2238
|
+
_headers=_headers,
|
|
2239
|
+
_host_index=_host_index
|
|
2240
|
+
)
|
|
2241
|
+
|
|
2242
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2243
|
+
'200': "PortainerEdgeStack",
|
|
2244
|
+
'400': None,
|
|
2245
|
+
'403': None,
|
|
2246
|
+
'404': None,
|
|
2247
|
+
'500': None,
|
|
2248
|
+
}
|
|
2249
|
+
response_data = self.api_client.call_api(
|
|
2250
|
+
*_param,
|
|
2251
|
+
_request_timeout=_request_timeout
|
|
2252
|
+
)
|
|
2253
|
+
response_data.read()
|
|
2254
|
+
return self.api_client.response_deserialize(
|
|
2255
|
+
response_data=response_data,
|
|
2256
|
+
response_types_map=_response_types_map,
|
|
2257
|
+
)
|
|
2258
|
+
|
|
2259
|
+
|
|
2260
|
+
@validate_call
|
|
2261
|
+
def edge_stack_status_update_without_preload_content(
|
|
2262
|
+
self,
|
|
2263
|
+
id: Annotated[StrictInt, Field(description="EdgeStack Id")],
|
|
2264
|
+
body: Annotated[EdgestacksUpdateStatusPayload, Field(description="EdgeStack status payload")],
|
|
2265
|
+
_request_timeout: Union[
|
|
2266
|
+
None,
|
|
2267
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2268
|
+
Tuple[
|
|
2269
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2270
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2271
|
+
]
|
|
2272
|
+
] = None,
|
|
2273
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2274
|
+
_content_type: Optional[StrictStr] = None,
|
|
2275
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2276
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2277
|
+
) -> RESTResponseType:
|
|
2278
|
+
"""Update an EdgeStack status
|
|
2279
|
+
|
|
2280
|
+
Authorized only if the request is done by an Edge Environment(Endpoint)
|
|
2281
|
+
|
|
2282
|
+
:param id: EdgeStack Id (required)
|
|
2283
|
+
:type id: int
|
|
2284
|
+
:param body: EdgeStack status payload (required)
|
|
2285
|
+
:type body: EdgestacksUpdateStatusPayload
|
|
2286
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2287
|
+
number provided, it will be total request
|
|
2288
|
+
timeout. It can also be a pair (tuple) of
|
|
2289
|
+
(connection, read) timeouts.
|
|
2290
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2291
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2292
|
+
request; this effectively ignores the
|
|
2293
|
+
authentication in the spec for a single request.
|
|
2294
|
+
:type _request_auth: dict, optional
|
|
2295
|
+
:param _content_type: force content-type for the request.
|
|
2296
|
+
:type _content_type: str, Optional
|
|
2297
|
+
:param _headers: set to override the headers for a single
|
|
2298
|
+
request; this effectively ignores the headers
|
|
2299
|
+
in the spec for a single request.
|
|
2300
|
+
:type _headers: dict, optional
|
|
2301
|
+
:param _host_index: set to override the host_index for a single
|
|
2302
|
+
request; this effectively ignores the host_index
|
|
2303
|
+
in the spec for a single request.
|
|
2304
|
+
:type _host_index: int, optional
|
|
2305
|
+
:return: Returns the result object.
|
|
2306
|
+
""" # noqa: E501
|
|
2307
|
+
|
|
2308
|
+
_param = self._edge_stack_status_update_serialize(
|
|
2309
|
+
id=id,
|
|
2310
|
+
body=body,
|
|
2311
|
+
_request_auth=_request_auth,
|
|
2312
|
+
_content_type=_content_type,
|
|
2313
|
+
_headers=_headers,
|
|
2314
|
+
_host_index=_host_index
|
|
2315
|
+
)
|
|
2316
|
+
|
|
2317
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2318
|
+
'200': "PortainerEdgeStack",
|
|
2319
|
+
'400': None,
|
|
2320
|
+
'403': None,
|
|
2321
|
+
'404': None,
|
|
2322
|
+
'500': None,
|
|
2323
|
+
}
|
|
2324
|
+
response_data = self.api_client.call_api(
|
|
2325
|
+
*_param,
|
|
2326
|
+
_request_timeout=_request_timeout
|
|
2327
|
+
)
|
|
2328
|
+
return response_data.response
|
|
2329
|
+
|
|
2330
|
+
|
|
2331
|
+
def _edge_stack_status_update_serialize(
|
|
2332
|
+
self,
|
|
2333
|
+
id,
|
|
2334
|
+
body,
|
|
2335
|
+
_request_auth,
|
|
2336
|
+
_content_type,
|
|
2337
|
+
_headers,
|
|
2338
|
+
_host_index,
|
|
2339
|
+
) -> RequestSerialized:
|
|
2340
|
+
|
|
2341
|
+
_host = None
|
|
2342
|
+
|
|
2343
|
+
_collection_formats: Dict[str, str] = {
|
|
2344
|
+
}
|
|
2345
|
+
|
|
2346
|
+
_path_params: Dict[str, str] = {}
|
|
2347
|
+
_query_params: List[Tuple[str, str]] = []
|
|
2348
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2349
|
+
_form_params: List[Tuple[str, str]] = []
|
|
2350
|
+
_files: Dict[
|
|
2351
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2352
|
+
] = {}
|
|
2353
|
+
_body_params: Optional[bytes] = None
|
|
2354
|
+
|
|
2355
|
+
# process the path parameters
|
|
2356
|
+
if id is not None:
|
|
2357
|
+
_path_params['id'] = id
|
|
2358
|
+
# process the query parameters
|
|
2359
|
+
# process the header parameters
|
|
2360
|
+
# process the form parameters
|
|
2361
|
+
# process the body parameter
|
|
2362
|
+
if body is not None:
|
|
2363
|
+
_body_params = body
|
|
2364
|
+
|
|
2365
|
+
|
|
2366
|
+
# set the HTTP header `Accept`
|
|
2367
|
+
if 'Accept' not in _header_params:
|
|
2368
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2369
|
+
[
|
|
2370
|
+
'application/json'
|
|
2371
|
+
]
|
|
2372
|
+
)
|
|
2373
|
+
|
|
2374
|
+
# set the HTTP header `Content-Type`
|
|
2375
|
+
if _content_type:
|
|
2376
|
+
_header_params['Content-Type'] = _content_type
|
|
2377
|
+
else:
|
|
2378
|
+
_default_content_type = (
|
|
2379
|
+
self.api_client.select_header_content_type(
|
|
2380
|
+
[
|
|
2381
|
+
'application/json'
|
|
2382
|
+
]
|
|
2383
|
+
)
|
|
2384
|
+
)
|
|
2385
|
+
if _default_content_type is not None:
|
|
2386
|
+
_header_params['Content-Type'] = _default_content_type
|
|
2387
|
+
|
|
2388
|
+
# authentication setting
|
|
2389
|
+
_auth_settings: List[str] = [
|
|
2390
|
+
]
|
|
2391
|
+
|
|
2392
|
+
return self.api_client.param_serialize(
|
|
2393
|
+
method='PUT',
|
|
2394
|
+
resource_path='/edge_stacks/{id}/status',
|
|
2395
|
+
path_params=_path_params,
|
|
2396
|
+
query_params=_query_params,
|
|
2397
|
+
header_params=_header_params,
|
|
2398
|
+
body=_body_params,
|
|
2399
|
+
post_params=_form_params,
|
|
2400
|
+
files=_files,
|
|
2401
|
+
auth_settings=_auth_settings,
|
|
2402
|
+
collection_formats=_collection_formats,
|
|
2403
|
+
_host=_host,
|
|
2404
|
+
_request_auth=_request_auth
|
|
2405
|
+
)
|
|
2406
|
+
|
|
2407
|
+
|
|
2408
|
+
|
|
2409
|
+
|
|
2410
|
+
@validate_call
|
|
2411
|
+
def edge_stack_update(
|
|
2412
|
+
self,
|
|
2413
|
+
id: Annotated[StrictInt, Field(description="EdgeStack Id")],
|
|
2414
|
+
body: Annotated[EdgestacksUpdateEdgeStackPayload, Field(description="EdgeStack data")],
|
|
2415
|
+
_request_timeout: Union[
|
|
2416
|
+
None,
|
|
2417
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2418
|
+
Tuple[
|
|
2419
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2420
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2421
|
+
]
|
|
2422
|
+
] = None,
|
|
2423
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2424
|
+
_content_type: Optional[StrictStr] = None,
|
|
2425
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2426
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2427
|
+
) -> PortainerEdgeStack:
|
|
2428
|
+
"""Update an EdgeStack
|
|
2429
|
+
|
|
2430
|
+
**Access policy**: administrator
|
|
2431
|
+
|
|
2432
|
+
:param id: EdgeStack Id (required)
|
|
2433
|
+
:type id: int
|
|
2434
|
+
:param body: EdgeStack data (required)
|
|
2435
|
+
:type body: EdgestacksUpdateEdgeStackPayload
|
|
2436
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2437
|
+
number provided, it will be total request
|
|
2438
|
+
timeout. It can also be a pair (tuple) of
|
|
2439
|
+
(connection, read) timeouts.
|
|
2440
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2441
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2442
|
+
request; this effectively ignores the
|
|
2443
|
+
authentication in the spec for a single request.
|
|
2444
|
+
:type _request_auth: dict, optional
|
|
2445
|
+
:param _content_type: force content-type for the request.
|
|
2446
|
+
:type _content_type: str, Optional
|
|
2447
|
+
:param _headers: set to override the headers for a single
|
|
2448
|
+
request; this effectively ignores the headers
|
|
2449
|
+
in the spec for a single request.
|
|
2450
|
+
:type _headers: dict, optional
|
|
2451
|
+
:param _host_index: set to override the host_index for a single
|
|
2452
|
+
request; this effectively ignores the host_index
|
|
2453
|
+
in the spec for a single request.
|
|
2454
|
+
:type _host_index: int, optional
|
|
2455
|
+
:return: Returns the result object.
|
|
2456
|
+
""" # noqa: E501
|
|
2457
|
+
|
|
2458
|
+
_param = self._edge_stack_update_serialize(
|
|
2459
|
+
id=id,
|
|
2460
|
+
body=body,
|
|
2461
|
+
_request_auth=_request_auth,
|
|
2462
|
+
_content_type=_content_type,
|
|
2463
|
+
_headers=_headers,
|
|
2464
|
+
_host_index=_host_index
|
|
2465
|
+
)
|
|
2466
|
+
|
|
2467
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2468
|
+
'200': "PortainerEdgeStack",
|
|
2469
|
+
'400': None,
|
|
2470
|
+
'500': None,
|
|
2471
|
+
'503': None,
|
|
2472
|
+
}
|
|
2473
|
+
response_data = self.api_client.call_api(
|
|
2474
|
+
*_param,
|
|
2475
|
+
_request_timeout=_request_timeout
|
|
2476
|
+
)
|
|
2477
|
+
response_data.read()
|
|
2478
|
+
return self.api_client.response_deserialize(
|
|
2479
|
+
response_data=response_data,
|
|
2480
|
+
response_types_map=_response_types_map,
|
|
2481
|
+
).data
|
|
2482
|
+
|
|
2483
|
+
|
|
2484
|
+
@validate_call
|
|
2485
|
+
def edge_stack_update_with_http_info(
|
|
2486
|
+
self,
|
|
2487
|
+
id: Annotated[StrictInt, Field(description="EdgeStack Id")],
|
|
2488
|
+
body: Annotated[EdgestacksUpdateEdgeStackPayload, Field(description="EdgeStack data")],
|
|
2489
|
+
_request_timeout: Union[
|
|
2490
|
+
None,
|
|
2491
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2492
|
+
Tuple[
|
|
2493
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2494
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2495
|
+
]
|
|
2496
|
+
] = None,
|
|
2497
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2498
|
+
_content_type: Optional[StrictStr] = None,
|
|
2499
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2500
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2501
|
+
) -> ApiResponse[PortainerEdgeStack]:
|
|
2502
|
+
"""Update an EdgeStack
|
|
2503
|
+
|
|
2504
|
+
**Access policy**: administrator
|
|
2505
|
+
|
|
2506
|
+
:param id: EdgeStack Id (required)
|
|
2507
|
+
:type id: int
|
|
2508
|
+
:param body: EdgeStack data (required)
|
|
2509
|
+
:type body: EdgestacksUpdateEdgeStackPayload
|
|
2510
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2511
|
+
number provided, it will be total request
|
|
2512
|
+
timeout. It can also be a pair (tuple) of
|
|
2513
|
+
(connection, read) timeouts.
|
|
2514
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2515
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2516
|
+
request; this effectively ignores the
|
|
2517
|
+
authentication in the spec for a single request.
|
|
2518
|
+
:type _request_auth: dict, optional
|
|
2519
|
+
:param _content_type: force content-type for the request.
|
|
2520
|
+
:type _content_type: str, Optional
|
|
2521
|
+
:param _headers: set to override the headers for a single
|
|
2522
|
+
request; this effectively ignores the headers
|
|
2523
|
+
in the spec for a single request.
|
|
2524
|
+
:type _headers: dict, optional
|
|
2525
|
+
:param _host_index: set to override the host_index for a single
|
|
2526
|
+
request; this effectively ignores the host_index
|
|
2527
|
+
in the spec for a single request.
|
|
2528
|
+
:type _host_index: int, optional
|
|
2529
|
+
:return: Returns the result object.
|
|
2530
|
+
""" # noqa: E501
|
|
2531
|
+
|
|
2532
|
+
_param = self._edge_stack_update_serialize(
|
|
2533
|
+
id=id,
|
|
2534
|
+
body=body,
|
|
2535
|
+
_request_auth=_request_auth,
|
|
2536
|
+
_content_type=_content_type,
|
|
2537
|
+
_headers=_headers,
|
|
2538
|
+
_host_index=_host_index
|
|
2539
|
+
)
|
|
2540
|
+
|
|
2541
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2542
|
+
'200': "PortainerEdgeStack",
|
|
2543
|
+
'400': None,
|
|
2544
|
+
'500': None,
|
|
2545
|
+
'503': None,
|
|
2546
|
+
}
|
|
2547
|
+
response_data = self.api_client.call_api(
|
|
2548
|
+
*_param,
|
|
2549
|
+
_request_timeout=_request_timeout
|
|
2550
|
+
)
|
|
2551
|
+
response_data.read()
|
|
2552
|
+
return self.api_client.response_deserialize(
|
|
2553
|
+
response_data=response_data,
|
|
2554
|
+
response_types_map=_response_types_map,
|
|
2555
|
+
)
|
|
2556
|
+
|
|
2557
|
+
|
|
2558
|
+
@validate_call
|
|
2559
|
+
def edge_stack_update_without_preload_content(
|
|
2560
|
+
self,
|
|
2561
|
+
id: Annotated[StrictInt, Field(description="EdgeStack Id")],
|
|
2562
|
+
body: Annotated[EdgestacksUpdateEdgeStackPayload, Field(description="EdgeStack data")],
|
|
2563
|
+
_request_timeout: Union[
|
|
2564
|
+
None,
|
|
2565
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2566
|
+
Tuple[
|
|
2567
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2568
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2569
|
+
]
|
|
2570
|
+
] = None,
|
|
2571
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2572
|
+
_content_type: Optional[StrictStr] = None,
|
|
2573
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2574
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2575
|
+
) -> RESTResponseType:
|
|
2576
|
+
"""Update an EdgeStack
|
|
2577
|
+
|
|
2578
|
+
**Access policy**: administrator
|
|
2579
|
+
|
|
2580
|
+
:param id: EdgeStack Id (required)
|
|
2581
|
+
:type id: int
|
|
2582
|
+
:param body: EdgeStack data (required)
|
|
2583
|
+
:type body: EdgestacksUpdateEdgeStackPayload
|
|
2584
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2585
|
+
number provided, it will be total request
|
|
2586
|
+
timeout. It can also be a pair (tuple) of
|
|
2587
|
+
(connection, read) timeouts.
|
|
2588
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2589
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2590
|
+
request; this effectively ignores the
|
|
2591
|
+
authentication in the spec for a single request.
|
|
2592
|
+
:type _request_auth: dict, optional
|
|
2593
|
+
:param _content_type: force content-type for the request.
|
|
2594
|
+
:type _content_type: str, Optional
|
|
2595
|
+
:param _headers: set to override the headers for a single
|
|
2596
|
+
request; this effectively ignores the headers
|
|
2597
|
+
in the spec for a single request.
|
|
2598
|
+
:type _headers: dict, optional
|
|
2599
|
+
:param _host_index: set to override the host_index for a single
|
|
2600
|
+
request; this effectively ignores the host_index
|
|
2601
|
+
in the spec for a single request.
|
|
2602
|
+
:type _host_index: int, optional
|
|
2603
|
+
:return: Returns the result object.
|
|
2604
|
+
""" # noqa: E501
|
|
2605
|
+
|
|
2606
|
+
_param = self._edge_stack_update_serialize(
|
|
2607
|
+
id=id,
|
|
2608
|
+
body=body,
|
|
2609
|
+
_request_auth=_request_auth,
|
|
2610
|
+
_content_type=_content_type,
|
|
2611
|
+
_headers=_headers,
|
|
2612
|
+
_host_index=_host_index
|
|
2613
|
+
)
|
|
2614
|
+
|
|
2615
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2616
|
+
'200': "PortainerEdgeStack",
|
|
2617
|
+
'400': None,
|
|
2618
|
+
'500': None,
|
|
2619
|
+
'503': None,
|
|
2620
|
+
}
|
|
2621
|
+
response_data = self.api_client.call_api(
|
|
2622
|
+
*_param,
|
|
2623
|
+
_request_timeout=_request_timeout
|
|
2624
|
+
)
|
|
2625
|
+
return response_data.response
|
|
2626
|
+
|
|
2627
|
+
|
|
2628
|
+
def _edge_stack_update_serialize(
|
|
2629
|
+
self,
|
|
2630
|
+
id,
|
|
2631
|
+
body,
|
|
2632
|
+
_request_auth,
|
|
2633
|
+
_content_type,
|
|
2634
|
+
_headers,
|
|
2635
|
+
_host_index,
|
|
2636
|
+
) -> RequestSerialized:
|
|
2637
|
+
|
|
2638
|
+
_host = None
|
|
2639
|
+
|
|
2640
|
+
_collection_formats: Dict[str, str] = {
|
|
2641
|
+
}
|
|
2642
|
+
|
|
2643
|
+
_path_params: Dict[str, str] = {}
|
|
2644
|
+
_query_params: List[Tuple[str, str]] = []
|
|
2645
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2646
|
+
_form_params: List[Tuple[str, str]] = []
|
|
2647
|
+
_files: Dict[
|
|
2648
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2649
|
+
] = {}
|
|
2650
|
+
_body_params: Optional[bytes] = None
|
|
2651
|
+
|
|
2652
|
+
# process the path parameters
|
|
2653
|
+
if id is not None:
|
|
2654
|
+
_path_params['id'] = id
|
|
2655
|
+
# process the query parameters
|
|
2656
|
+
# process the header parameters
|
|
2657
|
+
# process the form parameters
|
|
2658
|
+
# process the body parameter
|
|
2659
|
+
if body is not None:
|
|
2660
|
+
_body_params = body
|
|
2661
|
+
|
|
2662
|
+
|
|
2663
|
+
# set the HTTP header `Accept`
|
|
2664
|
+
if 'Accept' not in _header_params:
|
|
2665
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2666
|
+
[
|
|
2667
|
+
'application/json'
|
|
2668
|
+
]
|
|
2669
|
+
)
|
|
2670
|
+
|
|
2671
|
+
# set the HTTP header `Content-Type`
|
|
2672
|
+
if _content_type:
|
|
2673
|
+
_header_params['Content-Type'] = _content_type
|
|
2674
|
+
else:
|
|
2675
|
+
_default_content_type = (
|
|
2676
|
+
self.api_client.select_header_content_type(
|
|
2677
|
+
[
|
|
2678
|
+
'application/json'
|
|
2679
|
+
]
|
|
2680
|
+
)
|
|
2681
|
+
)
|
|
2682
|
+
if _default_content_type is not None:
|
|
2683
|
+
_header_params['Content-Type'] = _default_content_type
|
|
2684
|
+
|
|
2685
|
+
# authentication setting
|
|
2686
|
+
_auth_settings: List[str] = [
|
|
2687
|
+
'jwt',
|
|
2688
|
+
'ApiKeyAuth'
|
|
2689
|
+
]
|
|
2690
|
+
|
|
2691
|
+
return self.api_client.param_serialize(
|
|
2692
|
+
method='PUT',
|
|
2693
|
+
resource_path='/edge_stacks/{id}',
|
|
2694
|
+
path_params=_path_params,
|
|
2695
|
+
query_params=_query_params,
|
|
2696
|
+
header_params=_header_params,
|
|
2697
|
+
body=_body_params,
|
|
2698
|
+
post_params=_form_params,
|
|
2699
|
+
files=_files,
|
|
2700
|
+
auth_settings=_auth_settings,
|
|
2701
|
+
collection_formats=_collection_formats,
|
|
2702
|
+
_host=_host,
|
|
2703
|
+
_request_auth=_request_auth
|
|
2704
|
+
)
|
|
2705
|
+
|
|
2706
|
+
|
|
2707
|
+
|
|
2708
|
+
|
|
2709
|
+
@validate_call
|
|
2710
|
+
def endpoints_id_edge_stacks_stack_id_get(
|
|
2711
|
+
self,
|
|
2712
|
+
id: Annotated[StrictInt, Field(description="environment(endpoint) Id")],
|
|
2713
|
+
stack_id: Annotated[StrictInt, Field(description="EdgeStack Id")],
|
|
2714
|
+
_request_timeout: Union[
|
|
2715
|
+
None,
|
|
2716
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2717
|
+
Tuple[
|
|
2718
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2719
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2720
|
+
]
|
|
2721
|
+
] = None,
|
|
2722
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2723
|
+
_content_type: Optional[StrictStr] = None,
|
|
2724
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2725
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2726
|
+
) -> EdgeStackPayload:
|
|
2727
|
+
"""Inspect an Edge Stack for an Environment(Endpoint)
|
|
2728
|
+
|
|
2729
|
+
**Access policy**: public
|
|
2730
|
+
|
|
2731
|
+
:param id: environment(endpoint) Id (required)
|
|
2732
|
+
:type id: int
|
|
2733
|
+
:param stack_id: EdgeStack Id (required)
|
|
2734
|
+
:type stack_id: int
|
|
2735
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2736
|
+
number provided, it will be total request
|
|
2737
|
+
timeout. It can also be a pair (tuple) of
|
|
2738
|
+
(connection, read) timeouts.
|
|
2739
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2740
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2741
|
+
request; this effectively ignores the
|
|
2742
|
+
authentication in the spec for a single request.
|
|
2743
|
+
:type _request_auth: dict, optional
|
|
2744
|
+
:param _content_type: force content-type for the request.
|
|
2745
|
+
:type _content_type: str, Optional
|
|
2746
|
+
:param _headers: set to override the headers for a single
|
|
2747
|
+
request; this effectively ignores the headers
|
|
2748
|
+
in the spec for a single request.
|
|
2749
|
+
:type _headers: dict, optional
|
|
2750
|
+
:param _host_index: set to override the host_index for a single
|
|
2751
|
+
request; this effectively ignores the host_index
|
|
2752
|
+
in the spec for a single request.
|
|
2753
|
+
:type _host_index: int, optional
|
|
2754
|
+
:return: Returns the result object.
|
|
2755
|
+
""" # noqa: E501
|
|
2756
|
+
|
|
2757
|
+
_param = self._endpoints_id_edge_stacks_stack_id_get_serialize(
|
|
2758
|
+
id=id,
|
|
2759
|
+
stack_id=stack_id,
|
|
2760
|
+
_request_auth=_request_auth,
|
|
2761
|
+
_content_type=_content_type,
|
|
2762
|
+
_headers=_headers,
|
|
2763
|
+
_host_index=_host_index
|
|
2764
|
+
)
|
|
2765
|
+
|
|
2766
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2767
|
+
'200': "EdgeStackPayload",
|
|
2768
|
+
'400': None,
|
|
2769
|
+
'404': None,
|
|
2770
|
+
'500': None,
|
|
2771
|
+
}
|
|
2772
|
+
response_data = self.api_client.call_api(
|
|
2773
|
+
*_param,
|
|
2774
|
+
_request_timeout=_request_timeout
|
|
2775
|
+
)
|
|
2776
|
+
response_data.read()
|
|
2777
|
+
return self.api_client.response_deserialize(
|
|
2778
|
+
response_data=response_data,
|
|
2779
|
+
response_types_map=_response_types_map,
|
|
2780
|
+
).data
|
|
2781
|
+
|
|
2782
|
+
|
|
2783
|
+
@validate_call
|
|
2784
|
+
def endpoints_id_edge_stacks_stack_id_get_with_http_info(
|
|
2785
|
+
self,
|
|
2786
|
+
id: Annotated[StrictInt, Field(description="environment(endpoint) Id")],
|
|
2787
|
+
stack_id: Annotated[StrictInt, Field(description="EdgeStack Id")],
|
|
2788
|
+
_request_timeout: Union[
|
|
2789
|
+
None,
|
|
2790
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2791
|
+
Tuple[
|
|
2792
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2793
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2794
|
+
]
|
|
2795
|
+
] = None,
|
|
2796
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2797
|
+
_content_type: Optional[StrictStr] = None,
|
|
2798
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2799
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2800
|
+
) -> ApiResponse[EdgeStackPayload]:
|
|
2801
|
+
"""Inspect an Edge Stack for an Environment(Endpoint)
|
|
2802
|
+
|
|
2803
|
+
**Access policy**: public
|
|
2804
|
+
|
|
2805
|
+
:param id: environment(endpoint) Id (required)
|
|
2806
|
+
:type id: int
|
|
2807
|
+
:param stack_id: EdgeStack Id (required)
|
|
2808
|
+
:type stack_id: int
|
|
2809
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2810
|
+
number provided, it will be total request
|
|
2811
|
+
timeout. It can also be a pair (tuple) of
|
|
2812
|
+
(connection, read) timeouts.
|
|
2813
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2814
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2815
|
+
request; this effectively ignores the
|
|
2816
|
+
authentication in the spec for a single request.
|
|
2817
|
+
:type _request_auth: dict, optional
|
|
2818
|
+
:param _content_type: force content-type for the request.
|
|
2819
|
+
:type _content_type: str, Optional
|
|
2820
|
+
:param _headers: set to override the headers for a single
|
|
2821
|
+
request; this effectively ignores the headers
|
|
2822
|
+
in the spec for a single request.
|
|
2823
|
+
:type _headers: dict, optional
|
|
2824
|
+
:param _host_index: set to override the host_index for a single
|
|
2825
|
+
request; this effectively ignores the host_index
|
|
2826
|
+
in the spec for a single request.
|
|
2827
|
+
:type _host_index: int, optional
|
|
2828
|
+
:return: Returns the result object.
|
|
2829
|
+
""" # noqa: E501
|
|
2830
|
+
|
|
2831
|
+
_param = self._endpoints_id_edge_stacks_stack_id_get_serialize(
|
|
2832
|
+
id=id,
|
|
2833
|
+
stack_id=stack_id,
|
|
2834
|
+
_request_auth=_request_auth,
|
|
2835
|
+
_content_type=_content_type,
|
|
2836
|
+
_headers=_headers,
|
|
2837
|
+
_host_index=_host_index
|
|
2838
|
+
)
|
|
2839
|
+
|
|
2840
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2841
|
+
'200': "EdgeStackPayload",
|
|
2842
|
+
'400': None,
|
|
2843
|
+
'404': None,
|
|
2844
|
+
'500': None,
|
|
2845
|
+
}
|
|
2846
|
+
response_data = self.api_client.call_api(
|
|
2847
|
+
*_param,
|
|
2848
|
+
_request_timeout=_request_timeout
|
|
2849
|
+
)
|
|
2850
|
+
response_data.read()
|
|
2851
|
+
return self.api_client.response_deserialize(
|
|
2852
|
+
response_data=response_data,
|
|
2853
|
+
response_types_map=_response_types_map,
|
|
2854
|
+
)
|
|
2855
|
+
|
|
2856
|
+
|
|
2857
|
+
@validate_call
|
|
2858
|
+
def endpoints_id_edge_stacks_stack_id_get_without_preload_content(
|
|
2859
|
+
self,
|
|
2860
|
+
id: Annotated[StrictInt, Field(description="environment(endpoint) Id")],
|
|
2861
|
+
stack_id: Annotated[StrictInt, Field(description="EdgeStack Id")],
|
|
2862
|
+
_request_timeout: Union[
|
|
2863
|
+
None,
|
|
2864
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2865
|
+
Tuple[
|
|
2866
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2867
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2868
|
+
]
|
|
2869
|
+
] = None,
|
|
2870
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2871
|
+
_content_type: Optional[StrictStr] = None,
|
|
2872
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2873
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2874
|
+
) -> RESTResponseType:
|
|
2875
|
+
"""Inspect an Edge Stack for an Environment(Endpoint)
|
|
2876
|
+
|
|
2877
|
+
**Access policy**: public
|
|
2878
|
+
|
|
2879
|
+
:param id: environment(endpoint) Id (required)
|
|
2880
|
+
:type id: int
|
|
2881
|
+
:param stack_id: EdgeStack Id (required)
|
|
2882
|
+
:type stack_id: int
|
|
2883
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2884
|
+
number provided, it will be total request
|
|
2885
|
+
timeout. It can also be a pair (tuple) of
|
|
2886
|
+
(connection, read) timeouts.
|
|
2887
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2888
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2889
|
+
request; this effectively ignores the
|
|
2890
|
+
authentication in the spec for a single request.
|
|
2891
|
+
:type _request_auth: dict, optional
|
|
2892
|
+
:param _content_type: force content-type for the request.
|
|
2893
|
+
:type _content_type: str, Optional
|
|
2894
|
+
:param _headers: set to override the headers for a single
|
|
2895
|
+
request; this effectively ignores the headers
|
|
2896
|
+
in the spec for a single request.
|
|
2897
|
+
:type _headers: dict, optional
|
|
2898
|
+
:param _host_index: set to override the host_index for a single
|
|
2899
|
+
request; this effectively ignores the host_index
|
|
2900
|
+
in the spec for a single request.
|
|
2901
|
+
:type _host_index: int, optional
|
|
2902
|
+
:return: Returns the result object.
|
|
2903
|
+
""" # noqa: E501
|
|
2904
|
+
|
|
2905
|
+
_param = self._endpoints_id_edge_stacks_stack_id_get_serialize(
|
|
2906
|
+
id=id,
|
|
2907
|
+
stack_id=stack_id,
|
|
2908
|
+
_request_auth=_request_auth,
|
|
2909
|
+
_content_type=_content_type,
|
|
2910
|
+
_headers=_headers,
|
|
2911
|
+
_host_index=_host_index
|
|
2912
|
+
)
|
|
2913
|
+
|
|
2914
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2915
|
+
'200': "EdgeStackPayload",
|
|
2916
|
+
'400': None,
|
|
2917
|
+
'404': None,
|
|
2918
|
+
'500': None,
|
|
2919
|
+
}
|
|
2920
|
+
response_data = self.api_client.call_api(
|
|
2921
|
+
*_param,
|
|
2922
|
+
_request_timeout=_request_timeout
|
|
2923
|
+
)
|
|
2924
|
+
return response_data.response
|
|
2925
|
+
|
|
2926
|
+
|
|
2927
|
+
def _endpoints_id_edge_stacks_stack_id_get_serialize(
|
|
2928
|
+
self,
|
|
2929
|
+
id,
|
|
2930
|
+
stack_id,
|
|
2931
|
+
_request_auth,
|
|
2932
|
+
_content_type,
|
|
2933
|
+
_headers,
|
|
2934
|
+
_host_index,
|
|
2935
|
+
) -> RequestSerialized:
|
|
2936
|
+
|
|
2937
|
+
_host = None
|
|
2938
|
+
|
|
2939
|
+
_collection_formats: Dict[str, str] = {
|
|
2940
|
+
}
|
|
2941
|
+
|
|
2942
|
+
_path_params: Dict[str, str] = {}
|
|
2943
|
+
_query_params: List[Tuple[str, str]] = []
|
|
2944
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2945
|
+
_form_params: List[Tuple[str, str]] = []
|
|
2946
|
+
_files: Dict[
|
|
2947
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2948
|
+
] = {}
|
|
2949
|
+
_body_params: Optional[bytes] = None
|
|
2950
|
+
|
|
2951
|
+
# process the path parameters
|
|
2952
|
+
if id is not None:
|
|
2953
|
+
_path_params['id'] = id
|
|
2954
|
+
if stack_id is not None:
|
|
2955
|
+
_path_params['stackId'] = stack_id
|
|
2956
|
+
# process the query parameters
|
|
2957
|
+
# process the header parameters
|
|
2958
|
+
# process the form parameters
|
|
2959
|
+
# process the body parameter
|
|
2960
|
+
|
|
2961
|
+
|
|
2962
|
+
# set the HTTP header `Accept`
|
|
2963
|
+
if 'Accept' not in _header_params:
|
|
2964
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2965
|
+
[
|
|
2966
|
+
'application/json'
|
|
2967
|
+
]
|
|
2968
|
+
)
|
|
2969
|
+
|
|
2970
|
+
|
|
2971
|
+
# authentication setting
|
|
2972
|
+
_auth_settings: List[str] = [
|
|
2973
|
+
]
|
|
2974
|
+
|
|
2975
|
+
return self.api_client.param_serialize(
|
|
2976
|
+
method='GET',
|
|
2977
|
+
resource_path='/endpoints/{id}/edge/stacks/{stackId}',
|
|
2978
|
+
path_params=_path_params,
|
|
2979
|
+
query_params=_query_params,
|
|
2980
|
+
header_params=_header_params,
|
|
2981
|
+
body=_body_params,
|
|
2982
|
+
post_params=_form_params,
|
|
2983
|
+
files=_files,
|
|
2984
|
+
auth_settings=_auth_settings,
|
|
2985
|
+
collection_formats=_collection_formats,
|
|
2986
|
+
_host=_host,
|
|
2987
|
+
_request_auth=_request_auth
|
|
2988
|
+
)
|
|
2989
|
+
|
|
2990
|
+
|