From a9b74392adc698d1303b07e6cb669c47506fb6c9 Mon Sep 17 00:00:00 2001 From: Nandor Kracser Date: Wed, 13 Feb 2019 09:02:01 +0100 Subject: [PATCH] openapi: support nullable attribute with temporary generator image --- Makefile | 6 +- client/.openapi-generator/VERSION | 2 +- client/README.md | 43 +- client/SHA256SUMS | 2 +- client/api/openapi.yaml | 817 ++++++++++-------- client/api_auth.go | 34 +- client/api_clusters.go | 428 ++++----- client/api_common.go | 17 +- client/api_deployments.go | 143 +-- client/api_domain.go | 17 +- client/api_helm.go | 139 +-- client/api_hpa.go | 25 +- client/api_images.go | 50 +- client/api_imagescan.go | 59 +- client/api_info.go | 102 ++- client/api_network.go | 75 +- client/api_organizations.go | 34 +- client/api_policies.go | 92 +- client/api_profiles.go | 17 +- client/api_projects.go | 17 +- client/api_scanlog.go | 50 +- client/api_secrets.go | 152 ++-- client/api_spotguides.go | 42 +- client/api_storage.go | 59 +- client/api_users.go | 59 +- client/api_whitelist.go | 25 +- client/client.go | 12 +- client/docs/AddClusterProfileRequest.md | 2 +- client/docs/AmazonAutoScalingGroup.md | 2 +- client/docs/AmazonAutoScalingGroupSize.md | 4 +- client/docs/AnchoreImage.md | 2 +- client/docs/AnchoreImageList.md | 9 - client/docs/BasePostHook.md | 2 +- client/docs/BucketInfoSecret.md | 2 +- client/docs/ClusterImageList.md | 9 - client/docs/ClustersApi.md | 66 +- client/docs/CreateAckPropertiesAcsk.md | 6 +- client/docs/CreateAksPropertiesAks.md | 6 +- ...CreateAmazonObjectStoreBucketProperties.md | 2 +- ...AmazonObjectStoreBucketPropertiesAmazon.md | 10 - .../CreateAzureObjectStoreBucketProperties.md | 4 +- ...teAzureObjectStoreBucketPropertiesAzure.md | 12 - client/docs/CreateClusterRequest.md | 4 +- client/docs/CreateEksPropertiesEks.md | 4 +- client/docs/CreateGkePropertiesGke.md | 2 +- ...CreateGoogleObjectStoreBucketProperties.md | 2 +- ...GoogleObjectStoreBucketPropertiesGoogle.md | 10 - .../docs/CreateObjectStoreBucketProperties.md | 13 + client/docs/CreateObjectStoreBucketRequest.md | 2 +- ...CreateOracleObjectStoreBucketProperties.md | 2 +- ...OracleObjectStoreBucketPropertiesOracle.md | 10 - .../CreatePkePropertiesClusterTopology.md | 8 +- .../CreatePkePropertiesClusterTopologyCri.md | 2 +- ...ePkePropertiesClusterTopologyKubernetes.md | 4 +- ...PropertiesClusterTopologyKubernetesRbac.md | 2 +- ...eatePkePropertiesClusterTopologyNetwork.md | 8 +- client/docs/CreateUpdateDeploymentRequest.md | 4 +- client/docs/CreateUpdateOkePropertiesOke.md | 4 +- client/docs/DeploymentImageList.md | 9 - client/docs/DeploymentScalingResponse.md | 9 - client/docs/DeploymentScalingResponseInner.md | 17 - client/docs/DeploymentsApi.md | 12 +- client/docs/GetDeploymentResourcesResponse.md | 9 - .../GetDeploymentResourcesResponseInner.md | 11 - client/docs/HelmApi.md | 12 +- client/docs/HelmChartsListResponse.md | 9 - client/docs/HelmChartsListResponseInner.md | 11 - ...mazonLaunchTemplate.md => HelmNotFound.md} | 5 +- client/docs/HelmReposListResponse.md | 9 - client/docs/HpaApi.md | 4 +- client/docs/ImageContent.md | 9 - client/docs/ImagesApi.md | 8 +- client/docs/ImagescanApi.md | 4 +- client/docs/LaunchSpotguidesRequest.md | 2 +- client/docs/ListDeploymentsResponse.md | 9 - client/docs/ListDeploymentsResponseInner.md | 19 - client/docs/ListRouteTablesResponse.md | 9 - client/docs/ListSpotguidesResponse.md | 9 - client/docs/ListStorageBucketsResponse.md | 9 - client/docs/ListUserResponse.md | 9 - client/docs/ListVpcNetworksResponse.md | 9 - client/docs/ListVpcSubnetsResponse.md | 9 - client/docs/LoggingPostHookInstallLogging.md | 6 +- client/docs/NetworkApi.md | 12 +- client/docs/NodePoolsPke.md | 2 +- client/docs/PodDetailsResponse.md | 9 - client/docs/PoliciesApi.md | 12 +- client/docs/PolicyBundleList.md | 9 - client/docs/PolicyRuleParams.md | 4 +- .../docs/{ReRunPostHook.md => PostHooks.md} | 4 +- client/docs/ProfileListResponse.md | 2 +- client/docs/ReleaseWhiteList.md | 9 - client/docs/ScanLogList.md | 9 - client/docs/ScanlogApi.md | 8 +- client/docs/SecretItem.md | 2 +- client/docs/SecretTags.md | 9 - client/docs/SecretsApi.md | 8 +- client/docs/SpotguideDetailsResponse.md | 2 +- ...ionsMysqlVersion.md => SpotguideOption.md} | 2 +- client/docs/SpotguideOptionsMonitor.md | 15 - .../docs/SpotguideOptionsMysqlDatabaseName.md | 16 - .../docs/SpotguideOptionsMysqlDatabaseSize.md | 16 - client/docs/SpotguidesApi.md | 4 +- client/docs/StorageApi.md | 4 +- client/docs/TokenCreateRequest.md | 2 +- client/docs/UpdateAckPropertiesAcsk.md | 2 +- client/docs/UpdateClusterRequest.md | 2 +- client/docs/UpdateEksPropertiesEks.md | 2 +- client/docs/User.md | 2 +- client/docs/UsersApi.md | 4 +- client/docs/VulnerabilityList.md | 9 - client/docs/VulnerabilityResponse.md | 2 +- client/docs/WhitelistApi.md | 4 +- client/model_amazon_auto_scaling_group.go | 2 +- .../model_amazon_auto_scaling_group_size.go | 4 +- client/model_anchore_image.go | 3 +- client/model_anchore_image_list.go | 15 - client/model_bucket_info_secret.go | 2 +- client/model_cluster_image_list.go | 15 - client/model_create_ack_properties_acsk.go | 6 +- client/model_create_aks_properties_aks.go | 6 +- ...e_amazon_object_store_bucket_properties.go | 2 +- ...n_object_store_bucket_properties_amazon.go | 16 - ...te_azure_object_store_bucket_properties.go | 4 +- ...re_object_store_bucket_properties_azure.go | 18 - client/model_create_eks_properties_eks.go | 2 +- client/model_create_gke_properties_gke.go | 2 +- ...e_google_object_store_bucket_properties.go | 2 +- ...e_object_store_bucket_properties_google.go | 16 - ...l_create_object_store_bucket_properties.go | 19 + ...odel_create_object_store_bucket_request.go | 8 +- ...e_oracle_object_store_bucket_properties.go | 2 +- ...e_object_store_bucket_properties_oracle.go | 16 - ..._create_pke_properties_cluster_topology.go | 8 +- ...ate_pke_properties_cluster_topology_cri.go | 2 +- ..._properties_cluster_topology_kubernetes.go | 4 +- ...erties_cluster_topology_kubernetes_rbac.go | 2 +- ...pke_properties_cluster_topology_network.go | 8 +- .../model_create_update_oke_properties_oke.go | 4 +- client/model_deployment_image_list.go | 15 - client/model_deployment_scaling_response.go | 15 - ...model_deployment_scaling_response_inner.go | 23 - ...model_get_deployment_resources_response.go | 15 - ...get_deployment_resources_response_inner.go | 17 - client/model_helm_charts_list_response.go | 15 - .../model_helm_charts_list_response_inner.go | 17 - ...ch_template.go => model_helm_not_found.go} | 5 +- client/model_helm_repos_list_response.go | 15 - client/model_image_content.go | 16 - client/model_list_deployments_response.go | 15 - .../model_list_deployments_response_inner.go | 25 - client/model_list_route_tables_response.go | 15 - client/model_list_spotguides_response.go | 15 - client/model_list_storage_buckets_response.go | 15 - client/model_list_user_response.go | 15 - client/model_list_vpc_networks_response.go | 15 - client/model_list_vpc_subnets_response.go | 15 - ...model_logging_post_hook_install_logging.go | 6 +- client/model_pod_details_response.go | 15 - client/model_policy_bundle_list.go | 16 - client/model_policy_rule_params.go | 4 +- ...e_run_post_hook.go => model_post_hooks.go} | 2 +- client/model_release_white_list.go | 15 - client/model_scan_log_list.go | 15 - client/model_secret_tags.go | 15 - client/model_spotguide_details_response.go | 18 +- ...l_version.go => model_spotguide_option.go} | 2 +- client/model_spotguide_options_monitor.go | 21 - ...l_spotguide_options_mysql_database_name.go | 22 - ...l_spotguide_options_mysql_database_size.go | 22 - client/model_token_create_request.go | 6 +- client/model_update_ack_properties_acsk.go | 2 +- client/model_update_eks_properties_eks.go | 2 +- client/model_vulnerability_list.go | 16 - client/model_vulnerability_response.go | 7 +- docs/openapi/pipeline.yaml | 351 +++----- 176 files changed, 1706 insertions(+), 2474 deletions(-) delete mode 100644 client/docs/AnchoreImageList.md delete mode 100644 client/docs/ClusterImageList.md delete mode 100644 client/docs/CreateAmazonObjectStoreBucketPropertiesAmazon.md delete mode 100644 client/docs/CreateAzureObjectStoreBucketPropertiesAzure.md delete mode 100644 client/docs/CreateGoogleObjectStoreBucketPropertiesGoogle.md create mode 100644 client/docs/CreateObjectStoreBucketProperties.md delete mode 100644 client/docs/CreateOracleObjectStoreBucketPropertiesOracle.md delete mode 100644 client/docs/DeploymentImageList.md delete mode 100644 client/docs/DeploymentScalingResponse.md delete mode 100644 client/docs/DeploymentScalingResponseInner.md delete mode 100644 client/docs/GetDeploymentResourcesResponse.md delete mode 100644 client/docs/GetDeploymentResourcesResponseInner.md delete mode 100644 client/docs/HelmChartsListResponse.md delete mode 100644 client/docs/HelmChartsListResponseInner.md rename client/docs/{AmazonLaunchTemplate.md => HelmNotFound.md} (67%) delete mode 100644 client/docs/HelmReposListResponse.md delete mode 100644 client/docs/ImageContent.md delete mode 100644 client/docs/ListDeploymentsResponse.md delete mode 100644 client/docs/ListDeploymentsResponseInner.md delete mode 100644 client/docs/ListRouteTablesResponse.md delete mode 100644 client/docs/ListSpotguidesResponse.md delete mode 100644 client/docs/ListStorageBucketsResponse.md delete mode 100644 client/docs/ListUserResponse.md delete mode 100644 client/docs/ListVpcNetworksResponse.md delete mode 100644 client/docs/ListVpcSubnetsResponse.md delete mode 100644 client/docs/PodDetailsResponse.md delete mode 100644 client/docs/PolicyBundleList.md rename client/docs/{ReRunPostHook.md => PostHooks.md} (81%) delete mode 100644 client/docs/ReleaseWhiteList.md delete mode 100644 client/docs/ScanLogList.md delete mode 100644 client/docs/SecretTags.md rename client/docs/{SpotguideOptionsMysqlVersion.md => SpotguideOption.md} (94%) delete mode 100644 client/docs/SpotguideOptionsMonitor.md delete mode 100644 client/docs/SpotguideOptionsMysqlDatabaseName.md delete mode 100644 client/docs/SpotguideOptionsMysqlDatabaseSize.md delete mode 100644 client/docs/VulnerabilityList.md delete mode 100644 client/model_anchore_image_list.go delete mode 100644 client/model_cluster_image_list.go delete mode 100644 client/model_create_amazon_object_store_bucket_properties_amazon.go delete mode 100644 client/model_create_azure_object_store_bucket_properties_azure.go delete mode 100644 client/model_create_google_object_store_bucket_properties_google.go create mode 100644 client/model_create_object_store_bucket_properties.go delete mode 100644 client/model_create_oracle_object_store_bucket_properties_oracle.go delete mode 100644 client/model_deployment_image_list.go delete mode 100644 client/model_deployment_scaling_response.go delete mode 100644 client/model_deployment_scaling_response_inner.go delete mode 100644 client/model_get_deployment_resources_response.go delete mode 100644 client/model_get_deployment_resources_response_inner.go delete mode 100644 client/model_helm_charts_list_response.go delete mode 100644 client/model_helm_charts_list_response_inner.go rename client/{model_amazon_launch_template.go => model_helm_not_found.go} (58%) delete mode 100644 client/model_helm_repos_list_response.go delete mode 100644 client/model_image_content.go delete mode 100644 client/model_list_deployments_response.go delete mode 100644 client/model_list_deployments_response_inner.go delete mode 100644 client/model_list_route_tables_response.go delete mode 100644 client/model_list_spotguides_response.go delete mode 100644 client/model_list_storage_buckets_response.go delete mode 100644 client/model_list_user_response.go delete mode 100644 client/model_list_vpc_networks_response.go delete mode 100644 client/model_list_vpc_subnets_response.go delete mode 100644 client/model_pod_details_response.go delete mode 100644 client/model_policy_bundle_list.go rename client/{model_re_run_post_hook.go => model_post_hooks.go} (94%) delete mode 100644 client/model_release_white_list.go delete mode 100644 client/model_scan_log_list.go delete mode 100644 client/model_secret_tags.go rename client/{model_spotguide_options_mysql_version.go => model_spotguide_option.go} (91%) delete mode 100644 client/model_spotguide_options_monitor.go delete mode 100644 client/model_spotguide_options_mysql_database_name.go delete mode 100644 client/model_spotguide_options_mysql_database_size.go delete mode 100644 client/model_vulnerability_list.go diff --git a/Makefile b/Makefile index 53d0550550..6dc3b1d3af 100644 --- a/Makefile +++ b/Makefile @@ -25,7 +25,7 @@ GOLANGCI_VERSION = 1.10.2 MISSPELL_VERSION = 0.3.4 JQ_VERSION = 1.5 LICENSEI_VERSION = 0.0.7 -OPENAPI_GENERATOR_VERSION = 3.3.0 +OPENAPI_GENERATOR_VERSION = PR1869 MIGRATE_VERSION = 4.0.2 GOTESTSUM_VERSION = 0.3.2 @@ -196,12 +196,12 @@ test-integration: ## Run integration tests .PHONY: validate-openapi validate-openapi: ## Validate the openapi description - docker run --rm -v $${PWD}:/local openapitools/openapi-generator-cli:v${OPENAPI_GENERATOR_VERSION} validate --recommend -i /local/${OPENAPI_DESCRIPTOR} + docker run --rm -v $${PWD}:/local banzaicloud/openapi-generator-cli:${OPENAPI_GENERATOR_VERSION} validate --recommend -i /local/${OPENAPI_DESCRIPTOR} .PHONY: generate-client generate-client: validate-openapi ## Generate go client based on openapi description @ if [[ "$$OSTYPE" == "linux-gnu" ]]; then sudo rm -rf ./client; else rm -rf ./client/; fi - docker run --rm -v $${PWD}:/local openapitools/openapi-generator-cli:v${OPENAPI_GENERATOR_VERSION} generate \ + docker run --rm -v $${PWD}:/local banzaicloud/openapi-generator-cli:${OPENAPI_GENERATOR_VERSION} generate \ --additional-properties packageName=client \ --additional-properties withGoCodegenComment=true \ -i /local/${OPENAPI_DESCRIPTOR} \ diff --git a/client/.openapi-generator/VERSION b/client/.openapi-generator/VERSION index 0fa4ae4890..afa6365606 100644 --- a/client/.openapi-generator/VERSION +++ b/client/.openapi-generator/VERSION @@ -1 +1 @@ -3.3.0 \ No newline at end of file +4.0.0-SNAPSHOT \ No newline at end of file diff --git a/client/README.md b/client/README.md index c6be8feaeb..9277432851 100644 --- a/client/README.md +++ b/client/README.md @@ -47,9 +47,9 @@ Class | Method | HTTP request | Description *ClustersApi* | [**HelmInit**](docs/ClustersApi.md#helminit) | **Post** /api/v1/orgs/{orgId}/clusters/{id}/helminit | Initialize Helm *ClustersApi* | [**InstallSecret**](docs/ClustersApi.md#installsecret) | **Post** /api/v1/orgs/{orgId}/clusters/{id}/secrets/{secretName} | Install a particular secret into a cluster with optional remapping *ClustersApi* | [**InstallSecrets**](docs/ClustersApi.md#installsecrets) | **Post** /api/v1/orgs/{orgId}/clusters/{id}/secrets | Install secrets into cluster +*ClustersApi* | [**ListClusterEndpoints**](docs/ClustersApi.md#listclusterendpoints) | **Get** /api/v1/orgs/{orgId}/clusters/{id}/endpoints | List service public endpoints *ClustersApi* | [**ListClusterSecrets**](docs/ClustersApi.md#listclustersecrets) | **Get** /api/v1/orgs/{orgId}/clusters/{id}/secrets | List secrets which belongs to cluster *ClustersApi* | [**ListClusters**](docs/ClustersApi.md#listclusters) | **Get** /api/v1/orgs/{orgId}/clusters | List clusters -*ClustersApi* | [**ListEndpoints**](docs/ClustersApi.md#listendpoints) | **Get** /api/v1/orgs/{orgId}/clusters/{id}/endpoints | List service public endpoints *ClustersApi* | [**ListNodes**](docs/ClustersApi.md#listnodes) | **Get** /api/v1/orgs/{orgId}/clusters/{id}/nodes | List cluser nodes *ClustersApi* | [**MergeSecret**](docs/ClustersApi.md#mergesecret) | **Patch** /api/v1/orgs/{orgId}/clusters/{id}/secrets/{secretName} | Merge a particular secret with an existing one with optional remapping *ClustersApi* | [**PostReadyPKENode**](docs/ClustersApi.md#postreadypkenode) | **Post** /api/v1/orgs/{orgId}/clusters/{id}/pke/ready | List bootstrap commands for namespaces @@ -68,7 +68,7 @@ Class | Method | HTTP request | Description *DomainApi* | [**GetDomain**](docs/DomainApi.md#getdomain) | **Get** /api/v1/orgs/{orgId}/domain | *HelmApi* | [**HelmChartDetails**](docs/HelmApi.md#helmchartdetails) | **Get** /api/v1/orgs/{orgId}/helm/chart/{repoName}/{chartName} | Chart details *HelmApi* | [**HelmChartList**](docs/HelmApi.md#helmchartlist) | **Get** /api/v1/orgs/{orgId}/helm/charts/ | Chart List -*HelmApi* | [**HelmInit**](docs/HelmApi.md#helminit) | **Get** /api/v1/orgs/{orgId}/helm/repos | List repositories +*HelmApi* | [**HelmListRepos**](docs/HelmApi.md#helmlistrepos) | **Get** /api/v1/orgs/{orgId}/helm/repos | List repositories *HelmApi* | [**HelmReposAdd**](docs/HelmApi.md#helmreposadd) | **Post** /api/v1/orgs/{orgId}/helm/repos | Add Repo *HelmApi* | [**HelmReposDelete**](docs/HelmApi.md#helmreposdelete) | **Delete** /api/v1/orgs/{orgId}/helm/repos/{repoName} | Delete Repo *HelmApi* | [**HelmReposModify**](docs/HelmApi.md#helmreposmodify) | **Put** /api/v1/orgs/{orgId}/helm/repos/{repoName} | Modify Repo @@ -149,10 +149,8 @@ Class | Method | HTTP request | Description - [AmazonConfigResponse](docs/AmazonConfigResponse.md) - [AmazonConfigResponseImage](docs/AmazonConfigResponseImage.md) - [AmazonConfigResponseInstanceType](docs/AmazonConfigResponseInstanceType.md) - - [AmazonLaunchTemplate](docs/AmazonLaunchTemplate.md) - [AmazonPoviderConfig](docs/AmazonPoviderConfig.md) - [AnchoreImage](docs/AnchoreImage.md) - - [AnchoreImageList](docs/AnchoreImageList.md) - [AzureBlobStorageProps](docs/AzureBlobStorageProps.md) - [AzureConfigResponse](docs/AzureConfigResponse.md) - [AzureConfigResponseInstanceType](docs/AzureConfigResponseInstanceType.md) @@ -166,7 +164,6 @@ Class | Method | HTTP request | Description - [ClusterConfig](docs/ClusterConfig.md) - [ClusterDelete200](docs/ClusterDelete200.md) - [ClusterImage](docs/ClusterImage.md) - - [ClusterImageList](docs/ClusterImageList.md) - [ClusterNotFound](docs/ClusterNotFound.md) - [ClusterProfileAks](docs/ClusterProfileAks.md) - [ClusterProfileAksAks](docs/ClusterProfileAksAks.md) @@ -182,9 +179,7 @@ Class | Method | HTTP request | Description - [CreateAksProperties](docs/CreateAksProperties.md) - [CreateAksPropertiesAks](docs/CreateAksPropertiesAks.md) - [CreateAmazonObjectStoreBucketProperties](docs/CreateAmazonObjectStoreBucketProperties.md) - - [CreateAmazonObjectStoreBucketPropertiesAmazon](docs/CreateAmazonObjectStoreBucketPropertiesAmazon.md) - [CreateAzureObjectStoreBucketProperties](docs/CreateAzureObjectStoreBucketProperties.md) - - [CreateAzureObjectStoreBucketPropertiesAzure](docs/CreateAzureObjectStoreBucketPropertiesAzure.md) - [CreateClusterRequest](docs/CreateClusterRequest.md) - [CreateClusterResponse202](docs/CreateClusterResponse202.md) - [CreateClusterResponse400](docs/CreateClusterResponse400.md) @@ -194,11 +189,10 @@ Class | Method | HTTP request | Description - [CreateGkePropertiesGke](docs/CreateGkePropertiesGke.md) - [CreateGkePropertiesGkeMaster](docs/CreateGkePropertiesGkeMaster.md) - [CreateGoogleObjectStoreBucketProperties](docs/CreateGoogleObjectStoreBucketProperties.md) - - [CreateGoogleObjectStoreBucketPropertiesGoogle](docs/CreateGoogleObjectStoreBucketPropertiesGoogle.md) + - [CreateObjectStoreBucketProperties](docs/CreateObjectStoreBucketProperties.md) - [CreateObjectStoreBucketRequest](docs/CreateObjectStoreBucketRequest.md) - [CreateObjectStoreBucketResponse](docs/CreateObjectStoreBucketResponse.md) - [CreateOracleObjectStoreBucketProperties](docs/CreateOracleObjectStoreBucketProperties.md) - - [CreateOracleObjectStoreBucketPropertiesOracle](docs/CreateOracleObjectStoreBucketPropertiesOracle.md) - [CreatePkeProperties](docs/CreatePkeProperties.md) - [CreatePkePropertiesClusterTopology](docs/CreatePkePropertiesClusterTopology.md) - [CreatePkePropertiesClusterTopologyCri](docs/CreatePkePropertiesClusterTopologyCri.md) @@ -215,19 +209,14 @@ Class | Method | HTTP request | Description - [CustomMetric](docs/CustomMetric.md) - [CustomMetricStatus](docs/CustomMetricStatus.md) - [DeleteDeploymentResponse](docs/DeleteDeploymentResponse.md) - - [DeploymentImageList](docs/DeploymentImageList.md) - [DeploymentScaleStatus](docs/DeploymentScaleStatus.md) - [DeploymentScalingRequest](docs/DeploymentScalingRequest.md) - - [DeploymentScalingResponse](docs/DeploymentScalingResponse.md) - - [DeploymentScalingResponseInner](docs/DeploymentScalingResponseInner.md) - [EksSubnet](docs/EksSubnet.md) - [EksVpc](docs/EksVpc.md) - [EndpointItem](docs/EndpointItem.md) - [GenTlsForLogging](docs/GenTlsForLogging.md) - [GetClusterBootstrapResponse](docs/GetClusterBootstrapResponse.md) - [GetClusterStatusResponse](docs/GetClusterStatusResponse.md) - - [GetDeploymentResourcesResponse](docs/GetDeploymentResourcesResponse.md) - - [GetDeploymentResourcesResponseInner](docs/GetDeploymentResourcesResponseInner.md) - [GetDeploymentResponse](docs/GetDeploymentResponse.md) - [GetDomainResponse](docs/GetDomainResponse.md) - [GetPkeCommandsResponse](docs/GetPkeCommandsResponse.md) @@ -238,17 +227,14 @@ Class | Method | HTTP request | Description - [HelmChartDetailsResponseChart](docs/HelmChartDetailsResponseChart.md) - [HelmChartDetailsResponseChartMaintainers](docs/HelmChartDetailsResponseChartMaintainers.md) - [HelmChartDetailsResponseVersions](docs/HelmChartDetailsResponseVersions.md) - - [HelmChartsListResponse](docs/HelmChartsListResponse.md) - - [HelmChartsListResponseInner](docs/HelmChartsListResponseInner.md) - [HelmInitRequest](docs/HelmInitRequest.md) - [HelmInitResponse](docs/HelmInitResponse.md) + - [HelmNotFound](docs/HelmNotFound.md) - [HelmRepoListItem](docs/HelmRepoListItem.md) - [HelmReposAddRequest](docs/HelmReposAddRequest.md) - [HelmReposDeleteResponse](docs/HelmReposDeleteResponse.md) - - [HelmReposListResponse](docs/HelmReposListResponse.md) - [HelmReposModifyRequest](docs/HelmReposModifyRequest.md) - [HelmReposUpdateResponse](docs/HelmReposUpdateResponse.md) - - [ImageContent](docs/ImageContent.md) - [ImageDetail](docs/ImageDetail.md) - [ImageRef](docs/ImageRef.md) - [ImageSelectionRule](docs/ImageSelectionRule.md) @@ -258,18 +244,10 @@ Class | Method | HTTP request | Description - [InstallSecretsRequest](docs/InstallSecretsRequest.md) - [InstallSecretsRequestQuery](docs/InstallSecretsRequestQuery.md) - [LaunchSpotguidesRequest](docs/LaunchSpotguidesRequest.md) - - [ListDeploymentsResponse](docs/ListDeploymentsResponse.md) - - [ListDeploymentsResponseInner](docs/ListDeploymentsResponseInner.md) - [ListEndpointsResponse](docs/ListEndpointsResponse.md) - [ListNodesResponse](docs/ListNodesResponse.md) - [ListNodesResponseMetadata](docs/ListNodesResponseMetadata.md) - [ListProjectsResponse](docs/ListProjectsResponse.md) - - [ListRouteTablesResponse](docs/ListRouteTablesResponse.md) - - [ListSpotguidesResponse](docs/ListSpotguidesResponse.md) - - [ListStorageBucketsResponse](docs/ListStorageBucketsResponse.md) - - [ListUserResponse](docs/ListUserResponse.md) - - [ListVpcNetworksResponse](docs/ListVpcNetworksResponse.md) - - [ListVpcSubnetsResponse](docs/ListVpcSubnetsResponse.md) - [LoggingPostHook](docs/LoggingPostHook.md) - [LoggingPostHookInstallLogging](docs/LoggingPostHookInstallLogging.md) - [MappingRule](docs/MappingRule.md) @@ -301,20 +279,17 @@ Class | Method | HTTP request | Description - [OrganizationNotFound](docs/OrganizationNotFound.md) - [PkeHosts](docs/PkeHosts.md) - [PodCondition](docs/PodCondition.md) - - [PodDetailsResponse](docs/PodDetailsResponse.md) - [PodItem](docs/PodItem.md) - [PodItemLabels](docs/PodItemLabels.md) - [Policy](docs/Policy.md) - [PolicyBundle](docs/PolicyBundle.md) - - [PolicyBundleList](docs/PolicyBundleList.md) - [PolicyBundleRecord](docs/PolicyBundleRecord.md) - [PolicyRule](docs/PolicyRule.md) - [PolicyRuleParams](docs/PolicyRuleParams.md) + - [PostHooks](docs/PostHooks.md) - [PostReadyPkeNodeRequest](docs/PostReadyPkeNodeRequest.md) - [ProfileListResponse](docs/ProfileListResponse.md) - [ProjectDetails](docs/ProjectDetails.md) - - [ReRunPostHook](docs/ReRunPostHook.md) - - [ReleaseWhiteList](docs/ReleaseWhiteList.md) - [ReleaseWhiteListItem](docs/ReleaseWhiteListItem.md) - [RepoNotFound](docs/RepoNotFound.md) - [RequestedResources](docs/RequestedResources.md) @@ -326,7 +301,6 @@ Class | Method | HTTP request | Description - [RouteTableInfo](docs/RouteTableInfo.md) - [ScanLogItem](docs/ScanLogItem.md) - [ScanLogItemImage](docs/ScanLogItemImage.md) - - [ScanLogList](docs/ScanLogList.md) - [SecretItem](docs/SecretItem.md) - [SecretKeyValueAmazon](docs/SecretKeyValueAmazon.md) - [SecretKeyValueAzure](docs/SecretKeyValueAzure.md) @@ -335,16 +309,12 @@ Class | Method | HTTP request | Description - [SecretKeyValueKubernetes](docs/SecretKeyValueKubernetes.md) - [SecretKeyValueOracle](docs/SecretKeyValueOracle.md) - [SecretKeyValueTls](docs/SecretKeyValueTls.md) - - [SecretTags](docs/SecretTags.md) - [SecretsNotFound](docs/SecretsNotFound.md) - [ServiceMeshPostHook](docs/ServiceMeshPostHook.md) - [ServiceMeshPostHookInstallServiceMesh](docs/ServiceMeshPostHookInstallServiceMesh.md) - [SpotguideDetailsResponse](docs/SpotguideDetailsResponse.md) - [SpotguideNotFound](docs/SpotguideNotFound.md) - - [SpotguideOptionsMonitor](docs/SpotguideOptionsMonitor.md) - - [SpotguideOptionsMysqlDatabaseName](docs/SpotguideOptionsMysqlDatabaseName.md) - - [SpotguideOptionsMysqlDatabaseSize](docs/SpotguideOptionsMysqlDatabaseSize.md) - - [SpotguideOptionsMysqlVersion](docs/SpotguideOptionsMysqlVersion.md) + - [SpotguideOption](docs/SpotguideOption.md) - [SubnetInfo](docs/SubnetInfo.md) - [SupportedCloudItem](docs/SupportedCloudItem.md) - [SupportedCloudsResponse](docs/SupportedCloudsResponse.md) @@ -369,7 +339,6 @@ Class | Method | HTTP request | Description - [User](docs/User.md) - [VpcNetworkInfo](docs/VpcNetworkInfo.md) - [Vulnerability](docs/Vulnerability.md) - - [VulnerabilityList](docs/VulnerabilityList.md) - [VulnerabilityResponse](docs/VulnerabilityResponse.md) - [Whitelist](docs/Whitelist.md) - [WhitelistItem](docs/WhitelistItem.md) diff --git a/client/SHA256SUMS b/client/SHA256SUMS index be6adfbd54..b1733a887f 100644 --- a/client/SHA256SUMS +++ b/client/SHA256SUMS @@ -1 +1 @@ -1b4cd0962774889cc308a86da416d0eef536d61b6e6d93615e8d3c185112ae3f docs/openapi/pipeline.yaml +5f188ff5e87bc81c83bf8758b96eb983510e3c5ab6167e0b4af8fbe2499b40ae docs/openapi/pipeline.yaml diff --git a/client/api/openapi.yaml b/client/api/openapi.yaml index f5f36a2607..5ca5ec2be2 100644 --- a/client/api/openapi.yaml +++ b/client/api/openapi.yaml @@ -775,7 +775,7 @@ paths: /api/v1/orgs/{orgId}/clusters/{id}/endpoints: get: description: List service public endpoints - operationId: ListEndpoints + operationId: ListClusterEndpoints parameters: - description: Organization identification explode: false @@ -1553,7 +1553,7 @@ paths: /api/v1/orgs/{orgId}/helm/repos: get: description: Listing Helm repositories in the cluster - operationId: HelmInit + operationId: HelmListRepos parameters: - description: Organization identification explode: false @@ -1745,9 +1745,7 @@ paths: content: application/json: schema: - oneOf: - - $ref: '#/components/schemas/ClusterNotFound' - - $ref: '#/components/schemas/RepoNotFound' + $ref: '#/components/schemas/HelmNotFound' description: Resource found security: - bearerAuth: [] @@ -1799,9 +1797,7 @@ paths: content: application/json: schema: - oneOf: - - $ref: '#/components/schemas/ClusterNotFound' - - $ref: '#/components/schemas/RepoNotFound' + $ref: '#/components/schemas/HelmNotFound' description: Resource found security: - bearerAuth: [] @@ -5462,8 +5458,18 @@ components: displayName: The spotguide for NodeJS and MongoDB name: banzaicloud/spotguide-nodejs-mongodb questions: - - "" - - "" + - default: "5.6" + readonly: true + name: mysql_version + type: string + key: mysql.version + info: Mysql database version + - default: "5.6" + readonly: true + name: mysql_version + type: string + key: mysql.version + info: Mysql database version resources: onDemandPct: 10 sumMem: 32 @@ -5507,11 +5513,7 @@ components: $ref: '#/components/schemas/RequestedResources' questions: items: - oneOf: - - $ref: '#/components/schemas/SpotguideOptionsMysqlDatabaseName' - - $ref: '#/components/schemas/SpotguideOptionsMysqlDatabaseSize' - - $ref: '#/components/schemas/SpotguideOptionsMysqlVersion' - - $ref: '#/components/schemas/SpotguideOptionsMonitor' + $ref: '#/components/schemas/SpotguideOption' type: array type: object LaunchSpotguidesRequest: @@ -5612,52 +5614,14 @@ components: - repoOrganization - spotguideName type: object - SpotguideOptionsMysqlDatabaseName: - properties: - name: - example: mysqlDatabaseName - type: string - type: - example: string - type: string - info: - example: Your mysql database name - type: string - default: - example: your-mysql-database1 - type: string - readonly: - type: boolean - enabled: - type: boolean - key: - example: mysql.database.name - type: string - type: object - SpotguideOptionsMysqlDatabaseSize: - properties: - name: - example: mysqlDatabaseSize - type: string - type: - example: string - type: string - info: - example: Your mysql database size in GB - type: string - default: - example: 1 - format: int32 - type: integer - readonly: - type: boolean - enabled: - type: boolean - key: - example: mysql.database.size - type: string - type: object - SpotguideOptionsMysqlVersion: + SpotguideOption: + example: + default: "5.6" + readonly: true + name: mysql_version + type: string + key: mysql.version + info: Mysql database version properties: name: example: mysql_version @@ -5680,24 +5644,6 @@ components: example: mysql.version type: string type: object - SpotguideOptionsMonitor: - properties: - name: - example: monitor - type: string - type: - type: boolean - info: - example: Mysql monitoring - type: string - default: - type: boolean - readonly: - type: boolean - key: - example: monitor.enabled - type: string - type: object SpotguideNotFound: properties: code: @@ -5713,8 +5659,7 @@ components: type: object ListSpotguidesResponse: items: - oneOf: - - $ref: '#/components/schemas/SpotguideDetailsResponse' + $ref: '#/components/schemas/SpotguideDetailsResponse' type: array GetDomainResponse: description: GetDomainResponse Api object to be mapped to Get domain request @@ -5825,10 +5770,6 @@ components: bucketName: mybucketname region: region secretId: 62bc3c75-91fb-4670-bad4-24b401a9deac - oneOf: - - $ref: '#/components/schemas/LoggingPostHook' - - $ref: '#/components/schemas/BasePostHook' - - $ref: '#/components/schemas/ServiceMeshPostHook' type: object profileName: type: string @@ -5842,13 +5783,6 @@ components: count: 1 instanceType: n1-standard-2 nodeVersion: 1.8.7-gke.1 - oneOf: - - $ref: '#/components/schemas/CreateAKSProperties' - - $ref: '#/components/schemas/CreateGKEProperties' - - $ref: '#/components/schemas/CreateEKSProperties' - - $ref: '#/components/schemas/CreateUpdateOKEProperties' - - $ref: '#/components/schemas/CreateACKProperties' - - $ref: '#/components/schemas/CreatePKEProperties' type: object required: - cloud @@ -6042,8 +5976,6 @@ components: example: amazon type: string providerConfig: - oneOf: - - $ref: '#/components/schemas/AmazonPoviderConfig' type: object hosts: items: @@ -6104,7 +6036,7 @@ components: example: distrMaster type: string launchTemplate: - $ref: '#/components/schemas/AmazonLaunchTemplate' + type: object vpcID: example: vpc-0deb755857f5ef79d type: string @@ -6203,6 +6135,10 @@ components: example: Error during process type: string type: object + HelmNotFound: + oneOf: + - $ref: '#/components/schemas/ClusterNotFound' + - $ref: '#/components/schemas/RepoNotFound' ClusterNotFound: properties: code: @@ -6296,12 +6232,6 @@ components: pool1: count: 2 instanceType: n1-standard-2 - oneOf: - - $ref: '#/components/schemas/UpdateAzureProperties' - - $ref: '#/components/schemas/UpdateGoogleProperties' - - $ref: '#/components/schemas/UpdateEksProperties' - - $ref: '#/components/schemas/CreateUpdateOKEProperties' - - $ref: '#/components/schemas/UpdateACKProperties' type: object required: - cloud @@ -6746,7 +6676,38 @@ components: type: object ListDeploymentsResponse: items: - $ref: '#/components/schemas/ListDeploymentsResponse_inner' + properties: + releaseName: + example: pipeline + type: string + chart: + example: pipeline-cluster-ingress-0.0.1 + type: string + chartName: + example: pipeline-cluster-ingress + type: string + chartVersion: + example: 0.0.1 + type: string + version: + example: 1 + format: int32 + type: integer + updatedAt: + example: 2018-07-03T14:23:19+02:00 + type: string + status: + example: DEPLOYED + type: string + namespace: + example: default + type: string + createdAt: + example: 2018-07-03T14:23:19+02:00 + type: string + supported: + type: boolean + type: object type: array CreateUpdateDeploymentRequest: example: @@ -6842,7 +6803,14 @@ components: type: object GetDeploymentResourcesResponse: items: - $ref: '#/components/schemas/GetDeploymentResourcesResponse_inner' + properties: + name: + example: bumptious-dragon-zeppelin + type: string + kind: + example: Deployment + type: string + type: object type: array GetDeploymentResponse: example: @@ -7037,7 +7005,80 @@ components: type: object HelmChartsListResponse: items: - $ref: '#/components/schemas/HelmChartsListResponse_inner' + properties: + name: + example: stable + type: string + charts: + items: + items: + properties: + name: + example: nginx-ingress + type: string + home: + example: https://github.com/kubernetes/ingress-nginx + type: string + sources: + example: + - https://github.com/kubernetes/ingress-nginx + items: + type: string + type: array + version: + example: 0.13.1 + type: string + description: + example: An nginx Ingress controller that uses ConfigMap to store the nginx configuration. + type: string + keywords: + example: + - ingress, nginx + items: + type: string + type: array + maintainers: + items: + properties: + name: + example: jackzampolin + type: string + email: + example: jack.zampolin@gmail.com + type: string + type: object + type: array + engine: + example: gotpl + type: string + icon: + example: https://upload.wikimedia.org/wikipedia/commons/thumb/c/c5/Nginx_logo.svg/500px-Nginx_logo.svg.png + type: string + appVersion: + example: 0.12.0 + type: string + apiVersion: + example: v1 + type: string + deprecated: + example: false + type: boolean + urls: + example: + - https://kubernetes-charts.storage.googleapis.com/nginx-ingress-0.13.1.tgz + items: + type: string + type: array + created: + example: 2018-04-11T18:11:24.761440762Z + type: string + digest: + example: cf66d1666019b3e1647ba4dbc06a66ee7db1184629ae3669e11a9f72208eb7aa + type: string + type: object + type: array + type: array + type: object type: array HelmChartDetailsResponse: example: @@ -7214,10 +7255,6 @@ components: pool1: count: 1 instanceType: n1-standard-1 - oneOf: - - $ref: '#/components/schemas/ClusterProfileEKS' - - $ref: '#/components/schemas/ClusterProfileAKS' - - $ref: '#/components/schemas/ClusterProfileGKE' type: object type: object ClusterProfileEKS: @@ -7269,11 +7306,6 @@ components: pool1: count: 1 instanceType: n1-standard-1 - oneOf: - - $ref: '#/components/schemas/AddClusterProfileEKS' - - $ref: '#/components/schemas/AddClusterProfileAKS' - - $ref: '#/components/schemas/AddClusterProfileGKE' - - $ref: '#/components/schemas/CreateUpdateOKEProperties' type: object type: object AddClusterProfileEKS: @@ -7305,6 +7337,7 @@ components: type: string expiresAt: format: date-time + nullable: true type: string type: object TokenCreateResponse: @@ -7499,15 +7532,6 @@ components: token_uri: string auth_provider_x509_cert_url: string client_x509_cert_url: string - oneOf: - - $ref: '#/components/schemas/SecretKeyValueAmazon' - - $ref: '#/components/schemas/SecretKeyValueAzure' - - $ref: '#/components/schemas/SecretKeyValueGoogle' - - $ref: '#/components/schemas/SecretKeyValueOracle' - - $ref: '#/components/schemas/SecretKeyValueKubernetes' - - $ref: '#/components/schemas/SecretKeyValueGeneric' - - $ref: '#/components/schemas/SecretKeyValueTLS' - type: object required: - name - type @@ -8038,7 +8062,17 @@ components: secretName: my-aws-secret name: mybucket secretId: secretId - properties: "" + properties: + alibaba: + location: eu-west-1 + oracle: + location: location + google: + location: europe + azure: + resourceGroup: resourceGroup + location: westeurope + storageAccount: mystorageaccount properties: secretId: type: string @@ -8049,34 +8083,84 @@ components: example: mybucket type: string properties: - oneOf: - - $ref: '#/components/schemas/CreateAmazonObjectStoreBucketProperties' - - $ref: '#/components/schemas/CreateAzureObjectStoreBucketProperties' - - $ref: '#/components/schemas/CreateGoogleObjectStoreBucketProperties' - - $ref: '#/components/schemas/CreateOracleObjectStoreBucketProperties' + $ref: '#/components/schemas/CreateObjectStoreBucketProperties' required: - name - properties type: object + CreateObjectStoreBucketProperties: + example: + alibaba: + location: eu-west-1 + oracle: + location: location + google: + location: europe + azure: + resourceGroup: resourceGroup + location: westeurope + storageAccount: mystorageaccount + properties: + alibaba: + $ref: '#/components/schemas/CreateAmazonObjectStoreBucketProperties' + azure: + $ref: '#/components/schemas/CreateAzureObjectStoreBucketProperties' + google: + $ref: '#/components/schemas/CreateGoogleObjectStoreBucketProperties' + oracle: + $ref: '#/components/schemas/CreateOracleObjectStoreBucketProperties' + type: object CreateAmazonObjectStoreBucketProperties: + example: + location: eu-west-1 + nullable: true properties: - amazon: - $ref: '#/components/schemas/CreateAmazonObjectStoreBucketProperties_amazon' + location: + example: eu-west-1 + type: string + required: + - location type: object CreateGoogleObjectStoreBucketProperties: + example: + location: europe + nullable: true properties: - google: - $ref: '#/components/schemas/CreateGoogleObjectStoreBucketProperties_google' + location: + example: europe + type: string + required: + - location type: object CreateAzureObjectStoreBucketProperties: + example: + resourceGroup: resourceGroup + location: westeurope + storageAccount: mystorageaccount + nullable: true properties: - azure: - $ref: '#/components/schemas/CreateAzureObjectStoreBucketProperties_azure' + storageAccount: + example: mystorageaccount + type: string + location: + example: westeurope + type: string + resourceGroup: + type: string + required: + - location + - resourceGroup + - storageAccount type: object CreateOracleObjectStoreBucketProperties: + example: + location: location + nullable: true properties: - oracle: - $ref: '#/components/schemas/CreateOracleObjectStoreBucketProperties_oracle' + location: + type: string + required: + - location type: object CreateObjectStoreBucketResponse: example: @@ -8153,6 +8237,13 @@ components: $ref: '#/components/schemas/BucketInfo' type: array SubnetInfo: + example: + name: MySubnet + location: us-central1-a + cidrs: + - 10.0.1.0/24 + - 10.0.1.0/24 + id: subnet-9d4a7b6c properties: cidrs: description: The IPv4 CIDR blocks assigned to the subnet @@ -8181,6 +8272,9 @@ components: $ref: '#/components/schemas/SubnetInfo' type: array RouteTableInfo: + example: + name: My little route table + id: rtb-12345678 properties: id: description: Identifier of the route table @@ -8198,6 +8292,12 @@ components: $ref: '#/components/schemas/RouteTableInfo' type: array VPCNetworkInfo: + example: + name: MyVPC + cidrs: + - 10.50.0.0/16 + - 10.50.0.0/16 + id: vpc-a01106c2 properties: cidrs: description: The IPv4 CIDR blocks assigned to the VPC network @@ -8239,6 +8339,35 @@ components: $ref: '#/components/schemas/PodItem' type: array PodItem: + example: + createdAt: 2018-08-01T09:04:33+02:00 + resourceSummary: + memory: + allocatable: "4" + request: 380m + limit: 100m + capacity: "4" + cpu: + allocatable: "4" + request: 380m + limit: 100m + capacity: "4" + name: pipeline-traefik-7c47dc7bd7-twzpl + namespace: default + conditions: + - type: Initialized + lastTransitionTime: 2018-08-01T07:04:37Z + status: True + lastProbeTime: lastProbeTime + - type: Initialized + lastTransitionTime: 2018-08-01T07:04:37Z + status: True + lastProbeTime: lastProbeTime + restartPolicy: Always + labels: + app: pipeline-traefik + release: pipeline + chart: traefik-1.14.2 properties: name: example: pipeline-traefik-7c47dc7bd7-twzpl @@ -8262,6 +8391,11 @@ components: $ref: '#/components/schemas/ResourceSummary' type: object PodCondition: + example: + type: Initialized + lastTransitionTime: 2018-08-01T07:04:37Z + status: True + lastProbeTime: lastProbeTime properties: type: example: Initialized @@ -8276,6 +8410,17 @@ components: type: string type: object ResourceSummary: + example: + memory: + allocatable: "4" + request: 380m + limit: 100m + capacity: "4" + cpu: + allocatable: "4" + request: 380m + limit: 100m + capacity: "4" properties: cpu: $ref: '#/components/schemas/Resource' @@ -8283,6 +8428,11 @@ components: $ref: '#/components/schemas/Resource' type: object Resource: + example: + allocatable: "4" + request: 380m + limit: 100m + capacity: "4" properties: capacity: example: "4" @@ -8312,6 +8462,11 @@ components: InstallServiceMesh: $ref: '#/components/schemas/ServiceMeshPostHook_InstallServiceMesh' type: object + PostHooks: + oneOf: + - $ref: '#/components/schemas/LoggingPostHook' + - $ref: '#/components/schemas/BasePostHook' + - $ref: '#/components/schemas/ServiceMeshPostHook' ReRunPostHook: example: InstallLogging: @@ -8323,10 +8478,6 @@ components: genTlsSecretName: loggingSecret namespace: default tlsHost: fluent - oneOf: - - $ref: '#/components/schemas/LoggingPostHook' - - $ref: '#/components/schemas/BasePostHook' - - $ref: '#/components/schemas/ServiceMeshPostHook' type: object GenTLSForLogging: properties: @@ -8470,7 +8621,37 @@ components: the HPA was able to succesfully calculate a replica count from memory resource' items: - $ref: '#/components/schemas/DeploymentScalingResponse_inner' + properties: + scaleTarget: + example: k8sDeploymentName + type: string + kind: + example: Deployment + type: string + minReplicas: + example: 1 + format: int32 + type: integer + maxReplicas: + example: 3 + format: int32 + type: integer + cpu: + $ref: '#/components/schemas/ResourceMetricStatus' + memory: + $ref: '#/components/schemas/ResourceMetricStatus' + customMetrics: + additionalProperties: + $ref: '#/components/schemas/CustomMetricStatus' + example: + custom_metric_name: + type: pod + targetAverageValue: 700m + currentAverageValue: 300m + type: object + status: + $ref: '#/components/schemas/DeploymentScaleStatus' + type: object title: Get Deployment Scaling Response type: array ResourceMetricStatus: @@ -8515,6 +8696,22 @@ components: $ref: '#/components/schemas/ScanLogItem' type: array ScanLogItem: + example: + result: + - nginx:latest policy check failed + - busybox:latest policy sheck success + image: + - lastUpdated: 2018-11-11T14:35:38Z + imageName: docker.io/redis + imageTag: latest + imageDigest: sha256:93ce9120377effb33fc8ab25cc5fb6ab736982aa4524adb89324c031e47b33ac + - lastUpdated: 2018-11-11T14:35:38Z + imageName: docker.io/redis + imageTag: latest + imageDigest: sha256:93ce9120377effb33fc8ab25cc5fb6ab736982aa4524adb89324c031e47b33ac + resource: banzaicloud + releaseName: flying-monkey + action: allow properties: releaseName: example: flying-monkey @@ -8541,6 +8738,11 @@ components: type: string type: object ScanLogItemImage: + example: + lastUpdated: 2018-11-11T14:35:38Z + imageName: docker.io/redis + imageTag: latest + imageDigest: sha256:93ce9120377effb33fc8ab25cc5fb6ab736982aa4524adb89324c031e47b33ac properties: imageName: example: docker.io/redis @@ -9195,6 +9397,10 @@ components: $ref: '#/components/schemas/ClusterImage' type: array ClusterImage: + example: + imageName: docker.io/alpine + imageTag: latest + imageDigest: imageDigest properties: imageName: example: docker.io/alpine @@ -9212,6 +9418,7 @@ components: AnchoreImage: description: A unique image in the engine. May have multiple tags or references. Unique to an image content across registries or repositories. example: + imageContent: '{}' imageDetail: - createdAt: 2000-01-23T04:56:07.000+00:00 lastUpdated: 2000-01-23T04:56:07.000+00:00 @@ -9241,7 +9448,8 @@ components: imageDigest: imageDigest properties: imageContent: - $ref: '#/components/schemas/ImageContent' + description: A metadata content record for a specific image, containing different content type entries + type: object imageDetail: description: Details specific to an image reference and type such as tag and image source items: @@ -9274,6 +9482,19 @@ components: type: string type: object Vulnerability: + example: + severity: severity + packagePath: packagePath + feed: feed + package: package + feedGroup: feedGroup + fix: fix + vuln: vuln + packageVersion: packageVersion + packageName: packageName + packageType: packageType + packageCpe: packageCpe + url: url properties: vuln: description: The vulnerability identifier, such as CVE-2017-100, or RHSA-2017123 @@ -9320,6 +9541,31 @@ components: VulnerabilityResponse: description: envelope containing list of vulnerabilities example: + vulnerabilities: + - severity: severity + packagePath: packagePath + feed: feed + package: package + feedGroup: feedGroup + fix: fix + vuln: vuln + packageVersion: packageVersion + packageName: packageName + packageType: packageType + packageCpe: packageCpe + url: url + - severity: severity + packagePath: packagePath + feed: feed + package: package + feedGroup: feedGroup + fix: fix + vuln: vuln + packageVersion: packageVersion + packageName: packageName + packageType: packageType + packageCpe: packageCpe + url: url vulnerabilityType: vulnerabilityType imageDigest: imageDigest properties: @@ -9328,7 +9574,10 @@ components: vulnerabilityType: type: string vulnerabilities: - $ref: '#/components/schemas/VulnerabilityList' + description: List of Vulnerability objects + items: + $ref: '#/components/schemas/Vulnerability' + type: array type: object ListProjectsResponse: description: wraps a list of project details information @@ -9427,10 +9676,10 @@ components: type: string master: description: if this node is a master node - type: bool + type: boolean worker: description: if this node is a worker node - type: bool + type: boolean type: object CreateEKSProperties_eks: properties: @@ -9450,7 +9699,8 @@ components: items: $ref: '#/components/schemas/EKSSubnet' type: array - type: object + required: + - nodePools CreateACKProperties_acsk: properties: regionId: @@ -9464,7 +9714,10 @@ components: additionalProperties: $ref: '#/components/schemas/NodePoolsACK' type: object - type: object + required: + - nodePools + - regionId + - zoneId CreateAKSProperties_aks: properties: resourceGroup: @@ -9480,13 +9733,15 @@ components: vnetSubnetID: example: /subscriptions/12345678-1234-5678-1234-123456789abc/resourceGroups/your-resource-group-name/providers/Microsoft.Network/virtualNetworks/your-vnet-name/subnets/your-vnet-subnet-name type: string - type: object + required: + - kubernetesVersion + - nodePools + - resourceGroup CreateGKEProperties_gke_master: properties: version: example: "1.10" type: string - type: object CreateGKEProperties_gke: properties: projectId: @@ -9507,7 +9762,8 @@ components: additionalProperties: $ref: '#/components/schemas/NodePoolsGoogle' type: object - type: object + required: + - nodePools CreateUpdateOKEProperties_oke: properties: version: @@ -9517,7 +9773,9 @@ components: additionalProperties: $ref: '#/components/schemas/NodePoolsOracle' type: object - type: object + required: + - nodePools + - version CreatePKEProperties_clusterTopology_network: properties: apiServerAddress: @@ -9532,12 +9790,17 @@ components: provider: example: weave type: string - type: object + required: + - apiServerAddress + - podCIDR + - provider + - serviceCIDR CreatePKEProperties_clusterTopology_kubernetes_rbac: properties: enabled: type: boolean - type: object + required: + - enabled CreatePKEProperties_clusterTopology_kubernetes: properties: version: @@ -9545,13 +9808,16 @@ components: type: string rbac: $ref: '#/components/schemas/CreatePKEProperties_clusterTopology_kubernetes_rbac' - type: object + required: + - rbac + - version CreatePKEProperties_clusterTopology_cri: properties: runtime: example: containerd type: string - type: object + required: + - runtime CreatePKEProperties_clusterTopology: properties: network: @@ -9564,7 +9830,11 @@ components: $ref: '#/components/schemas/CreatePKEProperties_clusterTopology_kubernetes' cri: $ref: '#/components/schemas/CreatePKEProperties_clusterTopology_cri' - type: object + required: + - cri + - kubernetes + - network + - nodePools AmazonAutoScalingGroup_size: properties: min: @@ -9575,33 +9845,35 @@ components: example: 1 format: int32 type: integer - type: object + required: + - max + - min UpdateEksProperties_eks: properties: nodePools: additionalProperties: $ref: '#/components/schemas/UpdateNodePoolsEks' type: object - type: object + required: + - nodePools UpdateACKProperties_acsk: properties: nodePools: additionalProperties: $ref: '#/components/schemas/NodePoolsACK' type: object - type: object + required: + - nodePools UpdateAzureProperties_azure: properties: nodePools: additionalProperties: $ref: '#/components/schemas/UpdateNodePoolsAzure' type: object - type: object UpdateGoogleProperties_master: properties: version: type: string - type: object ListNodesResponse_metadata: example: resourceVersion: "30123" @@ -9613,7 +9885,6 @@ components: resourceVersion: example: "30123" type: string - type: object NodeItem_metadata_labels: example: failure-domain.beta.kubernetes.io/zone: us-central1-a @@ -9649,7 +9920,6 @@ components: kubernetes.io/hostname: example: gke-gkecluster-feri-706-pool1-496eccb3-l25k type: string - type: object NodeItem_metadata_annotations: example: node.alpha.kubernetes.io/ttl: "0" @@ -9661,7 +9931,6 @@ components: volumes.kubernetes.io/controller-managed-attach-detach: example: "true" type: string - type: object NodeItem_metadata: example: uid: f214d7fb-41ae-11e8-a4ea-42010a8001da @@ -9701,7 +9970,6 @@ components: $ref: '#/components/schemas/NodeItem_metadata_labels' annotations: $ref: '#/components/schemas/NodeItem_metadata_annotations' - type: object NodeItem_spec: example: providerID: gce://banzaitest/us-central1-a/gke-gkecluster-706-pool1-496eccb3-l25k @@ -9717,7 +9985,6 @@ components: providerID: example: gce://banzaitest/us-central1-a/gke-gkecluster-706-pool1-496eccb3-l25k type: string - type: object NodeItem_status_capacity: example: memory: 7664776Ki @@ -9733,7 +10000,6 @@ components: pods: example: "110" type: string - type: object NodeItem_status_allocatable: example: memory: 5784712Ki @@ -9749,7 +10015,6 @@ components: pods: example: "110" type: string - type: object NodeItem_status_conditions: example: reason: KernelHasNoDeadlock @@ -9777,7 +10042,6 @@ components: message: example: kernel has no deadlock type: string - type: object NodeItem_status_addresses: example: address: 10.128.0.2 @@ -9789,7 +10053,6 @@ components: address: example: 10.128.0.2 type: string - type: object NodeItem_status_daemonEndpoints: example: kubeletEndpoint: '{}' @@ -9800,7 +10063,6 @@ components: example: 10250 format: int32 type: integer - type: object NodeItem_status_nodeInfo: example: machineID: 10d8adda771410ca912a387cf7e5cb06 @@ -9844,7 +10106,6 @@ components: architecture: example: amd64 type: string - type: object NodeItem_status_images: example: name: @@ -9863,7 +10124,6 @@ components: example: 286572743 format: int32 type: integer - type: object NodeItem_status: example: daemonEndpoints: @@ -9935,124 +10195,6 @@ components: items: $ref: '#/components/schemas/NodeItem_status_images' type: array - type: object - ListDeploymentsResponse_inner: - properties: - releaseName: - example: pipeline - type: string - chart: - example: pipeline-cluster-ingress-0.0.1 - type: string - chartName: - example: pipeline-cluster-ingress - type: string - chartVersion: - example: 0.0.1 - type: string - version: - example: 1 - format: int32 - type: integer - updatedAt: - example: 2018-07-03T14:23:19+02:00 - type: string - status: - example: DEPLOYED - type: string - namespace: - example: default - type: string - createdAt: - example: 2018-07-03T14:23:19+02:00 - type: string - supported: - type: boolean - type: object - GetDeploymentResourcesResponse_inner: - properties: - name: - example: bumptious-dragon-zeppelin - type: string - kind: - example: Deployment - type: string - type: object - HelmChartsListResponse_inner: - properties: - name: - example: stable - type: string - charts: - items: - items: - properties: - name: - example: nginx-ingress - type: string - home: - example: https://github.com/kubernetes/ingress-nginx - type: string - sources: - example: - - https://github.com/kubernetes/ingress-nginx - items: - type: string - type: array - version: - example: 0.13.1 - type: string - description: - example: An nginx Ingress controller that uses ConfigMap to store the nginx configuration. - type: string - keywords: - example: - - ingress, nginx - items: - type: string - type: array - maintainers: - items: - properties: - name: - example: jackzampolin - type: string - email: - example: jack.zampolin@gmail.com - type: string - type: object - type: array - engine: - example: gotpl - type: string - icon: - example: https://upload.wikimedia.org/wikipedia/commons/thumb/c/c5/Nginx_logo.svg/500px-Nginx_logo.svg.png - type: string - appVersion: - example: 0.12.0 - type: string - apiVersion: - example: v1 - type: string - deprecated: - example: false - type: boolean - urls: - example: - - https://kubernetes-charts.storage.googleapis.com/nginx-ingress-0.13.1.tgz - items: - type: string - type: array - created: - example: 2018-04-11T18:11:24.761440762Z - type: string - digest: - example: cf66d1666019b3e1647ba4dbc06a66ee7db1184629ae3669e11a9f72208eb7aa - type: string - type: object - type: array - type: array - type: object HelmChartDetailsResponse_chart_maintainers: example: name: jackzampolin @@ -10064,7 +10206,6 @@ components: email: example: jack.zampolin@gmail.com type: string - type: object HelmChartDetailsResponse_chart: example: maintainers: @@ -10145,7 +10286,6 @@ components: digest: example: cf66d1666019b3e1647ba4dbc06a66ee7db1184629ae3669e11a9f72208eb7aa type: string - type: object HelmChartDetailsResponse_versions: example: values: IyMgbmdpbngtbGVnbyBzcGlucyB1cCBhIHNjYWxhYmxlIGluZ3Jlc3MgcHJvdmlkZXIgdGhhdCBjYW4gYWxzbyBwcm92aXNpb24gU1NMIGNlcnRzCiMjIFNlZSBodHRwczovL2dpdGh1Yi5jb20vamV0c3RhY2sva3ViZS1sZWdvL3RyZWUvbWFzdGVyL2V4YW1wbGVzL25naW54IGZvciBtb3JlIGluZm9ybWF0aW9uIG9uIGltcGxlbWVudGF0aW9uCgojIyBOZ2lueCBjb25maWd1cmF0aW9uCiMjIHJlZjogaHR0cHM6Ly9naXRodWIuY29tL2t1YmVybmV0ZXMvY29udHJpYi90cmVlL21hc3Rlci9pbmdyZXNzL2NvbnRyb2xsZXJzL25naW54I2F1dG9tYXRlZC1jZXJ0aWZpY2F0ZS1tYW5hZ2VtZW50LXdpdGgta3ViZS1sZWdvCiMjCm5naW54OgogIHJlcGxpY2FDb3VudDogMQogIGltYWdlOgogICAgcmVwb3NpdG9yeTogazhzLmdjci5pby9uZ2lueC1pbmdyZXNzLWNvbnRyb2xsZXIKICAgIHRhZzogIjAuOC4zIgogICAgcHVsbFBvbGljeTogSWZOb3RQcmVzZW50CiAgc2VydmljZToKICAgIHR5cGU6IExvYWRCYWxhbmNlcgogIG1vbml0b3Jpbmc6IGZhbHNlCiAgcmVzb3VyY2VzOgogICAgbGltaXRzOgogICAgICBjcHU6IDEKICAgICAgbWVtb3J5OiAyR2kKICAgIHJlcXVlc3RzOgogICAgICBjcHU6IDEKICAgICAgbWVtb3J5OiAxMjhNaQogIGNvbmZpZ21hcDoKICAgIHByb3h5X2Nvbm5lY3RfdGltZW91dDogIjMwIgogICAgcHJveHlfcmVhZF90aW1lb3V0OiAiNjAwIgogICAgcHJveHlfc2VuZF9pbWVvdXQ6ICI2MDAiCiAgICBoc3RzX2luY2x1ZGVfc3ViZG9tYWluczogImZhbHNlIgogICAgYm9keV9zaXplOiAiNjRtIgogICAgc2VydmVyX25hbWVfaGFzaF9idWNrZXRfc2l6ZTogIjI1NiIKICAgICMgVE9ETzogZmlndXJlIG91dCBob3cgdG8gZXhwb3NlIGB7bmdpbnhfYWRkcn06ODA4MC9uZ2lueF9zdGF0dXNgLCBvbiBleGlzdGluZyBzZXJ2aWNlIG9yIGNyZWF0ZSBuZXcgb25lPwogICAgZW5hYmxlX3Z0c19zdGF0dXM6ICJmYWxzZSIKCiMjIERlZmF1bHQgQmFja2VuZCBjb25maWd1cmF0aW9uCiMjIFRvIHJ1biBhIGRpZmZlcmVudCA0MDQgcGFnZSBmb3IgdGhlIG1hbmFnZWQgZG9tYWlucyBwbGVhc2Ugc2VlIHRoZSBkb2N1bWVudGF0aW9uIGJlbG93CiMjIHJlZjogaHR0cHM6Ly9naXRodWIuY29tL2t1YmVybmV0ZXMvY29udHJpYi90cmVlL21hc3Rlci80MDQtc2VydmVyCiMjCmRlZmF1bHQ6CiAgcmVwbGljYUNvdW50OiAxCiAgaW1hZ2U6CiAgICByZXBvc2l0b3J5OiBrOHMuZ2NyLmlvL2RlZmF1bHRiYWNrZW5kCiAgICB0YWc6ICIxLjAiCiAgICBwdWxsUG9saWN5OiBJZk5vdFByZXNlbnQKICByZXNvdXJjZXM6CiAgICBsaW1pdHM6CiAgICAgIGNwdTogMQogICAgICBtZW1vcnk6IDJHaQogICAgcmVxdWVzdHM6CiAgICAgIGNwdTogMQogICAgICBtZW1vcnk6IDEyOE1pCgojIyBrdWJlLWxlZ28gY29uZmlndXJhdGlvbgojIyByZWY6IGh0dHBzOi8vZ2l0aHViLmNvbS9qZXRzdGFjay9rdWJlLWxlZ28KIyMKbGVnbzoKICBlbmFibGVkOiBmYWxzZQogIHJlcGxpY2FDb3VudDogMQogIGltYWdlOgogICAgcmVwb3NpdG9yeTogamV0c3RhY2sva3ViZS1sZWdvCiAgICB0YWc6ICIwLjEuMyIKICAgIHB1bGxQb2xpY3k6IElmTm90UHJlc2VudAogIGNvbmZpZ21hcDoKICAgIGVtYWlsOiAibXlAZW1haWwudGxkIgogICAgIyBQcm9kdWN0aW9uIExldCdzIEVuY3J5cHQgc2VydmVyCiAgICAjIHVybDogImh0dHBzOi8vYWNtZS12MDEuYXBpLmxldHNlbmNyeXB0Lm9yZy9kaXJlY3RvcnkiCiAgICAjIFRlc3QgTGV0J3MgRW5jcnlwdCBzZXJ2ZXIKICAgIHVybDogImh0dHBzOi8vYWNtZS1zdGFnaW5nLmFwaS5sZXRzZW5jcnlwdC5vcmcvZGlyZWN0b3J5ICIKICByZXNvdXJjZXM6CiAgICBsaW1pdHM6CiAgICAgIGNwdTogMQogICAgICBtZW1vcnk6IDJHaQogICAgcmVxdWVzdHM6CiAgICAgIGNwdTogMQogICAgICBtZW1vcnk6IDEyOE1pCg== @@ -10182,7 +10322,6 @@ components: readme: example: IyBuZ2lueC1sZWdvCgoqKlRoaXMgY2hhcnQgaGFzIGJlZW4gZGVwcmVjYXRlZCBhcyBvZiB2ZXJzaW9uIDAuMi4xIGFuZCB3aWxsIG5vdCBiZSB1cGRhdGVkLiBQbGVhc2UgdXNlIHRoZSBuZ2lueC1pbmdyZXNzIGFuZCAob3B0aW9uYWwpIGt1YmUtbGVnbyBjaGFydHMgaW5zdGVhZC4qKgoKW25naW54LWxlZ29dKGh0dHBzOi8vZ2l0aHViLmNvbS9qZXRzdGFjay9rdWJlLWxlZ28vdHJlZS9tYXN0ZXIvZXhhbXBsZXMvbmdpbngpIGlzIGEgY2hhcnQgZm9yIGFuIFtgbmdpbnhgIGluZ3Jlc3NdKGh0dHBzOi8vZ2l0aHViLmNvbS9rdWJlcm5ldGVzL2NvbnRyaWIvdHJlZS9tYXN0ZXIvaW5ncmVzcy9jb250cm9sbGVycy9uZ2lueCkgd2l0aCBvcHRpb25hbCBzdXBwb3J0IGZvciBhdXRvbWF0aWNhbGx5IGdlbmVyYXRpbmcgYFNTTGAgY2VydCBmb3IgdGhlIG1hbmFnZWQgcm91dGVzLgoKVG8gdXNlIHRoaXMgaW5ncmVzcyBjb250b2xsZXIgYWRkIHRoZSBmb2xsb3dpbmcgYW5ub3RhdGlvbnMgdG8gdGhlIGBpbmdyZXNzYCByZXNvdXJjZXMgeW91IHdvdWxkIGxpa2UgdG8gcm91dGUgdGhyb3VnaCBpdDoKCmBgYHlhbWwKYXBpVmVyc2lvbjogZXh0ZW5zaW9ucy92MWJldGExCmtpbmQ6IEluZ3Jlc3MKbWV0YWRhdGE6CiAgbmFtZXNwYWNlOiBmb28KICBhbm5vdGF0aW9uczoKICAgICMgQWRkIHRvIHJvdXRlIHRocm91Z2ggdGhlIG5naW54IHNlcnZpY2UKICAgIGt1YmVybmV0ZXMuaW8vaW5ncmVzcy5jbGFzczogbmdpbngKICAgICMgQWRkIHRvIGdlbmVyYXRlIGNlcnRpZmljYXRlcyBmb3IgdGhpcyBpbmdyZXNzCiAgICBrdWJlcm5ldGVzLmlvL3Rscy1hY21lOiAidHJ1ZSIKc3BlYzoKICB0bHM6CiAgICAjIFdpdGggdGhpcyBjb25maWd1cmF0aW9uIGt1YmUtbGVnbyB3aWxsIGdlbmVyYXRlIGEgc2VjcmV0IGluIG5hbWVzcGFjZSBmb28gY2FsbGVkIGBleGFtcGxlLXRsc2AKICAgICMgZm9yIHRoZSBVUkwgYHd3dy5leGFtcGxlLmNvbWAKICAgIC0gaG9zdHM6CiAgICAgIC0gInd3dy5leGFtcGxlLmNvbSIKICAgICAgc2VjcmV0TmFtZTogZXhhbXBsZS10bHMKYGBgCgojIyBUTDtEUjsKCmBgYGJhc2gKJCBoZWxtIGluc3RhbGwgc3RhYmxlL2t1YmUtbGVnbwpgYGAKCiMjIEludHJvZHVjdGlvbgoKVGhpcyBjaGFydCBib290c3RyYXBzIGFuIG5naW54LWxlZ28gZGVwbG95bWVudCBvbiBhIFtLdWJlcm5ldGVzXShodHRwOi8va3ViZXJuZXRlcy5pbykgY2x1c3RlciB1c2luZyB0aGUgW0hlbG1dKGh0dHBzOi8vaGVsbS5zaCkgcGFja2FnZSBtYW5hZ2VyLgoKIyMgUHJlcmVxdWlzaXRlcwoKLSBLdWJlcm5ldGVzIDEuNCsgd2l0aCBCZXRhIEFQSXMgZW5hYmxlZAoKIyMgSW5zdGFsbGluZyB0aGUgQ2hhcnQKClRvIGluc3RhbGwgdGhlIGNoYXJ0IHdpdGggdGhlIHJlbGVhc2UgbmFtZSBgbXktcmVsZWFzZWA6CgpgYGBiYXNoCiQgaGVsbSBpbnN0YWxsIC0tbmFtZSBteS1yZWxlYXNlIHN0YWJsZS9uZ2lueC1sZWdvCmBgYAoKVGhlIGNvbW1hbmQgZGVwbG95cyBuZ2lueC1sZWdvIG9uIHRoZSBLdWJlcm5ldGVzIGNsdXN0ZXIgaW4gdGhlIGRlZmF1bHQgY29uZmlndXJhdGlvbi4gVGhlIFtjb25maWd1cmF0aW9uXSgjY29uZmlndXJhdGlvbikgc2VjdGlvbiBsaXN0cyB0aGUgcGFyYW1ldGVycyB0aGF0IGNhbiBiZSBjb25maWd1cmVkIGR1cmluZyBpbnN0YWxsYXRpb24uCgo+ICoqVGlwKio6IExpc3QgYWxsIHJlbGVhc2VzIHVzaW5nIGBoZWxtIGxpc3RgCgojIyBVbmluc3RhbGxpbmcgdGhlIENoYXJ0CgpUbyB1bmluc3RhbGwvZGVsZXRlIHRoZSBgbXktcmVsZWFzZWAgZGVwbG95bWVudDoKCmBgYGJhc2gKJCBoZWxtIGRlbGV0ZSBteS1yZWxlYXNlCmBgYAoKVGhlIGNvbW1hbmQgcmVtb3ZlcyBhbGwgdGhlIEt1YmVybmV0ZXMgY29tcG9uZW50cyBhc3NvY2lhdGVkIHdpdGggdGhlIGNoYXJ0IGFuZCBkZWxldGVzIHRoZSByZWxlYXNlLgoKIyMgQ29uZmlndXJhdGlvbgoKU2VlIGB2YWx1ZXMueWFtbGAgZm9yIGNvbmZpZ3VyYXRpb24gbm90ZXMuIFNwZWNpZnkgZWFjaCBwYXJhbWV0ZXIgdXNpbmcgdGhlIGAtLXNldCBrZXk9dmFsdWVbLGtleT12YWx1ZV1gIGFyZ3VtZW50IHRvIGBoZWxtIGluc3RhbGxgLiBGb3IgZXhhbXBsZSwKCmBgYGJhc2gKJCBoZWxtIGluc3RhbGwgLS1uYW1lIG15LXJlbGVhc2UgXAogIC0tc2V0IGxlZ28uZW5hYmxlZD1mYWxzZSBcCiAgICBzdGFibGUvbmdpbngtbGVnbwpgYGAKCkluc3RhbGxzIHRoZSBjaGFydCB3aXRob3V0IGt1YmUtbGVnbyBhbmQgdGhlIGFiaWxpdHkgdG8gZ2VuZXJhdGUgY2VydHMuCgpBbHRlcm5hdGl2ZWx5LCBhIFlBTUwgZmlsZSB0aGF0IHNwZWNpZmllcyB0aGUgdmFsdWVzIGZvciB0aGUgcGFyYW1ldGVycyBjYW4gYmUgcHJvdmlkZWQgd2hpbGUgaW5zdGFsbGluZyB0aGUgY2hhcnQuIEZvciBleGFtcGxlLAoKYGBgYmFzaAokIGhlbG0gaW5zdGFsbCAtLW5hbWUgbXktcmVsZWFzZSAtZiB2YWx1ZXMueWFtbCBzdGFibGUvbmdpbngtbGVnbwpgYGAKCj4gKipUaXAqKjogWW91IGNhbiB1c2UgdGhlIGRlZmF1bHQgW3ZhbHVlcy55YW1sXSh2YWx1ZXMueWFtbCkK type: string - type: object InstallSecretsRequest_query: example: ids: @@ -10206,7 +10345,6 @@ components: items: type: string type: array - type: object ClusterProfileEKS_eks: properties: version: @@ -10216,7 +10354,6 @@ components: additionalProperties: $ref: '#/components/schemas/NodePoolsAmazon' type: object - type: object ClusterProfileAKS_aks: properties: kubernetesVersion: @@ -10226,13 +10363,11 @@ components: additionalProperties: $ref: '#/components/schemas/NodePoolsAzure' type: object - type: object ClusterProfileGKE_gke_master: properties: version: example: 1.8.7-gke.1 type: string - type: object ClusterProfileGKE_gke: properties: master: @@ -10244,7 +10379,6 @@ components: additionalProperties: $ref: '#/components/schemas/NodePoolsGoogle' type: object - type: object AddClusterProfileAKS_aks: properties: nodePools: @@ -10254,7 +10388,6 @@ components: kubernetesVersion: example: 1.8.2 type: string - type: object AllowedSecretTypeResponse_fields: example: name: name @@ -10267,7 +10400,6 @@ components: type: boolean description: type: string - type: object AmazonConfigResponse_image: example: eu-west-1: @@ -10281,7 +10413,6 @@ components: items: type: string type: array - type: object AmazonConfigResponse_instanceType: example: eu-west-1: @@ -10295,7 +10426,6 @@ components: items: type: string type: array - type: object AzureConfigResponse_instanceType: example: eastus: @@ -10309,7 +10439,6 @@ components: items: type: string type: array - type: object GoogleConfigResponse_instanceType: example: asia-east1-a: @@ -10323,7 +10452,6 @@ components: items: type: string type: array - type: object GoogleConfigResponse_kubernetes_versions: example: validMasterVersions: @@ -10363,35 +10491,6 @@ components: items: type: string type: array - type: object - CreateAmazonObjectStoreBucketProperties_amazon: - properties: - location: - example: eu-west-1 - type: string - type: object - CreateGoogleObjectStoreBucketProperties_google: - properties: - location: - example: europe - type: string - type: object - CreateAzureObjectStoreBucketProperties_azure: - properties: - storageAccount: - example: mystorageaccount - type: string - location: - example: westeurope - type: string - resourceGroup: - type: string - type: object - CreateOracleObjectStoreBucketProperties_oracle: - properties: - location: - type: string - type: object BucketInfo_secret: example: accessId: cc051aeaf686444e2f125d0e79eb051aaaf4fb73384f7b0f8c89e84a0502dcef @@ -10413,8 +10512,13 @@ components: description: the secret name of the azure access information example: myaccesssecretname type: string - type: object + required: + - id PodItem_labels: + example: + app: pipeline-traefik + release: pipeline + chart: traefik-1.14.2 properties: app: example: pipeline-traefik @@ -10425,7 +10529,6 @@ components: release: example: pipeline type: string - type: object LoggingPostHook_InstallLogging: properties: bucketName: @@ -10448,44 +10551,14 @@ components: type: string tls: $ref: '#/components/schemas/GenTLSForLogging' - type: object + required: + - bucketName + - secretId + - tls ServiceMeshPostHook_InstallServiceMesh: properties: mtls: type: boolean - type: object - DeploymentScalingResponse_inner: - properties: - scaleTarget: - example: k8sDeploymentName - type: string - kind: - example: Deployment - type: string - minReplicas: - example: 1 - format: int32 - type: integer - maxReplicas: - example: 3 - format: int32 - type: integer - cpu: - $ref: '#/components/schemas/ResourceMetricStatus' - memory: - $ref: '#/components/schemas/ResourceMetricStatus' - customMetrics: - additionalProperties: - $ref: '#/components/schemas/CustomMetricStatus' - example: - custom_metric_name: - type: pod - targetAverageValue: 700m - currentAverageValue: 300m - type: object - status: - $ref: '#/components/schemas/DeploymentScaleStatus' - type: object PolicyRule_params: example: name: name @@ -10495,7 +10568,9 @@ components: type: string value: type: string - type: object + required: + - name + - value securitySchemes: bearerAuth: bearerFormat: JWT diff --git a/client/api_auth.go b/client/api_auth.go index c165468a7c..118f4bacb5 100644 --- a/client/api_auth.go +++ b/client/api_auth.go @@ -86,14 +86,6 @@ func (a *AuthApiService) CreateToken(ctx context.Context, tokenCreateRequest Tok return localVarReturnValue, localVarHttpResponse, err } - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericOpenAPIError{ body: localVarBody, @@ -132,6 +124,15 @@ func (a *AuthApiService) CreateToken(ctx context.Context, tokenCreateRequest Tok return localVarReturnValue, localVarHttpResponse, newErr } + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, nil } @@ -278,14 +279,6 @@ func (a *AuthApiService) ListTokens(ctx context.Context) ([]TokenListResponseIte return localVarReturnValue, localVarHttpResponse, err } - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericOpenAPIError{ body: localVarBody, @@ -324,5 +317,14 @@ func (a *AuthApiService) ListTokens(ctx context.Context) ([]TokenListResponseIte return localVarReturnValue, localVarHttpResponse, newErr } + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, nil } diff --git a/client/api_clusters.go b/client/api_clusters.go index c1b6122bd8..387f6323da 100644 --- a/client/api_clusters.go +++ b/client/api_clusters.go @@ -34,9 +34,9 @@ Run posthook functions * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param orgId Organization identification * @param id Selected cluster identification (number) - * @param reRunPostHook + * @param body */ -func (a *ClustersApiService) ClusterPostHooks(ctx context.Context, orgId int32, id int32, reRunPostHook ReRunPostHook) (*http.Response, error) { +func (a *ClustersApiService) ClusterPostHooks(ctx context.Context, orgId int32, id int32, body map[string]interface{}) (*http.Response, error) { var ( localVarHttpMethod = strings.ToUpper("Put") localVarPostBody interface{} @@ -72,7 +72,7 @@ func (a *ClustersApiService) ClusterPostHooks(ctx context.Context, orgId int32, localVarHeaderParams["Accept"] = localVarHttpHeaderAccept } // body params - localVarPostBody = &reRunPostHook + localVarPostBody = &body r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) if err != nil { return nil, err @@ -161,14 +161,6 @@ func (a *ClustersApiService) CreateCluster(ctx context.Context, orgId int32, cre return localVarReturnValue, localVarHttpResponse, err } - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericOpenAPIError{ body: localVarBody, @@ -207,6 +199,15 @@ func (a *ClustersApiService) CreateCluster(ctx context.Context, orgId int32, cre return localVarReturnValue, localVarHttpResponse, newErr } + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, nil } @@ -280,14 +281,6 @@ func (a *ClustersApiService) DeleteCluster(ctx context.Context, orgId int32, id return localVarReturnValue, localVarHttpResponse, err } - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericOpenAPIError{ body: localVarBody, @@ -346,6 +339,15 @@ func (a *ClustersApiService) DeleteCluster(ctx context.Context, orgId int32, id return localVarReturnValue, localVarHttpResponse, newErr } + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, nil } @@ -520,14 +522,6 @@ func (a *ClustersApiService) GetAPIEndpoint(ctx context.Context, orgId int32, id return localVarReturnValue, localVarHttpResponse, err } - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericOpenAPIError{ body: localVarBody, @@ -576,6 +570,15 @@ func (a *ClustersApiService) GetAPIEndpoint(ctx context.Context, orgId int32, id return localVarReturnValue, localVarHttpResponse, newErr } + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, nil } @@ -639,14 +642,6 @@ func (a *ClustersApiService) GetCluster(ctx context.Context, orgId int32, id int return localVarReturnValue, localVarHttpResponse, err } - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericOpenAPIError{ body: localVarBody, @@ -695,6 +690,15 @@ func (a *ClustersApiService) GetCluster(ctx context.Context, orgId int32, id int return localVarReturnValue, localVarHttpResponse, newErr } + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, nil } @@ -758,14 +762,6 @@ func (a *ClustersApiService) GetClusterBootstrap(ctx context.Context, orgId int3 return localVarReturnValue, localVarHttpResponse, err } - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericOpenAPIError{ body: localVarBody, @@ -794,6 +790,15 @@ func (a *ClustersApiService) GetClusterBootstrap(ctx context.Context, orgId int3 return localVarReturnValue, localVarHttpResponse, newErr } + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, nil } @@ -857,14 +862,6 @@ func (a *ClustersApiService) GetClusterConfig(ctx context.Context, orgId int32, return localVarReturnValue, localVarHttpResponse, err } - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericOpenAPIError{ body: localVarBody, @@ -913,6 +910,15 @@ func (a *ClustersApiService) GetClusterConfig(ctx context.Context, orgId int32, return localVarReturnValue, localVarHttpResponse, newErr } + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, nil } @@ -1045,14 +1051,6 @@ func (a *ClustersApiService) GetPKECommands(ctx context.Context, orgId int32, id return localVarReturnValue, localVarHttpResponse, err } - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericOpenAPIError{ body: localVarBody, @@ -1101,6 +1099,15 @@ func (a *ClustersApiService) GetPKECommands(ctx context.Context, orgId int32, id return localVarReturnValue, localVarHttpResponse, newErr } + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, nil } @@ -1110,16 +1117,16 @@ Getting pod details * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param orgId Organization identification * @param id Selected cluster identification (number) -@return PodDetailsResponse +@return []PodItem */ -func (a *ClustersApiService) GetPodDetails(ctx context.Context, orgId int32, id int32) (PodDetailsResponse, *http.Response, error) { +func (a *ClustersApiService) GetPodDetails(ctx context.Context, orgId int32, id int32) ([]PodItem, *http.Response, error) { var ( localVarHttpMethod = strings.ToUpper("Get") localVarPostBody interface{} localVarFormFileName string localVarFileName string localVarFileBytes []byte - localVarReturnValue PodDetailsResponse + localVarReturnValue []PodItem ) // create path and map variables @@ -1164,21 +1171,13 @@ func (a *ClustersApiService) GetPodDetails(ctx context.Context, orgId int32, id return localVarReturnValue, localVarHttpResponse, err } - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericOpenAPIError{ body: localVarBody, error: localVarHttpResponse.Status, } if localVarHttpResponse.StatusCode == 200 { - var v PodDetailsResponse + var v []PodItem err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) if err != nil { newErr.error = err.Error() @@ -1220,6 +1219,15 @@ func (a *ClustersApiService) GetPodDetails(ctx context.Context, orgId int32, id return localVarReturnValue, localVarHttpResponse, newErr } + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, nil } @@ -1286,14 +1294,6 @@ func (a *ClustersApiService) HelmInit(ctx context.Context, orgId int32, id int32 return localVarReturnValue, localVarHttpResponse, err } - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericOpenAPIError{ body: localVarBody, @@ -1342,6 +1342,15 @@ func (a *ClustersApiService) HelmInit(ctx context.Context, orgId int32, id int32 return localVarReturnValue, localVarHttpResponse, newErr } + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, nil } @@ -1410,14 +1419,6 @@ func (a *ClustersApiService) InstallSecret(ctx context.Context, orgId int32, id return localVarReturnValue, localVarHttpResponse, err } - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericOpenAPIError{ body: localVarBody, @@ -1476,6 +1477,15 @@ func (a *ClustersApiService) InstallSecret(ctx context.Context, orgId int32, id return localVarReturnValue, localVarHttpResponse, newErr } + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, nil } @@ -1542,14 +1552,6 @@ func (a *ClustersApiService) InstallSecrets(ctx context.Context, orgId int32, id return localVarReturnValue, localVarHttpResponse, err } - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericOpenAPIError{ body: localVarBody, @@ -1598,36 +1600,45 @@ func (a *ClustersApiService) InstallSecrets(ctx context.Context, orgId int32, id return localVarReturnValue, localVarHttpResponse, newErr } + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, nil } /* -ClustersApiService List secrets which belongs to cluster -List secrets which belongs to cluster +ClustersApiService List service public endpoints +List service public endpoints * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param orgId Organization identification * @param id Selected cluster identification (number) - * @param optional nil or *ListClusterSecretsOpts - Optional Parameters: + * @param optional nil or *ListClusterEndpointsOpts - Optional Parameters: * @param "ReleaseName" (optional.String) - Selected deployment release name -@return []SecretItem +@return ListEndpointsResponse */ -type ListClusterSecretsOpts struct { +type ListClusterEndpointsOpts struct { ReleaseName optional.String } -func (a *ClustersApiService) ListClusterSecrets(ctx context.Context, orgId int32, id int32, localVarOptionals *ListClusterSecretsOpts) ([]SecretItem, *http.Response, error) { +func (a *ClustersApiService) ListClusterEndpoints(ctx context.Context, orgId int32, id int32, localVarOptionals *ListClusterEndpointsOpts) (ListEndpointsResponse, *http.Response, error) { var ( localVarHttpMethod = strings.ToUpper("Get") localVarPostBody interface{} localVarFormFileName string localVarFileName string localVarFileBytes []byte - localVarReturnValue []SecretItem + localVarReturnValue ListEndpointsResponse ) // create path and map variables - localVarPath := a.client.cfg.BasePath + "/api/v1/orgs/{orgId}/clusters/{id}/secrets" + localVarPath := a.client.cfg.BasePath + "/api/v1/orgs/{orgId}/clusters/{id}/endpoints" localVarPath = strings.Replace(localVarPath, "{"+"orgId"+"}", fmt.Sprintf("%v", orgId), -1) localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", fmt.Sprintf("%v", id), -1) @@ -1671,21 +1682,13 @@ func (a *ClustersApiService) ListClusterSecrets(ctx context.Context, orgId int32 return localVarReturnValue, localVarHttpResponse, err } - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericOpenAPIError{ body: localVarBody, error: localVarHttpResponse.Status, } if localVarHttpResponse.StatusCode == 200 { - var v []SecretItem + var v ListEndpointsResponse err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) if err != nil { newErr.error = err.Error() @@ -1737,34 +1740,55 @@ func (a *ClustersApiService) ListClusterSecrets(ctx context.Context, orgId int32 return localVarReturnValue, localVarHttpResponse, newErr } + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, nil } /* -ClustersApiService List clusters -Listing all the K8S clusters from the cloud +ClustersApiService List secrets which belongs to cluster +List secrets which belongs to cluster * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param orgId Organization identification -@return []GetClusterStatusResponse + * @param id Selected cluster identification (number) + * @param optional nil or *ListClusterSecretsOpts - Optional Parameters: + * @param "ReleaseName" (optional.String) - Selected deployment release name +@return []SecretItem */ -func (a *ClustersApiService) ListClusters(ctx context.Context, orgId int32) ([]GetClusterStatusResponse, *http.Response, error) { + +type ListClusterSecretsOpts struct { + ReleaseName optional.String +} + +func (a *ClustersApiService) ListClusterSecrets(ctx context.Context, orgId int32, id int32, localVarOptionals *ListClusterSecretsOpts) ([]SecretItem, *http.Response, error) { var ( localVarHttpMethod = strings.ToUpper("Get") localVarPostBody interface{} localVarFormFileName string localVarFileName string localVarFileBytes []byte - localVarReturnValue []GetClusterStatusResponse + localVarReturnValue []SecretItem ) // create path and map variables - localVarPath := a.client.cfg.BasePath + "/api/v1/orgs/{orgId}/clusters" + localVarPath := a.client.cfg.BasePath + "/api/v1/orgs/{orgId}/clusters/{id}/secrets" localVarPath = strings.Replace(localVarPath, "{"+"orgId"+"}", fmt.Sprintf("%v", orgId), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", fmt.Sprintf("%v", id), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if localVarOptionals != nil && localVarOptionals.ReleaseName.IsSet() { + localVarQueryParams.Add("releaseName", parameterToString(localVarOptionals.ReleaseName.Value(), "")) + } // to determine the Content-Type header localVarHttpContentTypes := []string{} @@ -1798,21 +1822,13 @@ func (a *ClustersApiService) ListClusters(ctx context.Context, orgId int32) ([]G return localVarReturnValue, localVarHttpResponse, err } - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericOpenAPIError{ body: localVarBody, error: localVarHttpResponse.Status, } if localVarHttpResponse.StatusCode == 200 { - var v []GetClusterStatusResponse + var v []SecretItem err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) if err != nil { newErr.error = err.Error() @@ -1841,6 +1857,35 @@ func (a *ClustersApiService) ListClusters(ctx context.Context, orgId int32) ([]G newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr } + if localVarHttpResponse.StatusCode == 404 { + var v ClusterNotFound + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v BaseError500 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } return localVarReturnValue, localVarHttpResponse, newErr } @@ -1848,42 +1893,30 @@ func (a *ClustersApiService) ListClusters(ctx context.Context, orgId int32) ([]G } /* -ClustersApiService List service public endpoints -List service public endpoints +ClustersApiService List clusters +Listing all the K8S clusters from the cloud * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param orgId Organization identification - * @param id Selected cluster identification (number) - * @param optional nil or *ListEndpointsOpts - Optional Parameters: - * @param "ReleaseName" (optional.String) - Selected deployment release name -@return ListEndpointsResponse +@return []GetClusterStatusResponse */ - -type ListEndpointsOpts struct { - ReleaseName optional.String -} - -func (a *ClustersApiService) ListEndpoints(ctx context.Context, orgId int32, id int32, localVarOptionals *ListEndpointsOpts) (ListEndpointsResponse, *http.Response, error) { +func (a *ClustersApiService) ListClusters(ctx context.Context, orgId int32) ([]GetClusterStatusResponse, *http.Response, error) { var ( localVarHttpMethod = strings.ToUpper("Get") localVarPostBody interface{} localVarFormFileName string localVarFileName string localVarFileBytes []byte - localVarReturnValue ListEndpointsResponse + localVarReturnValue []GetClusterStatusResponse ) // create path and map variables - localVarPath := a.client.cfg.BasePath + "/api/v1/orgs/{orgId}/clusters/{id}/endpoints" + localVarPath := a.client.cfg.BasePath + "/api/v1/orgs/{orgId}/clusters" localVarPath = strings.Replace(localVarPath, "{"+"orgId"+"}", fmt.Sprintf("%v", orgId), -1) - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", fmt.Sprintf("%v", id), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if localVarOptionals != nil && localVarOptionals.ReleaseName.IsSet() { - localVarQueryParams.Add("releaseName", parameterToString(localVarOptionals.ReleaseName.Value(), "")) - } // to determine the Content-Type header localVarHttpContentTypes := []string{} @@ -1917,21 +1950,13 @@ func (a *ClustersApiService) ListEndpoints(ctx context.Context, orgId int32, id return localVarReturnValue, localVarHttpResponse, err } - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericOpenAPIError{ body: localVarBody, error: localVarHttpResponse.Status, } if localVarHttpResponse.StatusCode == 200 { - var v ListEndpointsResponse + var v []GetClusterStatusResponse err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) if err != nil { newErr.error = err.Error() @@ -1960,25 +1985,14 @@ func (a *ClustersApiService) ListEndpoints(ctx context.Context, orgId int32, id newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr } - if localVarHttpResponse.StatusCode == 404 { - var v ClusterNotFound - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr - } - if localVarHttpResponse.StatusCode == 500 { - var v BaseError500 - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr + return localVarReturnValue, localVarHttpResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), } return localVarReturnValue, localVarHttpResponse, newErr } @@ -2046,14 +2060,6 @@ func (a *ClustersApiService) ListNodes(ctx context.Context, orgId int32, id int3 return localVarReturnValue, localVarHttpResponse, err } - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericOpenAPIError{ body: localVarBody, @@ -2112,6 +2118,15 @@ func (a *ClustersApiService) ListNodes(ctx context.Context, orgId int32, id int3 return localVarReturnValue, localVarHttpResponse, newErr } + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, nil } @@ -2180,14 +2195,6 @@ func (a *ClustersApiService) MergeSecret(ctx context.Context, orgId int32, id in return localVarReturnValue, localVarHttpResponse, err } - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericOpenAPIError{ body: localVarBody, @@ -2236,6 +2243,15 @@ func (a *ClustersApiService) MergeSecret(ctx context.Context, orgId int32, id in return localVarReturnValue, localVarHttpResponse, newErr } + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, nil } @@ -2302,14 +2318,6 @@ func (a *ClustersApiService) PostReadyPKENode(ctx context.Context, orgId int32, return localVarReturnValue, localVarHttpResponse, err } - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericOpenAPIError{ body: localVarBody, @@ -2358,6 +2366,15 @@ func (a *ClustersApiService) PostReadyPKENode(ctx context.Context, orgId int32, return localVarReturnValue, localVarHttpResponse, newErr } + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, nil } @@ -2523,14 +2540,6 @@ func (a *ClustersApiService) UpdateMonitoring(ctx context.Context, orgId int32, return localVarReturnValue, localVarHttpResponse, err } - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericOpenAPIError{ body: localVarBody, @@ -2549,5 +2558,14 @@ func (a *ClustersApiService) UpdateMonitoring(ctx context.Context, orgId int32, return localVarReturnValue, localVarHttpResponse, newErr } + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, nil } diff --git a/client/api_common.go b/client/api_common.go index 257f516c19..e17cc63976 100644 --- a/client/api_common.go +++ b/client/api_common.go @@ -82,14 +82,6 @@ func (a *CommonApiService) ListEndpoints(ctx context.Context) ([]string, *http.R return localVarReturnValue, localVarHttpResponse, err } - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericOpenAPIError{ body: localVarBody, @@ -108,5 +100,14 @@ func (a *CommonApiService) ListEndpoints(ctx context.Context) ([]string, *http.R return localVarReturnValue, localVarHttpResponse, newErr } + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, nil } diff --git a/client/api_deployments.go b/client/api_deployments.go index 7b1a4350d5..caed03126e 100644 --- a/client/api_deployments.go +++ b/client/api_deployments.go @@ -91,14 +91,6 @@ func (a *DeploymentsApiService) CreateDeployment(ctx context.Context, orgId int3 return localVarReturnValue, localVarHttpResponse, err } - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericOpenAPIError{ body: localVarBody, @@ -147,6 +139,15 @@ func (a *DeploymentsApiService) CreateDeployment(ctx context.Context, orgId int3 return localVarReturnValue, localVarHttpResponse, newErr } + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, nil } @@ -212,14 +213,6 @@ func (a *DeploymentsApiService) DeleteDeployment(ctx context.Context, orgId int3 return localVarReturnValue, localVarHttpResponse, err } - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericOpenAPIError{ body: localVarBody, @@ -268,6 +261,15 @@ func (a *DeploymentsApiService) DeleteDeployment(ctx context.Context, orgId int3 return localVarReturnValue, localVarHttpResponse, newErr } + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, nil } @@ -343,14 +345,6 @@ func (a *DeploymentsApiService) GetDeployment(ctx context.Context, orgId int32, return localVarReturnValue, localVarHttpResponse, err } - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericOpenAPIError{ body: localVarBody, @@ -399,6 +393,15 @@ func (a *DeploymentsApiService) GetDeployment(ctx context.Context, orgId int32, return localVarReturnValue, localVarHttpResponse, newErr } + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, nil } @@ -409,16 +412,16 @@ Retrieves the K8s images of a deployment * @param orgId Organization identification * @param id Selected cluster identification (number) * @param name Deployment name -@return DeploymentImageList +@return []ClusterImage */ -func (a *DeploymentsApiService) GetDeploymentImages(ctx context.Context, orgId int32, id int32, name string) (DeploymentImageList, *http.Response, error) { +func (a *DeploymentsApiService) GetDeploymentImages(ctx context.Context, orgId int32, id int32, name string) ([]ClusterImage, *http.Response, error) { var ( localVarHttpMethod = strings.ToUpper("Get") localVarPostBody interface{} localVarFormFileName string localVarFileName string localVarFileBytes []byte - localVarReturnValue DeploymentImageList + localVarReturnValue []ClusterImage ) // create path and map variables @@ -464,21 +467,13 @@ func (a *DeploymentsApiService) GetDeploymentImages(ctx context.Context, orgId i return localVarReturnValue, localVarHttpResponse, err } - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericOpenAPIError{ body: localVarBody, error: localVarHttpResponse.Status, } if localVarHttpResponse.StatusCode == 200 { - var v DeploymentImageList + var v []ClusterImage err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) if err != nil { newErr.error = err.Error() @@ -520,6 +515,15 @@ func (a *DeploymentsApiService) GetDeploymentImages(ctx context.Context, orgId i return localVarReturnValue, localVarHttpResponse, newErr } + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, nil } @@ -532,21 +536,21 @@ Retrieves the K8s resources of a deployment * @param name Deployment name * @param optional nil or *GetDeploymentResourceOpts - Optional Parameters: * @param "ResourceTypes" (optional.String) - K8s reource type -@return GetDeploymentResourcesResponse +@return []map[string]interface{} */ type GetDeploymentResourceOpts struct { ResourceTypes optional.String } -func (a *DeploymentsApiService) GetDeploymentResource(ctx context.Context, orgId int32, id int32, name string, localVarOptionals *GetDeploymentResourceOpts) (GetDeploymentResourcesResponse, *http.Response, error) { +func (a *DeploymentsApiService) GetDeploymentResource(ctx context.Context, orgId int32, id int32, name string, localVarOptionals *GetDeploymentResourceOpts) ([]map[string]interface{}, *http.Response, error) { var ( localVarHttpMethod = strings.ToUpper("Get") localVarPostBody interface{} localVarFormFileName string localVarFileName string localVarFileBytes []byte - localVarReturnValue GetDeploymentResourcesResponse + localVarReturnValue []map[string]interface{} ) // create path and map variables @@ -595,21 +599,13 @@ func (a *DeploymentsApiService) GetDeploymentResource(ctx context.Context, orgId return localVarReturnValue, localVarHttpResponse, err } - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericOpenAPIError{ body: localVarBody, error: localVarHttpResponse.Status, } if localVarHttpResponse.StatusCode == 200 { - var v GetDeploymentResourcesResponse + var v []map[string]interface{} err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) if err != nil { newErr.error = err.Error() @@ -651,6 +647,15 @@ func (a *DeploymentsApiService) GetDeploymentResource(ctx context.Context, orgId return localVarReturnValue, localVarHttpResponse, newErr } + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, nil } @@ -802,21 +807,21 @@ Listing Helm deployments * @param id Selected cluster identification (number) * @param optional nil or *ListDeploymentsOpts - Optional Parameters: * @param "Tag" (optional.String) - Deployment tag to filter for -@return ListDeploymentsResponse +@return []map[string]interface{} */ type ListDeploymentsOpts struct { Tag optional.String } -func (a *DeploymentsApiService) ListDeployments(ctx context.Context, orgId int32, id int32, localVarOptionals *ListDeploymentsOpts) (ListDeploymentsResponse, *http.Response, error) { +func (a *DeploymentsApiService) ListDeployments(ctx context.Context, orgId int32, id int32, localVarOptionals *ListDeploymentsOpts) ([]map[string]interface{}, *http.Response, error) { var ( localVarHttpMethod = strings.ToUpper("Get") localVarPostBody interface{} localVarFormFileName string localVarFileName string localVarFileBytes []byte - localVarReturnValue ListDeploymentsResponse + localVarReturnValue []map[string]interface{} ) // create path and map variables @@ -864,21 +869,13 @@ func (a *DeploymentsApiService) ListDeployments(ctx context.Context, orgId int32 return localVarReturnValue, localVarHttpResponse, err } - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericOpenAPIError{ body: localVarBody, error: localVarHttpResponse.Status, } if localVarHttpResponse.StatusCode == 200 { - var v ListDeploymentsResponse + var v []map[string]interface{} err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) if err != nil { newErr.error = err.Error() @@ -920,6 +917,15 @@ func (a *DeploymentsApiService) ListDeployments(ctx context.Context, orgId int32 return localVarReturnValue, localVarHttpResponse, newErr } + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, nil } @@ -988,14 +994,6 @@ func (a *DeploymentsApiService) UpdateDeployment(ctx context.Context, orgId int3 return localVarReturnValue, localVarHttpResponse, err } - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericOpenAPIError{ body: localVarBody, @@ -1044,5 +1042,14 @@ func (a *DeploymentsApiService) UpdateDeployment(ctx context.Context, orgId int3 return localVarReturnValue, localVarHttpResponse, newErr } + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, nil } diff --git a/client/api_domain.go b/client/api_domain.go index bfa73314c3..e9c4e502f0 100644 --- a/client/api_domain.go +++ b/client/api_domain.go @@ -96,14 +96,6 @@ func (a *DomainApiService) GetDomain(ctx context.Context, orgId int32, localVarO return localVarReturnValue, localVarHttpResponse, err } - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericOpenAPIError{ body: localVarBody, @@ -122,5 +114,14 @@ func (a *DomainApiService) GetDomain(ctx context.Context, orgId int32, localVarO return localVarReturnValue, localVarHttpResponse, newErr } + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, nil } diff --git a/client/api_helm.go b/client/api_helm.go index 5ffdd6e185..d435a6f809 100644 --- a/client/api_helm.go +++ b/client/api_helm.go @@ -100,14 +100,6 @@ func (a *HelmApiService) HelmChartDetails(ctx context.Context, orgId int32, repo return localVarReturnValue, localVarHttpResponse, err } - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericOpenAPIError{ body: localVarBody, @@ -156,6 +148,15 @@ func (a *HelmApiService) HelmChartDetails(ctx context.Context, orgId int32, repo return localVarReturnValue, localVarHttpResponse, newErr } + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, nil } @@ -168,7 +169,7 @@ Get available Helm chart's list * @param "Name" (optional.String) - Chart Name * @param "Repo" (optional.String) - Repo Name * @param "Version" (optional.String) - Chart version (latest) -@return HelmChartsListResponse +@return []map[string]interface{} */ type HelmChartListOpts struct { @@ -177,14 +178,14 @@ type HelmChartListOpts struct { Version optional.String } -func (a *HelmApiService) HelmChartList(ctx context.Context, orgId int32, localVarOptionals *HelmChartListOpts) (HelmChartsListResponse, *http.Response, error) { +func (a *HelmApiService) HelmChartList(ctx context.Context, orgId int32, localVarOptionals *HelmChartListOpts) ([]map[string]interface{}, *http.Response, error) { var ( localVarHttpMethod = strings.ToUpper("Get") localVarPostBody interface{} localVarFormFileName string localVarFileName string localVarFileBytes []byte - localVarReturnValue HelmChartsListResponse + localVarReturnValue []map[string]interface{} ) // create path and map variables @@ -237,21 +238,13 @@ func (a *HelmApiService) HelmChartList(ctx context.Context, orgId int32, localVa return localVarReturnValue, localVarHttpResponse, err } - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericOpenAPIError{ body: localVarBody, error: localVarHttpResponse.Status, } if localVarHttpResponse.StatusCode == 200 { - var v HelmChartsListResponse + var v []map[string]interface{} err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) if err != nil { newErr.error = err.Error() @@ -293,6 +286,15 @@ func (a *HelmApiService) HelmChartList(ctx context.Context, orgId int32, localVa return localVarReturnValue, localVarHttpResponse, newErr } + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, nil } @@ -301,16 +303,16 @@ HelmApiService List repositories Listing Helm repositories in the cluster * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param orgId Organization identification -@return HelmReposListResponse +@return []HelmRepoListItem */ -func (a *HelmApiService) HelmInit(ctx context.Context, orgId int32) (HelmReposListResponse, *http.Response, error) { +func (a *HelmApiService) HelmListRepos(ctx context.Context, orgId int32) ([]HelmRepoListItem, *http.Response, error) { var ( localVarHttpMethod = strings.ToUpper("Get") localVarPostBody interface{} localVarFormFileName string localVarFileName string localVarFileBytes []byte - localVarReturnValue HelmReposListResponse + localVarReturnValue []HelmRepoListItem ) // create path and map variables @@ -354,21 +356,13 @@ func (a *HelmApiService) HelmInit(ctx context.Context, orgId int32) (HelmReposLi return localVarReturnValue, localVarHttpResponse, err } - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericOpenAPIError{ body: localVarBody, error: localVarHttpResponse.Status, } if localVarHttpResponse.StatusCode == 200 { - var v HelmReposListResponse + var v []HelmRepoListItem err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) if err != nil { newErr.error = err.Error() @@ -410,6 +404,15 @@ func (a *HelmApiService) HelmInit(ctx context.Context, orgId int32) (HelmReposLi return localVarReturnValue, localVarHttpResponse, newErr } + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, nil } @@ -474,14 +477,6 @@ func (a *HelmApiService) HelmReposAdd(ctx context.Context, orgId int32, helmRepo return localVarReturnValue, localVarHttpResponse, err } - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericOpenAPIError{ body: localVarBody, @@ -530,6 +525,15 @@ func (a *HelmApiService) HelmReposAdd(ctx context.Context, orgId int32, helmRepo return localVarReturnValue, localVarHttpResponse, newErr } + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, nil } @@ -593,14 +597,6 @@ func (a *HelmApiService) HelmReposDelete(ctx context.Context, orgId int32, repoN return localVarReturnValue, localVarHttpResponse, err } - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericOpenAPIError{ body: localVarBody, @@ -649,6 +645,15 @@ func (a *HelmApiService) HelmReposDelete(ctx context.Context, orgId int32, repoN return localVarReturnValue, localVarHttpResponse, newErr } + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, nil } @@ -715,14 +720,6 @@ func (a *HelmApiService) HelmReposModify(ctx context.Context, orgId int32, repoN return localVarReturnValue, localVarHttpResponse, err } - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericOpenAPIError{ body: localVarBody, @@ -759,7 +756,7 @@ func (a *HelmApiService) HelmReposModify(ctx context.Context, orgId int32, repoN return localVarReturnValue, localVarHttpResponse, newErr } if localVarHttpResponse.StatusCode == 404 { - var v map[string]interface{} + var v HelmNotFound err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) if err != nil { newErr.error = err.Error() @@ -771,6 +768,15 @@ func (a *HelmApiService) HelmReposModify(ctx context.Context, orgId int32, repoN return localVarReturnValue, localVarHttpResponse, newErr } + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, nil } @@ -834,14 +840,6 @@ func (a *HelmApiService) HelmReposUpdate(ctx context.Context, orgId int32, repoN return localVarReturnValue, localVarHttpResponse, err } - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericOpenAPIError{ body: localVarBody, @@ -878,7 +876,7 @@ func (a *HelmApiService) HelmReposUpdate(ctx context.Context, orgId int32, repoN return localVarReturnValue, localVarHttpResponse, newErr } if localVarHttpResponse.StatusCode == 404 { - var v map[string]interface{} + var v HelmNotFound err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) if err != nil { newErr.error = err.Error() @@ -890,5 +888,14 @@ func (a *HelmApiService) HelmReposUpdate(ctx context.Context, orgId int32, repoN return localVarReturnValue, localVarHttpResponse, newErr } + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, nil } diff --git a/client/api_hpa.go b/client/api_hpa.go index bd8e1833ae..a0f730a1f2 100644 --- a/client/api_hpa.go +++ b/client/api_hpa.go @@ -135,16 +135,16 @@ Get scaling info for a Helm deployment * @param orgId Organization identification * @param id Selected cluster identification (number) * @param scaleTarget Deployment or StatefulSet name -@return DeploymentScalingResponse +@return []map[string]interface{} */ -func (a *HpaApiService) GetDeploymentAutoscaling(ctx context.Context, orgId int32, id int32, scaleTarget string) (DeploymentScalingResponse, *http.Response, error) { +func (a *HpaApiService) GetDeploymentAutoscaling(ctx context.Context, orgId int32, id int32, scaleTarget string) ([]map[string]interface{}, *http.Response, error) { var ( localVarHttpMethod = strings.ToUpper("Get") localVarPostBody interface{} localVarFormFileName string localVarFileName string localVarFileBytes []byte - localVarReturnValue DeploymentScalingResponse + localVarReturnValue []map[string]interface{} ) // create path and map variables @@ -190,21 +190,13 @@ func (a *HpaApiService) GetDeploymentAutoscaling(ctx context.Context, orgId int3 return localVarReturnValue, localVarHttpResponse, err } - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericOpenAPIError{ body: localVarBody, error: localVarHttpResponse.Status, } if localVarHttpResponse.StatusCode == 200 { - var v DeploymentScalingResponse + var v []map[string]interface{} err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) if err != nil { newErr.error = err.Error() @@ -246,6 +238,15 @@ func (a *HpaApiService) GetDeploymentAutoscaling(ctx context.Context, orgId int3 return localVarReturnValue, localVarHttpResponse, newErr } + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, nil } diff --git a/client/api_images.go b/client/api_images.go index 43cbe9d5fb..d1d517bbfd 100644 --- a/client/api_images.go +++ b/client/api_images.go @@ -34,16 +34,16 @@ List Deployments by Image * @param orgId Organization identification * @param id Selected cluster identification (number) * @param imageDigest Image digest -@return ListDeploymentsResponse +@return []map[string]interface{} */ -func (a *ImagesApiService) ListDeploymentsByImage(ctx context.Context, orgId int32, id int32, imageDigest string) (ListDeploymentsResponse, *http.Response, error) { +func (a *ImagesApiService) ListDeploymentsByImage(ctx context.Context, orgId int32, id int32, imageDigest string) ([]map[string]interface{}, *http.Response, error) { var ( localVarHttpMethod = strings.ToUpper("Get") localVarPostBody interface{} localVarFormFileName string localVarFileName string localVarFileBytes []byte - localVarReturnValue ListDeploymentsResponse + localVarReturnValue []map[string]interface{} ) // create path and map variables @@ -89,21 +89,13 @@ func (a *ImagesApiService) ListDeploymentsByImage(ctx context.Context, orgId int return localVarReturnValue, localVarHttpResponse, err } - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericOpenAPIError{ body: localVarBody, error: localVarHttpResponse.Status, } if localVarHttpResponse.StatusCode == 200 { - var v ListDeploymentsResponse + var v []map[string]interface{} err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) if err != nil { newErr.error = err.Error() @@ -145,6 +137,15 @@ func (a *ImagesApiService) ListDeploymentsByImage(ctx context.Context, orgId int return localVarReturnValue, localVarHttpResponse, newErr } + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, nil } @@ -154,16 +155,16 @@ List Images used in cluster * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param orgId Organization identification * @param id Selected cluster identification (number) -@return ClusterImageList +@return []ClusterImage */ -func (a *ImagesApiService) ListImages(ctx context.Context, orgId int32, id int32) (ClusterImageList, *http.Response, error) { +func (a *ImagesApiService) ListImages(ctx context.Context, orgId int32, id int32) ([]ClusterImage, *http.Response, error) { var ( localVarHttpMethod = strings.ToUpper("Get") localVarPostBody interface{} localVarFormFileName string localVarFileName string localVarFileBytes []byte - localVarReturnValue ClusterImageList + localVarReturnValue []ClusterImage ) // create path and map variables @@ -208,21 +209,13 @@ func (a *ImagesApiService) ListImages(ctx context.Context, orgId int32, id int32 return localVarReturnValue, localVarHttpResponse, err } - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericOpenAPIError{ body: localVarBody, error: localVarHttpResponse.Status, } if localVarHttpResponse.StatusCode == 200 { - var v ClusterImageList + var v []ClusterImage err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) if err != nil { newErr.error = err.Error() @@ -264,5 +257,14 @@ func (a *ImagesApiService) ListImages(ctx context.Context, orgId int32, id int32 return localVarReturnValue, localVarHttpResponse, newErr } + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, nil } diff --git a/client/api_imagescan.go b/client/api_imagescan.go index 6fcf2118a3..26bc3d666e 100644 --- a/client/api_imagescan.go +++ b/client/api_imagescan.go @@ -89,14 +89,6 @@ func (a *ImagescanApiService) GetImageVulnerabilities(ctx context.Context, orgId return localVarReturnValue, localVarHttpResponse, err } - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericOpenAPIError{ body: localVarBody, @@ -135,6 +127,15 @@ func (a *ImagescanApiService) GetImageVulnerabilities(ctx context.Context, orgId return localVarReturnValue, localVarHttpResponse, newErr } + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, nil } @@ -200,14 +201,6 @@ func (a *ImagescanApiService) GetScanResult(ctx context.Context, orgId int32, id return localVarReturnValue, localVarHttpResponse, err } - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericOpenAPIError{ body: localVarBody, @@ -246,6 +239,15 @@ func (a *ImagescanApiService) GetScanResult(ctx context.Context, orgId int32, id return localVarReturnValue, localVarHttpResponse, newErr } + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, nil } @@ -256,16 +258,16 @@ Scan Images used in cluster * @param orgId Organization identification * @param id Selected cluster identification (number) * @param clusterImage -@return AnchoreImageList +@return []AnchoreImage */ -func (a *ImagescanApiService) ScanImages(ctx context.Context, orgId int32, id int32, clusterImage []ClusterImage) (AnchoreImageList, *http.Response, error) { +func (a *ImagescanApiService) ScanImages(ctx context.Context, orgId int32, id int32, clusterImage []ClusterImage) ([]AnchoreImage, *http.Response, error) { var ( localVarHttpMethod = strings.ToUpper("Post") localVarPostBody interface{} localVarFormFileName string localVarFileName string localVarFileBytes []byte - localVarReturnValue AnchoreImageList + localVarReturnValue []AnchoreImage ) // create path and map variables @@ -312,21 +314,13 @@ func (a *ImagescanApiService) ScanImages(ctx context.Context, orgId int32, id in return localVarReturnValue, localVarHttpResponse, err } - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericOpenAPIError{ body: localVarBody, error: localVarHttpResponse.Status, } if localVarHttpResponse.StatusCode == 200 { - var v AnchoreImageList + var v []AnchoreImage err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) if err != nil { newErr.error = err.Error() @@ -358,5 +352,14 @@ func (a *ImagescanApiService) ScanImages(ctx context.Context, orgId int32, id in return localVarReturnValue, localVarHttpResponse, newErr } + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, nil } diff --git a/client/api_info.go b/client/api_info.go index 259838f355..23447149d4 100644 --- a/client/api_info.go +++ b/client/api_info.go @@ -88,14 +88,6 @@ func (a *InfoApiService) CreateResourceGroup(ctx context.Context, orgId int32, c return localVarReturnValue, localVarHttpResponse, err } - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericOpenAPIError{ body: localVarBody, @@ -134,6 +126,15 @@ func (a *InfoApiService) CreateResourceGroup(ctx context.Context, orgId int32, c return localVarReturnValue, localVarHttpResponse, newErr } + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, nil } @@ -294,14 +295,6 @@ func (a *InfoApiService) GetAmazonConfig(ctx context.Context, orgId int32, secre return localVarReturnValue, localVarHttpResponse, err } - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericOpenAPIError{ body: localVarBody, @@ -340,6 +333,15 @@ func (a *InfoApiService) GetAmazonConfig(ctx context.Context, orgId int32, secre return localVarReturnValue, localVarHttpResponse, newErr } + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, nil } @@ -407,14 +409,6 @@ func (a *InfoApiService) GetAzureConfig(ctx context.Context, orgId int32, secret return localVarReturnValue, localVarHttpResponse, err } - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericOpenAPIError{ body: localVarBody, @@ -453,6 +447,15 @@ func (a *InfoApiService) GetAzureConfig(ctx context.Context, orgId int32, secret return localVarReturnValue, localVarHttpResponse, newErr } + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, nil } @@ -520,14 +523,6 @@ func (a *InfoApiService) GetGoogleConfig(ctx context.Context, orgId int32, secre return localVarReturnValue, localVarHttpResponse, err } - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericOpenAPIError{ body: localVarBody, @@ -566,6 +561,15 @@ func (a *InfoApiService) GetGoogleConfig(ctx context.Context, orgId int32, secre return localVarReturnValue, localVarHttpResponse, newErr } + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, nil } @@ -629,14 +633,6 @@ func (a *InfoApiService) GetResourceGroups(ctx context.Context, orgId int32, sec return localVarReturnValue, localVarHttpResponse, err } - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericOpenAPIError{ body: localVarBody, @@ -675,6 +671,15 @@ func (a *InfoApiService) GetResourceGroups(ctx context.Context, orgId int32, sec return localVarReturnValue, localVarHttpResponse, newErr } + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, nil } @@ -736,14 +741,6 @@ func (a *InfoApiService) GetSupportedClouds(ctx context.Context, orgId int32) (S return localVarReturnValue, localVarHttpResponse, err } - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericOpenAPIError{ body: localVarBody, @@ -772,5 +769,14 @@ func (a *InfoApiService) GetSupportedClouds(ctx context.Context, orgId int32) (S return localVarReturnValue, localVarHttpResponse, newErr } + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, nil } diff --git a/client/api_network.go b/client/api_network.go index 845dda0915..4d1d84b706 100644 --- a/client/api_network.go +++ b/client/api_network.go @@ -39,7 +39,7 @@ List route tables of the given VPC network * @param optional nil or *ListRouteTablesOpts - Optional Parameters: * @param "Region" (optional.String) - Identifies the region of the VPC network (required when cloudType != azure) * @param "ResourceGroup" (optional.String) - Identifies the resource group of the Azure virtual network (required when cloudType == azure) -@return ListRouteTablesResponse +@return []RouteTableInfo */ type ListRouteTablesOpts struct { @@ -47,14 +47,14 @@ type ListRouteTablesOpts struct { ResourceGroup optional.String } -func (a *NetworkApiService) ListRouteTables(ctx context.Context, orgId int32, networkId string, secretId string, cloudType string, localVarOptionals *ListRouteTablesOpts) (ListRouteTablesResponse, *http.Response, error) { +func (a *NetworkApiService) ListRouteTables(ctx context.Context, orgId int32, networkId string, secretId string, cloudType string, localVarOptionals *ListRouteTablesOpts) ([]RouteTableInfo, *http.Response, error) { var ( localVarHttpMethod = strings.ToUpper("Get") localVarPostBody interface{} localVarFormFileName string localVarFileName string localVarFileBytes []byte - localVarReturnValue ListRouteTablesResponse + localVarReturnValue []RouteTableInfo ) // create path and map variables @@ -107,21 +107,13 @@ func (a *NetworkApiService) ListRouteTables(ctx context.Context, orgId int32, ne return localVarReturnValue, localVarHttpResponse, err } - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericOpenAPIError{ body: localVarBody, error: localVarHttpResponse.Status, } if localVarHttpResponse.StatusCode == 200 { - var v ListRouteTablesResponse + var v []RouteTableInfo err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) if err != nil { newErr.error = err.Error() @@ -163,6 +155,15 @@ func (a *NetworkApiService) ListRouteTables(ctx context.Context, orgId int32, ne return localVarReturnValue, localVarHttpResponse, newErr } + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, nil } @@ -176,7 +177,7 @@ List VPC networks accessible by the organization. * @param optional nil or *ListVPCNetworksOpts - Optional Parameters: * @param "Region" (optional.String) - Identifies the region of the VPC network (required when cloudType != azure) * @param "ResourceGroup" (optional.String) - Identifies the resource group of the Azure virtual network (required when cloudType == azure) -@return ListVpcNetworksResponse +@return []VpcNetworkInfo */ type ListVPCNetworksOpts struct { @@ -184,14 +185,14 @@ type ListVPCNetworksOpts struct { ResourceGroup optional.String } -func (a *NetworkApiService) ListVPCNetworks(ctx context.Context, orgId int32, secretId string, cloudType string, localVarOptionals *ListVPCNetworksOpts) (ListVpcNetworksResponse, *http.Response, error) { +func (a *NetworkApiService) ListVPCNetworks(ctx context.Context, orgId int32, secretId string, cloudType string, localVarOptionals *ListVPCNetworksOpts) ([]VpcNetworkInfo, *http.Response, error) { var ( localVarHttpMethod = strings.ToUpper("Get") localVarPostBody interface{} localVarFormFileName string localVarFileName string localVarFileBytes []byte - localVarReturnValue ListVpcNetworksResponse + localVarReturnValue []VpcNetworkInfo ) // create path and map variables @@ -243,21 +244,13 @@ func (a *NetworkApiService) ListVPCNetworks(ctx context.Context, orgId int32, se return localVarReturnValue, localVarHttpResponse, err } - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericOpenAPIError{ body: localVarBody, error: localVarHttpResponse.Status, } if localVarHttpResponse.StatusCode == 200 { - var v ListVpcNetworksResponse + var v []VpcNetworkInfo err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) if err != nil { newErr.error = err.Error() @@ -299,6 +292,15 @@ func (a *NetworkApiService) ListVPCNetworks(ctx context.Context, orgId int32, se return localVarReturnValue, localVarHttpResponse, newErr } + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, nil } @@ -313,7 +315,7 @@ List subnetworks of the given VPC network * @param optional nil or *ListVPCSubnetsOpts - Optional Parameters: * @param "Region" (optional.String) - Identifies the region of the VPC network (required when cloudType != azure) * @param "ResourceGroup" (optional.String) - Identifies the resource group of the Azure virtual network (required when cloudType == azure) -@return ListVpcSubnetsResponse +@return []SubnetInfo */ type ListVPCSubnetsOpts struct { @@ -321,14 +323,14 @@ type ListVPCSubnetsOpts struct { ResourceGroup optional.String } -func (a *NetworkApiService) ListVPCSubnets(ctx context.Context, orgId int32, networkId string, secretId string, cloudType string, localVarOptionals *ListVPCSubnetsOpts) (ListVpcSubnetsResponse, *http.Response, error) { +func (a *NetworkApiService) ListVPCSubnets(ctx context.Context, orgId int32, networkId string, secretId string, cloudType string, localVarOptionals *ListVPCSubnetsOpts) ([]SubnetInfo, *http.Response, error) { var ( localVarHttpMethod = strings.ToUpper("Get") localVarPostBody interface{} localVarFormFileName string localVarFileName string localVarFileBytes []byte - localVarReturnValue ListVpcSubnetsResponse + localVarReturnValue []SubnetInfo ) // create path and map variables @@ -381,21 +383,13 @@ func (a *NetworkApiService) ListVPCSubnets(ctx context.Context, orgId int32, net return localVarReturnValue, localVarHttpResponse, err } - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericOpenAPIError{ body: localVarBody, error: localVarHttpResponse.Status, } if localVarHttpResponse.StatusCode == 200 { - var v ListVpcSubnetsResponse + var v []SubnetInfo err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) if err != nil { newErr.error = err.Error() @@ -437,5 +431,14 @@ func (a *NetworkApiService) ListVPCSubnets(ctx context.Context, orgId int32, net return localVarReturnValue, localVarHttpResponse, newErr } + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, nil } diff --git a/client/api_organizations.go b/client/api_organizations.go index 161273e28c..8c772529f2 100644 --- a/client/api_organizations.go +++ b/client/api_organizations.go @@ -85,14 +85,6 @@ func (a *OrganizationsApiService) GetOrg(ctx context.Context, orgId int32) (Orga return localVarReturnValue, localVarHttpResponse, err } - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericOpenAPIError{ body: localVarBody, @@ -141,6 +133,15 @@ func (a *OrganizationsApiService) GetOrg(ctx context.Context, orgId int32) (Orga return localVarReturnValue, localVarHttpResponse, newErr } + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, nil } @@ -200,14 +201,6 @@ func (a *OrganizationsApiService) ListOrgs(ctx context.Context) ([]OrganizationL return localVarReturnValue, localVarHttpResponse, err } - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericOpenAPIError{ body: localVarBody, @@ -246,6 +239,15 @@ func (a *OrganizationsApiService) ListOrgs(ctx context.Context) ([]OrganizationL return localVarReturnValue, localVarHttpResponse, newErr } + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, nil } diff --git a/client/api_policies.go b/client/api_policies.go index f523569582..bba049588e 100644 --- a/client/api_policies.go +++ b/client/api_policies.go @@ -91,14 +91,6 @@ func (a *PoliciesApiService) AddPolicy(ctx context.Context, id int32, orgId int3 return localVarReturnValue, localVarHttpResponse, err } - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericOpenAPIError{ body: localVarBody, @@ -127,6 +119,15 @@ func (a *PoliciesApiService) AddPolicy(ctx context.Context, id int32, orgId int3 return localVarReturnValue, localVarHttpResponse, newErr } + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, nil } @@ -230,21 +231,21 @@ Get the policy bundle content * @param policyId * @param optional nil or *GetPolicyOpts - Optional Parameters: * @param "Detail" (optional.Bool) - Include policy bundle detail in the form of the full bundle content for each entry -@return PolicyBundleList +@return []PolicyBundleRecord */ type GetPolicyOpts struct { Detail optional.Bool } -func (a *PoliciesApiService) GetPolicy(ctx context.Context, id int32, orgId int32, policyId string, localVarOptionals *GetPolicyOpts) (PolicyBundleList, *http.Response, error) { +func (a *PoliciesApiService) GetPolicy(ctx context.Context, id int32, orgId int32, policyId string, localVarOptionals *GetPolicyOpts) ([]PolicyBundleRecord, *http.Response, error) { var ( localVarHttpMethod = strings.ToUpper("Get") localVarPostBody interface{} localVarFormFileName string localVarFileName string localVarFileBytes []byte - localVarReturnValue PolicyBundleList + localVarReturnValue []PolicyBundleRecord ) // create path and map variables @@ -293,21 +294,13 @@ func (a *PoliciesApiService) GetPolicy(ctx context.Context, id int32, orgId int3 return localVarReturnValue, localVarHttpResponse, err } - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericOpenAPIError{ body: localVarBody, error: localVarHttpResponse.Status, } if localVarHttpResponse.StatusCode == 200 { - var v PolicyBundleList + var v []PolicyBundleRecord err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) if err != nil { newErr.error = err.Error() @@ -329,6 +322,15 @@ func (a *PoliciesApiService) GetPolicy(ctx context.Context, id int32, orgId int3 return localVarReturnValue, localVarHttpResponse, newErr } + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, nil } @@ -340,21 +342,21 @@ List all saved policy bundles * @param orgId Organization identification * @param optional nil or *ListPoliciesOpts - Optional Parameters: * @param "Detail" (optional.Bool) - Include policy bundle detail in the form of the full bundle content for each entry -@return PolicyBundleList +@return []PolicyBundleRecord */ type ListPoliciesOpts struct { Detail optional.Bool } -func (a *PoliciesApiService) ListPolicies(ctx context.Context, id int32, orgId int32, localVarOptionals *ListPoliciesOpts) (PolicyBundleList, *http.Response, error) { +func (a *PoliciesApiService) ListPolicies(ctx context.Context, id int32, orgId int32, localVarOptionals *ListPoliciesOpts) ([]PolicyBundleRecord, *http.Response, error) { var ( localVarHttpMethod = strings.ToUpper("Get") localVarPostBody interface{} localVarFormFileName string localVarFileName string localVarFileBytes []byte - localVarReturnValue PolicyBundleList + localVarReturnValue []PolicyBundleRecord ) // create path and map variables @@ -402,21 +404,13 @@ func (a *PoliciesApiService) ListPolicies(ctx context.Context, id int32, orgId i return localVarReturnValue, localVarHttpResponse, err } - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericOpenAPIError{ body: localVarBody, error: localVarHttpResponse.Status, } if localVarHttpResponse.StatusCode == 200 { - var v PolicyBundleList + var v []PolicyBundleRecord err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) if err != nil { newErr.error = err.Error() @@ -428,6 +422,15 @@ func (a *PoliciesApiService) ListPolicies(ctx context.Context, id int32, orgId i return localVarReturnValue, localVarHttpResponse, newErr } + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, nil } @@ -441,21 +444,21 @@ Update/replace and existing policy * @param policyBundleRecord * @param optional nil or *UpdatePolicyOpts - Optional Parameters: * @param "Active" (optional.Bool) - Mark policy as active -@return PolicyBundleList +@return []PolicyBundleRecord */ type UpdatePolicyOpts struct { Active optional.Bool } -func (a *PoliciesApiService) UpdatePolicy(ctx context.Context, id int32, orgId int32, policyId string, policyBundleRecord PolicyBundleRecord, localVarOptionals *UpdatePolicyOpts) (PolicyBundleList, *http.Response, error) { +func (a *PoliciesApiService) UpdatePolicy(ctx context.Context, id int32, orgId int32, policyId string, policyBundleRecord PolicyBundleRecord, localVarOptionals *UpdatePolicyOpts) ([]PolicyBundleRecord, *http.Response, error) { var ( localVarHttpMethod = strings.ToUpper("Put") localVarPostBody interface{} localVarFormFileName string localVarFileName string localVarFileBytes []byte - localVarReturnValue PolicyBundleList + localVarReturnValue []PolicyBundleRecord ) // create path and map variables @@ -506,21 +509,13 @@ func (a *PoliciesApiService) UpdatePolicy(ctx context.Context, id int32, orgId i return localVarReturnValue, localVarHttpResponse, err } - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericOpenAPIError{ body: localVarBody, error: localVarHttpResponse.Status, } if localVarHttpResponse.StatusCode == 200 { - var v PolicyBundleList + var v []PolicyBundleRecord err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) if err != nil { newErr.error = err.Error() @@ -542,5 +537,14 @@ func (a *PoliciesApiService) UpdatePolicy(ctx context.Context, id int32, orgId i return localVarReturnValue, localVarHttpResponse, newErr } + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, nil } diff --git a/client/api_profiles.go b/client/api_profiles.go index 6fd60c71eb..2aacb28f91 100644 --- a/client/api_profiles.go +++ b/client/api_profiles.go @@ -288,14 +288,6 @@ func (a *ProfilesApiService) ListProfiles(ctx context.Context, orgId int32, dist return localVarReturnValue, localVarHttpResponse, err } - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericOpenAPIError{ body: localVarBody, @@ -334,6 +326,15 @@ func (a *ProfilesApiService) ListProfiles(ctx context.Context, orgId int32, dist return localVarReturnValue, localVarHttpResponse, newErr } + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, nil } diff --git a/client/api_projects.go b/client/api_projects.go index 162b4db3ce..9ce3dd9660 100644 --- a/client/api_projects.go +++ b/client/api_projects.go @@ -87,14 +87,6 @@ func (a *ProjectsApiService) GetProjects(ctx context.Context, orgId int32, secre return localVarReturnValue, localVarHttpResponse, err } - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericOpenAPIError{ body: localVarBody, @@ -133,5 +125,14 @@ func (a *ProjectsApiService) GetProjects(ctx context.Context, orgId int32, secre return localVarReturnValue, localVarHttpResponse, newErr } + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, nil } diff --git a/client/api_scanlog.go b/client/api_scanlog.go index 6e99b806de..754ea34e2f 100644 --- a/client/api_scanlog.go +++ b/client/api_scanlog.go @@ -33,16 +33,16 @@ List scans * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param id Selected cluster identification (number) * @param orgId Organization identification -@return ScanLogList +@return []ScanLogItem */ -func (a *ScanlogApiService) ListScans(ctx context.Context, id int32, orgId int32) (ScanLogList, *http.Response, error) { +func (a *ScanlogApiService) ListScans(ctx context.Context, id int32, orgId int32) ([]ScanLogItem, *http.Response, error) { var ( localVarHttpMethod = strings.ToUpper("Get") localVarPostBody interface{} localVarFormFileName string localVarFileName string localVarFileBytes []byte - localVarReturnValue ScanLogList + localVarReturnValue []ScanLogItem ) // create path and map variables @@ -87,21 +87,13 @@ func (a *ScanlogApiService) ListScans(ctx context.Context, id int32, orgId int32 return localVarReturnValue, localVarHttpResponse, err } - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericOpenAPIError{ body: localVarBody, error: localVarHttpResponse.Status, } if localVarHttpResponse.StatusCode == 200 { - var v ScanLogList + var v []ScanLogItem err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) if err != nil { newErr.error = err.Error() @@ -113,6 +105,15 @@ func (a *ScanlogApiService) ListScans(ctx context.Context, id int32, orgId int32 return localVarReturnValue, localVarHttpResponse, newErr } + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, nil } @@ -123,16 +124,16 @@ List scans by release * @param id Selected cluster identification (number) * @param orgId Organization identification * @param releaseName release name identification -@return ScanLogList +@return []ScanLogItem */ -func (a *ScanlogApiService) ListScansByRelease(ctx context.Context, id int32, orgId int32, releaseName string) (ScanLogList, *http.Response, error) { +func (a *ScanlogApiService) ListScansByRelease(ctx context.Context, id int32, orgId int32, releaseName string) ([]ScanLogItem, *http.Response, error) { var ( localVarHttpMethod = strings.ToUpper("Get") localVarPostBody interface{} localVarFormFileName string localVarFileName string localVarFileBytes []byte - localVarReturnValue ScanLogList + localVarReturnValue []ScanLogItem ) // create path and map variables @@ -178,21 +179,13 @@ func (a *ScanlogApiService) ListScansByRelease(ctx context.Context, id int32, or return localVarReturnValue, localVarHttpResponse, err } - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericOpenAPIError{ body: localVarBody, error: localVarHttpResponse.Status, } if localVarHttpResponse.StatusCode == 200 { - var v ScanLogList + var v []ScanLogItem err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) if err != nil { newErr.error = err.Error() @@ -204,5 +197,14 @@ func (a *ScanlogApiService) ListScansByRelease(ctx context.Context, id int32, or return localVarReturnValue, localVarHttpResponse, newErr } + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, nil } diff --git a/client/api_secrets.go b/client/api_secrets.go index 3aef63de50..52453fceac 100644 --- a/client/api_secrets.go +++ b/client/api_secrets.go @@ -35,16 +35,16 @@ Add a tag to a secret * @param orgId Organization identification * @param secretId Secret identification * @param tag Tag -@return SecretTags +@return []string */ -func (a *SecretsApiService) AddSecretTag(ctx context.Context, orgId int32, secretId string, tag string) (SecretTags, *http.Response, error) { +func (a *SecretsApiService) AddSecretTag(ctx context.Context, orgId int32, secretId string, tag string) ([]string, *http.Response, error) { var ( localVarHttpMethod = strings.ToUpper("Put") localVarPostBody interface{} localVarFormFileName string localVarFileName string localVarFileBytes []byte - localVarReturnValue SecretTags + localVarReturnValue []string ) // create path and map variables @@ -90,21 +90,13 @@ func (a *SecretsApiService) AddSecretTag(ctx context.Context, orgId int32, secre return localVarReturnValue, localVarHttpResponse, err } - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericOpenAPIError{ body: localVarBody, error: localVarHttpResponse.Status, } if localVarHttpResponse.StatusCode == 200 { - var v SecretTags + var v []string err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) if err != nil { newErr.error = err.Error() @@ -156,6 +148,15 @@ func (a *SecretsApiService) AddSecretTag(ctx context.Context, orgId int32, secre return localVarReturnValue, localVarHttpResponse, newErr } + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, nil } @@ -230,14 +231,6 @@ func (a *SecretsApiService) AddSecrets(ctx context.Context, orgId int32, createS return localVarReturnValue, localVarHttpResponse, err } - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericOpenAPIError{ body: localVarBody, @@ -286,6 +279,15 @@ func (a *SecretsApiService) AddSecrets(ctx context.Context, orgId int32, createS return localVarReturnValue, localVarHttpResponse, newErr } + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, nil } @@ -345,14 +347,6 @@ func (a *SecretsApiService) AllowedSecretsTypes(ctx context.Context) (map[string return localVarReturnValue, localVarHttpResponse, err } - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericOpenAPIError{ body: localVarBody, @@ -381,6 +375,15 @@ func (a *SecretsApiService) AllowedSecretsTypes(ctx context.Context) (map[string return localVarReturnValue, localVarHttpResponse, newErr } + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, nil } @@ -442,14 +445,6 @@ func (a *SecretsApiService) AllowedSecretsTypesKeys(ctx context.Context, type_ s return localVarReturnValue, localVarHttpResponse, err } - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericOpenAPIError{ body: localVarBody, @@ -488,6 +483,15 @@ func (a *SecretsApiService) AllowedSecretsTypesKeys(ctx context.Context, type_ s return localVarReturnValue, localVarHttpResponse, newErr } + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, nil } @@ -761,14 +765,6 @@ func (a *SecretsApiService) GetSecret(ctx context.Context, orgId int32, secretId return localVarReturnValue, localVarHttpResponse, err } - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericOpenAPIError{ body: localVarBody, @@ -827,6 +823,15 @@ func (a *SecretsApiService) GetSecret(ctx context.Context, orgId int32, secretId return localVarReturnValue, localVarHttpResponse, newErr } + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, nil } @@ -836,16 +841,16 @@ Get the tags of a secret * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param orgId Organization identification * @param secretId Secret identification -@return SecretTags +@return []string */ -func (a *SecretsApiService) GetSecretTags(ctx context.Context, orgId int32, secretId string) (SecretTags, *http.Response, error) { +func (a *SecretsApiService) GetSecretTags(ctx context.Context, orgId int32, secretId string) ([]string, *http.Response, error) { var ( localVarHttpMethod = strings.ToUpper("Get") localVarPostBody interface{} localVarFormFileName string localVarFileName string localVarFileBytes []byte - localVarReturnValue SecretTags + localVarReturnValue []string ) // create path and map variables @@ -890,21 +895,13 @@ func (a *SecretsApiService) GetSecretTags(ctx context.Context, orgId int32, secr return localVarReturnValue, localVarHttpResponse, err } - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericOpenAPIError{ body: localVarBody, error: localVarHttpResponse.Status, } if localVarHttpResponse.StatusCode == 200 { - var v SecretTags + var v []string err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) if err != nil { newErr.error = err.Error() @@ -946,6 +943,15 @@ func (a *SecretsApiService) GetSecretTags(ctx context.Context, orgId int32, secr return localVarReturnValue, localVarHttpResponse, newErr } + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, nil } @@ -1027,14 +1033,6 @@ func (a *SecretsApiService) GetSecrets(ctx context.Context, orgId int32, localVa return localVarReturnValue, localVarHttpResponse, err } - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericOpenAPIError{ body: localVarBody, @@ -1073,6 +1071,15 @@ func (a *SecretsApiService) GetSecrets(ctx context.Context, orgId int32, localVa return localVarReturnValue, localVarHttpResponse, newErr } + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, nil } @@ -1149,14 +1156,6 @@ func (a *SecretsApiService) UpdateSecrets(ctx context.Context, orgId int32, secr return localVarReturnValue, localVarHttpResponse, err } - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericOpenAPIError{ body: localVarBody, @@ -1225,6 +1224,15 @@ func (a *SecretsApiService) UpdateSecrets(ctx context.Context, orgId int32, secr return localVarReturnValue, localVarHttpResponse, newErr } + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, nil } diff --git a/client/api_spotguides.go b/client/api_spotguides.go index f447931cc9..5075c3688b 100644 --- a/client/api_spotguides.go +++ b/client/api_spotguides.go @@ -87,14 +87,6 @@ func (a *SpotguidesApiService) GetSpotguideDetail(ctx context.Context, orgId int return localVarReturnValue, localVarHttpResponse, err } - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericOpenAPIError{ body: localVarBody, @@ -123,6 +115,15 @@ func (a *SpotguidesApiService) GetSpotguideDetail(ctx context.Context, orgId int return localVarReturnValue, localVarHttpResponse, newErr } + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, nil } @@ -201,16 +202,16 @@ SpotguidesApiService List spotguides List all available spotguides * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param orgId Organization identification -@return ListSpotguidesResponse +@return []SpotguideDetailsResponse */ -func (a *SpotguidesApiService) ListSpotguides(ctx context.Context, orgId int32) (ListSpotguidesResponse, *http.Response, error) { +func (a *SpotguidesApiService) ListSpotguides(ctx context.Context, orgId int32) ([]SpotguideDetailsResponse, *http.Response, error) { var ( localVarHttpMethod = strings.ToUpper("Get") localVarPostBody interface{} localVarFormFileName string localVarFileName string localVarFileBytes []byte - localVarReturnValue ListSpotguidesResponse + localVarReturnValue []SpotguideDetailsResponse ) // create path and map variables @@ -254,21 +255,13 @@ func (a *SpotguidesApiService) ListSpotguides(ctx context.Context, orgId int32) return localVarReturnValue, localVarHttpResponse, err } - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericOpenAPIError{ body: localVarBody, error: localVarHttpResponse.Status, } if localVarHttpResponse.StatusCode == 200 { - var v ListSpotguidesResponse + var v []SpotguideDetailsResponse err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) if err != nil { newErr.error = err.Error() @@ -280,6 +273,15 @@ func (a *SpotguidesApiService) ListSpotguides(ctx context.Context, orgId int32) return localVarReturnValue, localVarHttpResponse, newErr } + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, nil } diff --git a/client/api_storage.go b/client/api_storage.go index cf4460c6f1..bcc520683c 100644 --- a/client/api_storage.go +++ b/client/api_storage.go @@ -89,14 +89,6 @@ func (a *StorageApiService) CreateObjectStoreBucket(ctx context.Context, orgId i return localVarReturnValue, localVarHttpResponse, err } - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericOpenAPIError{ body: localVarBody, @@ -145,6 +137,15 @@ func (a *StorageApiService) CreateObjectStoreBucket(ctx context.Context, orgId i return localVarReturnValue, localVarHttpResponse, newErr } + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, nil } @@ -363,14 +364,6 @@ func (a *StorageApiService) GetBucket(ctx context.Context, orgId int32, name str return localVarReturnValue, localVarHttpResponse, err } - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericOpenAPIError{ body: localVarBody, @@ -399,6 +392,15 @@ func (a *StorageApiService) GetBucket(ctx context.Context, orgId int32, name str return localVarReturnValue, localVarHttpResponse, newErr } + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, nil } @@ -513,7 +515,7 @@ List object store buckets accessible by the credentials referenced by the given * @param "CloudType" (optional.String) - Identifies the cloud provider - mandatory if secretId header is provided * @param "Include" (optional.String) - Signals whether the secret name is to be returned * @param "Location" (optional.String) - Identifies the cloud region. Required by Amazon only. -@return ListStorageBucketsResponse +@return []BucketInfo */ type ListObjectStoreBucketsOpts struct { @@ -523,14 +525,14 @@ type ListObjectStoreBucketsOpts struct { Location optional.String } -func (a *StorageApiService) ListObjectStoreBuckets(ctx context.Context, orgId int32, localVarOptionals *ListObjectStoreBucketsOpts) (ListStorageBucketsResponse, *http.Response, error) { +func (a *StorageApiService) ListObjectStoreBuckets(ctx context.Context, orgId int32, localVarOptionals *ListObjectStoreBucketsOpts) ([]BucketInfo, *http.Response, error) { var ( localVarHttpMethod = strings.ToUpper("Get") localVarPostBody interface{} localVarFormFileName string localVarFileName string localVarFileBytes []byte - localVarReturnValue ListStorageBucketsResponse + localVarReturnValue []BucketInfo ) // create path and map variables @@ -586,21 +588,13 @@ func (a *StorageApiService) ListObjectStoreBuckets(ctx context.Context, orgId in return localVarReturnValue, localVarHttpResponse, err } - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericOpenAPIError{ body: localVarBody, error: localVarHttpResponse.Status, } if localVarHttpResponse.StatusCode == 200 { - var v ListStorageBucketsResponse + var v []BucketInfo err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) if err != nil { newErr.error = err.Error() @@ -642,5 +636,14 @@ func (a *StorageApiService) ListObjectStoreBuckets(ctx context.Context, orgId in return localVarReturnValue, localVarHttpResponse, newErr } + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, nil } diff --git a/client/api_users.go b/client/api_users.go index 7e69262bc8..27c2ce0512 100644 --- a/client/api_users.go +++ b/client/api_users.go @@ -83,14 +83,6 @@ func (a *UsersApiService) GetCurrentUser(ctx context.Context) (User, *http.Respo return localVarReturnValue, localVarHttpResponse, err } - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericOpenAPIError{ body: localVarBody, @@ -119,6 +111,15 @@ func (a *UsersApiService) GetCurrentUser(ctx context.Context) (User, *http.Respo return localVarReturnValue, localVarHttpResponse, newErr } + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, nil } @@ -182,14 +183,6 @@ func (a *UsersApiService) GetUsers(ctx context.Context, orgId int32, userId int3 return localVarReturnValue, localVarHttpResponse, err } - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericOpenAPIError{ body: localVarBody, @@ -208,6 +201,15 @@ func (a *UsersApiService) GetUsers(ctx context.Context, orgId int32, userId int3 return localVarReturnValue, localVarHttpResponse, newErr } + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, nil } @@ -216,16 +218,16 @@ UsersApiService List users Listing users * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param orgId Organization identification -@return ListUserResponse +@return []User */ -func (a *UsersApiService) ListUsers(ctx context.Context, orgId int32) (ListUserResponse, *http.Response, error) { +func (a *UsersApiService) ListUsers(ctx context.Context, orgId int32) ([]User, *http.Response, error) { var ( localVarHttpMethod = strings.ToUpper("Get") localVarPostBody interface{} localVarFormFileName string localVarFileName string localVarFileBytes []byte - localVarReturnValue ListUserResponse + localVarReturnValue []User ) // create path and map variables @@ -269,21 +271,13 @@ func (a *UsersApiService) ListUsers(ctx context.Context, orgId int32) (ListUserR return localVarReturnValue, localVarHttpResponse, err } - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericOpenAPIError{ body: localVarBody, error: localVarHttpResponse.Status, } if localVarHttpResponse.StatusCode == 200 { - var v ListUserResponse + var v []User err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) if err != nil { newErr.error = err.Error() @@ -295,6 +289,15 @@ func (a *UsersApiService) ListUsers(ctx context.Context, orgId int32) (ListUserR return localVarReturnValue, localVarHttpResponse, newErr } + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, nil } diff --git a/client/api_whitelist.go b/client/api_whitelist.go index 66678f4985..60c44f54db 100644 --- a/client/api_whitelist.go +++ b/client/api_whitelist.go @@ -176,16 +176,16 @@ List Whitelisted deployments * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param orgId Organization identification * @param id Selected cluster identification (number) -@return ReleaseWhiteList +@return []ReleaseWhiteListItem */ -func (a *WhitelistApiService) ListWhitelists(ctx context.Context, orgId int32, id int32) (ReleaseWhiteList, *http.Response, error) { +func (a *WhitelistApiService) ListWhitelists(ctx context.Context, orgId int32, id int32) ([]ReleaseWhiteListItem, *http.Response, error) { var ( localVarHttpMethod = strings.ToUpper("Get") localVarPostBody interface{} localVarFormFileName string localVarFileName string localVarFileBytes []byte - localVarReturnValue ReleaseWhiteList + localVarReturnValue []ReleaseWhiteListItem ) // create path and map variables @@ -230,21 +230,13 @@ func (a *WhitelistApiService) ListWhitelists(ctx context.Context, orgId int32, i return localVarReturnValue, localVarHttpResponse, err } - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericOpenAPIError{ body: localVarBody, error: localVarHttpResponse.Status, } if localVarHttpResponse.StatusCode == 200 { - var v ReleaseWhiteList + var v []ReleaseWhiteListItem err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) if err != nil { newErr.error = err.Error() @@ -256,5 +248,14 @@ func (a *WhitelistApiService) ListWhitelists(ctx context.Context, orgId int32, i return localVarReturnValue, localVarHttpResponse, newErr } + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, nil } diff --git a/client/client.go b/client/client.go index 4d71c865c5..5535ab6187 100644 --- a/client/client.go +++ b/client/client.go @@ -246,7 +246,7 @@ func (c *APIClient) prepareRequest( } // add form parameters and file if available. - if len(formParams) > 0 || (len(fileBytes) > 0 && fileName != "") { + if strings.HasPrefix(headerParams["Content-Type"], "multipart/form-data") && len(formParams) > 0 || (len(fileBytes) > 0 && fileName != "") { if body != nil { return nil, errors.New("Cannot specify postBody and multipart form at the same time.") } @@ -285,6 +285,16 @@ func (c *APIClient) prepareRequest( w.Close() } + if strings.HasPrefix(headerParams["Content-Type"], "application/x-www-form-urlencoded") && len(formParams) > 0 { + if body != nil { + return nil, errors.New("Cannot specify postBody and x-www-form-urlencoded form at the same time.") + } + body = &bytes.Buffer{} + body.WriteString(formParams.Encode()) + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + } + // Setup path and query parameters url, err := url.Parse(path) if err != nil { diff --git a/client/docs/AddClusterProfileRequest.md b/client/docs/AddClusterProfileRequest.md index 655539a6be..fbad4546a1 100644 --- a/client/docs/AddClusterProfileRequest.md +++ b/client/docs/AddClusterProfileRequest.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **Name** | **string** | | [optional] **Location** | **string** | | [optional] **Cloud** | **string** | | [optional] -**Properties** | [**map[string]interface{}**](map[string]interface{}.md) | | [optional] +**Properties** | [**map[string]interface{}**](.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/AmazonAutoScalingGroup.md b/client/docs/AmazonAutoScalingGroup.md index b559da2125..4de886cad6 100644 --- a/client/docs/AmazonAutoScalingGroup.md +++ b/client/docs/AmazonAutoScalingGroup.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Zones** | **[]string** | | **InstanceType** | **string** | | **LaunchConfigurationName** | **string** | | -**LaunchTemplate** | [**AmazonLaunchTemplate**](AmazonLaunchTemplate.md) | | [optional] +**LaunchTemplate** | [**map[string]interface{}**](.md) | | [optional] **VpcID** | **string** | | **SecurityGroupID** | **string** | | **Subnets** | **[]string** | | diff --git a/client/docs/AmazonAutoScalingGroupSize.md b/client/docs/AmazonAutoScalingGroupSize.md index bdcd42977c..4bc6213514 100644 --- a/client/docs/AmazonAutoScalingGroupSize.md +++ b/client/docs/AmazonAutoScalingGroupSize.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Min** | **int32** | | [optional] -**Max** | **int32** | | [optional] +**Min** | **int32** | | +**Max** | **int32** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/AnchoreImage.md b/client/docs/AnchoreImage.md index 547db37d94..11808eace5 100644 --- a/client/docs/AnchoreImage.md +++ b/client/docs/AnchoreImage.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ImageContent** | [**ImageContent**](ImageContent.md) | | [optional] +**ImageContent** | [**map[string]interface{}**](.md) | A metadata content record for a specific image, containing different content type entries | [optional] **ImageDetail** | [**[]ImageDetail**](ImageDetail.md) | Details specific to an image reference and type such as tag and image source | [optional] **LastUpdated** | [**time.Time**](time.Time.md) | | [optional] **CreatedAt** | [**time.Time**](time.Time.md) | | [optional] diff --git a/client/docs/AnchoreImageList.md b/client/docs/AnchoreImageList.md deleted file mode 100644 index 259512ed92..0000000000 --- a/client/docs/AnchoreImageList.md +++ /dev/null @@ -1,9 +0,0 @@ -# AnchoreImageList - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/BasePostHook.md b/client/docs/BasePostHook.md index 1337e2d311..cfe1b7e672 100644 --- a/client/docs/BasePostHook.md +++ b/client/docs/BasePostHook.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**PostHookFunctionName** | [**map[string]interface{}**](map[string]interface{}.md) | | [optional] +**PostHookFunctionName** | [**map[string]interface{}**](.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/BucketInfoSecret.md b/client/docs/BucketInfoSecret.md index c2332c4c42..ea4bb7b56d 100644 --- a/client/docs/BucketInfoSecret.md +++ b/client/docs/BucketInfoSecret.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **string** | | [optional] +**Id** | **string** | | **Name** | **string** | | [optional] **AccessId** | **string** | the secret identifier of the azure access information | [optional] **AccessName** | **string** | the secret name of the azure access information | [optional] diff --git a/client/docs/ClusterImageList.md b/client/docs/ClusterImageList.md deleted file mode 100644 index 4bfcf3bac9..0000000000 --- a/client/docs/ClusterImageList.md +++ /dev/null @@ -1,9 +0,0 @@ -# ClusterImageList - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/ClustersApi.md b/client/docs/ClustersApi.md index 15e6a23792..d520af3f47 100644 --- a/client/docs/ClustersApi.md +++ b/client/docs/ClustersApi.md @@ -18,9 +18,9 @@ Method | HTTP request | Description [**HelmInit**](ClustersApi.md#HelmInit) | **Post** /api/v1/orgs/{orgId}/clusters/{id}/helminit | Initialize Helm [**InstallSecret**](ClustersApi.md#InstallSecret) | **Post** /api/v1/orgs/{orgId}/clusters/{id}/secrets/{secretName} | Install a particular secret into a cluster with optional remapping [**InstallSecrets**](ClustersApi.md#InstallSecrets) | **Post** /api/v1/orgs/{orgId}/clusters/{id}/secrets | Install secrets into cluster +[**ListClusterEndpoints**](ClustersApi.md#ListClusterEndpoints) | **Get** /api/v1/orgs/{orgId}/clusters/{id}/endpoints | List service public endpoints [**ListClusterSecrets**](ClustersApi.md#ListClusterSecrets) | **Get** /api/v1/orgs/{orgId}/clusters/{id}/secrets | List secrets which belongs to cluster [**ListClusters**](ClustersApi.md#ListClusters) | **Get** /api/v1/orgs/{orgId}/clusters | List clusters -[**ListEndpoints**](ClustersApi.md#ListEndpoints) | **Get** /api/v1/orgs/{orgId}/clusters/{id}/endpoints | List service public endpoints [**ListNodes**](ClustersApi.md#ListNodes) | **Get** /api/v1/orgs/{orgId}/clusters/{id}/nodes | List cluser nodes [**MergeSecret**](ClustersApi.md#MergeSecret) | **Patch** /api/v1/orgs/{orgId}/clusters/{id}/secrets/{secretName} | Merge a particular secret with an existing one with optional remapping [**PostReadyPKENode**](ClustersApi.md#PostReadyPKENode) | **Post** /api/v1/orgs/{orgId}/clusters/{id}/pke/ready | List bootstrap commands for namespaces @@ -29,7 +29,7 @@ Method | HTTP request | Description # **ClusterPostHooks** -> ClusterPostHooks(ctx, orgId, id, reRunPostHook) +> ClusterPostHooks(ctx, orgId, id, body) Run posthook functions Run posthook functions @@ -41,7 +41,7 @@ Name | Type | Description | Notes **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. **orgId** | **int32**| Organization identification | **id** | **int32**| Selected cluster identification (number) | - **reRunPostHook** | [**ReRunPostHook**](ReRunPostHook.md)| | + **body** | **map[string]interface{}**| | ### Return type @@ -331,7 +331,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **GetPodDetails** -> PodDetailsResponse GetPodDetails(ctx, orgId, id) +> []PodItem GetPodDetails(ctx, orgId, id) Get pod details Getting pod details @@ -346,7 +346,7 @@ Name | Type | Description | Notes ### Return type -[**PodDetailsResponse**](PodDetailsResponse.md) +[**[]PodItem**](PodItem.md) ### Authorization @@ -450,11 +450,11 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **ListClusterSecrets** -> []SecretItem ListClusterSecrets(ctx, orgId, id, optional) -List secrets which belongs to cluster +# **ListClusterEndpoints** +> ListEndpointsResponse ListClusterEndpoints(ctx, orgId, id, optional) +List service public endpoints -List secrets which belongs to cluster +List service public endpoints ### Required Parameters @@ -463,10 +463,10 @@ Name | Type | Description | Notes **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. **orgId** | **int32**| Organization identification | **id** | **int32**| Selected cluster identification (number) | - **optional** | ***ListClusterSecretsOpts** | optional parameters | nil if no parameters + **optional** | ***ListClusterEndpointsOpts** | optional parameters | nil if no parameters ### Optional Parameters -Optional parameters are passed through a pointer to a ListClusterSecretsOpts struct +Optional parameters are passed through a pointer to a ListClusterEndpointsOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- @@ -476,7 +476,7 @@ Name | Type | Description | Notes ### Return type -[**[]SecretItem**](SecretItem.md) +[**ListEndpointsResponse**](ListEndpointsResponse.md) ### Authorization @@ -489,11 +489,11 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **ListClusters** -> []GetClusterStatusResponse ListClusters(ctx, orgId) -List clusters +# **ListClusterSecrets** +> []SecretItem ListClusterSecrets(ctx, orgId, id, optional) +List secrets which belongs to cluster -Listing all the K8S clusters from the cloud +List secrets which belongs to cluster ### Required Parameters @@ -501,10 +501,21 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. **orgId** | **int32**| Organization identification | + **id** | **int32**| Selected cluster identification (number) | + **optional** | ***ListClusterSecretsOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a ListClusterSecretsOpts struct + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **releaseName** | **optional.String**| Selected deployment release name | ### Return type -[**[]GetClusterStatusResponse**](GetClusterStatusResponse.md) +[**[]SecretItem**](SecretItem.md) ### Authorization @@ -517,11 +528,11 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **ListEndpoints** -> ListEndpointsResponse ListEndpoints(ctx, orgId, id, optional) -List service public endpoints +# **ListClusters** +> []GetClusterStatusResponse ListClusters(ctx, orgId) +List clusters -List service public endpoints +Listing all the K8S clusters from the cloud ### Required Parameters @@ -529,21 +540,10 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. **orgId** | **int32**| Organization identification | - **id** | **int32**| Selected cluster identification (number) | - **optional** | ***ListEndpointsOpts** | optional parameters | nil if no parameters - -### Optional Parameters -Optional parameters are passed through a pointer to a ListEndpointsOpts struct - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - - **releaseName** | **optional.String**| Selected deployment release name | ### Return type -[**ListEndpointsResponse**](ListEndpointsResponse.md) +[**[]GetClusterStatusResponse**](GetClusterStatusResponse.md) ### Authorization diff --git a/client/docs/CreateAckPropertiesAcsk.md b/client/docs/CreateAckPropertiesAcsk.md index 4b87490e16..cb9831cbe7 100644 --- a/client/docs/CreateAckPropertiesAcsk.md +++ b/client/docs/CreateAckPropertiesAcsk.md @@ -3,10 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**RegionId** | **string** | | [optional] -**ZoneId** | **string** | | [optional] +**RegionId** | **string** | | +**ZoneId** | **string** | | **VswitchId** | **string** | | [optional] -**NodePools** | [**map[string]NodePoolsAck**](NodePoolsACK.md) | | [optional] +**NodePools** | [**map[string]NodePoolsAck**](NodePoolsACK.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/CreateAksPropertiesAks.md b/client/docs/CreateAksPropertiesAks.md index bdb907fefb..927b2fd99c 100644 --- a/client/docs/CreateAksPropertiesAks.md +++ b/client/docs/CreateAksPropertiesAks.md @@ -3,9 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ResourceGroup** | **string** | | [optional] -**KubernetesVersion** | **string** | | [optional] -**NodePools** | [**map[string]NodePoolsAzure**](NodePoolsAzure.md) | | [optional] +**ResourceGroup** | **string** | | +**KubernetesVersion** | **string** | | +**NodePools** | [**map[string]NodePoolsAzure**](NodePoolsAzure.md) | | **VnetSubnetID** | **string** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/CreateAmazonObjectStoreBucketProperties.md b/client/docs/CreateAmazonObjectStoreBucketProperties.md index c15773f84d..5dc0554f02 100644 --- a/client/docs/CreateAmazonObjectStoreBucketProperties.md +++ b/client/docs/CreateAmazonObjectStoreBucketProperties.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Amazon** | [**CreateAmazonObjectStoreBucketPropertiesAmazon**](CreateAmazonObjectStoreBucketProperties_amazon.md) | | [optional] +**Location** | **string** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/CreateAmazonObjectStoreBucketPropertiesAmazon.md b/client/docs/CreateAmazonObjectStoreBucketPropertiesAmazon.md deleted file mode 100644 index b45c7a9ac3..0000000000 --- a/client/docs/CreateAmazonObjectStoreBucketPropertiesAmazon.md +++ /dev/null @@ -1,10 +0,0 @@ -# CreateAmazonObjectStoreBucketPropertiesAmazon - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Location** | **string** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/CreateAzureObjectStoreBucketProperties.md b/client/docs/CreateAzureObjectStoreBucketProperties.md index 7a879ad965..34bd538d44 100644 --- a/client/docs/CreateAzureObjectStoreBucketProperties.md +++ b/client/docs/CreateAzureObjectStoreBucketProperties.md @@ -3,7 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Azure** | [**CreateAzureObjectStoreBucketPropertiesAzure**](CreateAzureObjectStoreBucketProperties_azure.md) | | [optional] +**StorageAccount** | **string** | | +**Location** | **string** | | +**ResourceGroup** | **string** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/CreateAzureObjectStoreBucketPropertiesAzure.md b/client/docs/CreateAzureObjectStoreBucketPropertiesAzure.md deleted file mode 100644 index dd5cb7265d..0000000000 --- a/client/docs/CreateAzureObjectStoreBucketPropertiesAzure.md +++ /dev/null @@ -1,12 +0,0 @@ -# CreateAzureObjectStoreBucketPropertiesAzure - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**StorageAccount** | **string** | | [optional] -**Location** | **string** | | [optional] -**ResourceGroup** | **string** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/CreateClusterRequest.md b/client/docs/CreateClusterRequest.md index 89c656d175..01801535df 100644 --- a/client/docs/CreateClusterRequest.md +++ b/client/docs/CreateClusterRequest.md @@ -9,9 +9,9 @@ Name | Type | Description | Notes **SecretId** | **string** | | [optional] **SecretIds** | **[]string** | | [optional] **SecretName** | **string** | | [optional] -**PostHooks** | [**map[string]interface{}**](map[string]interface{}.md) | | [optional] +**PostHooks** | [**map[string]interface{}**](.md) | | [optional] **ProfileName** | **string** | | [optional] -**Properties** | [**map[string]interface{}**](map[string]interface{}.md) | | +**Properties** | [**map[string]interface{}**](.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/CreateEksPropertiesEks.md b/client/docs/CreateEksPropertiesEks.md index f88bbc304e..9cb5ee4160 100644 --- a/client/docs/CreateEksPropertiesEks.md +++ b/client/docs/CreateEksPropertiesEks.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Version** | **string** | | [optional] -**NodePools** | [**map[string]NodePoolsAmazon**](NodePoolsAmazon.md) | | [optional] -**Vpc** | [**EksVpc**](EKSVpc.md) | | [optional] +**NodePools** | [**map[string]NodePoolsAmazon**](NodePoolsAmazon.md) | | +**Vpc** | [**EksVpc**](.md) | | [optional] **RouteTableId** | **string** | Id of the RouteTable of the VPC to be used by subnets. This is used only when subnets are created into existing VPC. | [optional] **Subnets** | [**[]EksSubnet**](EKSSubnet.md) | | [optional] diff --git a/client/docs/CreateGkePropertiesGke.md b/client/docs/CreateGkePropertiesGke.md index 4098a82477..13967ff000 100644 --- a/client/docs/CreateGkePropertiesGke.md +++ b/client/docs/CreateGkePropertiesGke.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **NodeVersion** | **string** | | [optional] **Vpc** | **string** | Name of the GCP Network (VPC) to deploy the cluster to. If omitted than the \"default\" VPC is used. | [optional] **Subnet** | **string** | Name of the GCP Subnet to deploy the cluster to. If \"default\" VPC is used this field can be omitted. The subnet must be in the same region as the location of the cluster. | [optional] -**NodePools** | [**map[string]NodePoolsGoogle**](NodePoolsGoogle.md) | | [optional] +**NodePools** | [**map[string]NodePoolsGoogle**](NodePoolsGoogle.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/CreateGoogleObjectStoreBucketProperties.md b/client/docs/CreateGoogleObjectStoreBucketProperties.md index 8a9fd37712..59303da574 100644 --- a/client/docs/CreateGoogleObjectStoreBucketProperties.md +++ b/client/docs/CreateGoogleObjectStoreBucketProperties.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Google** | [**CreateGoogleObjectStoreBucketPropertiesGoogle**](CreateGoogleObjectStoreBucketProperties_google.md) | | [optional] +**Location** | **string** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/CreateGoogleObjectStoreBucketPropertiesGoogle.md b/client/docs/CreateGoogleObjectStoreBucketPropertiesGoogle.md deleted file mode 100644 index a3d5fd362a..0000000000 --- a/client/docs/CreateGoogleObjectStoreBucketPropertiesGoogle.md +++ /dev/null @@ -1,10 +0,0 @@ -# CreateGoogleObjectStoreBucketPropertiesGoogle - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Location** | **string** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/CreateObjectStoreBucketProperties.md b/client/docs/CreateObjectStoreBucketProperties.md new file mode 100644 index 0000000000..247301af43 --- /dev/null +++ b/client/docs/CreateObjectStoreBucketProperties.md @@ -0,0 +1,13 @@ +# CreateObjectStoreBucketProperties + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Alibaba** | [**CreateAmazonObjectStoreBucketProperties**](CreateAmazonObjectStoreBucketProperties.md) | | [optional] +**Azure** | [**CreateAzureObjectStoreBucketProperties**](CreateAzureObjectStoreBucketProperties.md) | | [optional] +**Google** | [**CreateGoogleObjectStoreBucketProperties**](CreateGoogleObjectStoreBucketProperties.md) | | [optional] +**Oracle** | [**CreateOracleObjectStoreBucketProperties**](CreateOracleObjectStoreBucketProperties.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/CreateObjectStoreBucketRequest.md b/client/docs/CreateObjectStoreBucketRequest.md index a94f76d81f..bae2ab978a 100644 --- a/client/docs/CreateObjectStoreBucketRequest.md +++ b/client/docs/CreateObjectStoreBucketRequest.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **SecretId** | **string** | | [optional] **SecretName** | **string** | | [optional] **Name** | **string** | | -**Properties** | [**map[string]interface{}**](map[string]interface{}.md) | | +**Properties** | [**CreateObjectStoreBucketProperties**](CreateObjectStoreBucketProperties.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/CreateOracleObjectStoreBucketProperties.md b/client/docs/CreateOracleObjectStoreBucketProperties.md index 259ac4fb1d..67d78af490 100644 --- a/client/docs/CreateOracleObjectStoreBucketProperties.md +++ b/client/docs/CreateOracleObjectStoreBucketProperties.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Oracle** | [**CreateOracleObjectStoreBucketPropertiesOracle**](CreateOracleObjectStoreBucketProperties_oracle.md) | | [optional] +**Location** | **string** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/CreateOracleObjectStoreBucketPropertiesOracle.md b/client/docs/CreateOracleObjectStoreBucketPropertiesOracle.md deleted file mode 100644 index 303a50412b..0000000000 --- a/client/docs/CreateOracleObjectStoreBucketPropertiesOracle.md +++ /dev/null @@ -1,10 +0,0 @@ -# CreateOracleObjectStoreBucketPropertiesOracle - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Location** | **string** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/CreatePkePropertiesClusterTopology.md b/client/docs/CreatePkePropertiesClusterTopology.md index 39fe37960d..b478051076 100644 --- a/client/docs/CreatePkePropertiesClusterTopology.md +++ b/client/docs/CreatePkePropertiesClusterTopology.md @@ -3,10 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Network** | [**CreatePkePropertiesClusterTopologyNetwork**](CreatePKEProperties_clusterTopology_network.md) | | [optional] -**NodePools** | [**[]NodePoolsPke**](NodePoolsPKE.md) | | [optional] -**Kubernetes** | [**CreatePkePropertiesClusterTopologyKubernetes**](CreatePKEProperties_clusterTopology_kubernetes.md) | | [optional] -**Cri** | [**CreatePkePropertiesClusterTopologyCri**](CreatePKEProperties_clusterTopology_cri.md) | | [optional] +**Network** | [**CreatePkePropertiesClusterTopologyNetwork**](CreatePKEProperties_clusterTopology_network.md) | | +**NodePools** | [**[]NodePoolsPke**](NodePoolsPKE.md) | | +**Kubernetes** | [**CreatePkePropertiesClusterTopologyKubernetes**](CreatePKEProperties_clusterTopology_kubernetes.md) | | +**Cri** | [**CreatePkePropertiesClusterTopologyCri**](CreatePKEProperties_clusterTopology_cri.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/CreatePkePropertiesClusterTopologyCri.md b/client/docs/CreatePkePropertiesClusterTopologyCri.md index b599fb0994..8cd0294c9f 100644 --- a/client/docs/CreatePkePropertiesClusterTopologyCri.md +++ b/client/docs/CreatePkePropertiesClusterTopologyCri.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Runtime** | **string** | | [optional] +**Runtime** | **string** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/CreatePkePropertiesClusterTopologyKubernetes.md b/client/docs/CreatePkePropertiesClusterTopologyKubernetes.md index fea2b2638f..82fe6acc9c 100644 --- a/client/docs/CreatePkePropertiesClusterTopologyKubernetes.md +++ b/client/docs/CreatePkePropertiesClusterTopologyKubernetes.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Version** | **string** | | [optional] -**Rbac** | [**CreatePkePropertiesClusterTopologyKubernetesRbac**](CreatePKEProperties_clusterTopology_kubernetes_rbac.md) | | [optional] +**Version** | **string** | | +**Rbac** | [**CreatePkePropertiesClusterTopologyKubernetesRbac**](CreatePKEProperties_clusterTopology_kubernetes_rbac.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/CreatePkePropertiesClusterTopologyKubernetesRbac.md b/client/docs/CreatePkePropertiesClusterTopologyKubernetesRbac.md index 260d60180c..a968515957 100644 --- a/client/docs/CreatePkePropertiesClusterTopologyKubernetesRbac.md +++ b/client/docs/CreatePkePropertiesClusterTopologyKubernetesRbac.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Enabled** | **bool** | | [optional] +**Enabled** | **bool** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/CreatePkePropertiesClusterTopologyNetwork.md b/client/docs/CreatePkePropertiesClusterTopologyNetwork.md index f228d13bdd..4288b4fef5 100644 --- a/client/docs/CreatePkePropertiesClusterTopologyNetwork.md +++ b/client/docs/CreatePkePropertiesClusterTopologyNetwork.md @@ -3,10 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ApiServerAddress** | **string** | | [optional] -**ServiceCIDR** | **string** | | [optional] -**PodCIDR** | **string** | | [optional] -**Provider** | **string** | | [optional] +**ApiServerAddress** | **string** | | +**ServiceCIDR** | **string** | | +**PodCIDR** | **string** | | +**Provider** | **string** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/CreateUpdateDeploymentRequest.md b/client/docs/CreateUpdateDeploymentRequest.md index e41d8bb905..2743835681 100644 --- a/client/docs/CreateUpdateDeploymentRequest.md +++ b/client/docs/CreateUpdateDeploymentRequest.md @@ -11,9 +11,9 @@ Name | Type | Description | Notes **DryRun** | **bool** | | [optional] **Wait** | **bool** | if set, will wait until all Pods, PVCs, Services, and minimum number of Pods of a Deployment are in a ready state before marking the release as successful | [optional] **Timeout** | **int64** | time in seconds to wait for any individual Kubernetes operation (default 300) | [optional] -**OdPcts** | [**map[string]interface{}**](map[string]interface{}.md) | Map of resources in the template where replicas should have a minimum on-demand percentage. Format: <kind.resourceName: min-percentage> | [optional] +**OdPcts** | [**map[string]interface{}**](.md) | Map of resources in the template where replicas should have a minimum on-demand percentage. Format: <kind.resourceName: min-percentage> | [optional] **ReuseValues** | **bool** | | [optional] -**Values** | [**map[string]interface{}**](map[string]interface{}.md) | current values of the deployment | [optional] +**Values** | [**map[string]interface{}**](.md) | current values of the deployment | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/CreateUpdateOkePropertiesOke.md b/client/docs/CreateUpdateOkePropertiesOke.md index a5ec926fbf..483eaf7c1d 100644 --- a/client/docs/CreateUpdateOkePropertiesOke.md +++ b/client/docs/CreateUpdateOkePropertiesOke.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Version** | **string** | | [optional] -**NodePools** | [**map[string]NodePoolsOracle**](NodePoolsOracle.md) | | [optional] +**Version** | **string** | | +**NodePools** | [**map[string]NodePoolsOracle**](NodePoolsOracle.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/DeploymentImageList.md b/client/docs/DeploymentImageList.md deleted file mode 100644 index b95a60bc77..0000000000 --- a/client/docs/DeploymentImageList.md +++ /dev/null @@ -1,9 +0,0 @@ -# DeploymentImageList - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/DeploymentScalingResponse.md b/client/docs/DeploymentScalingResponse.md deleted file mode 100644 index 5ec1bf9892..0000000000 --- a/client/docs/DeploymentScalingResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -# DeploymentScalingResponse - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/DeploymentScalingResponseInner.md b/client/docs/DeploymentScalingResponseInner.md deleted file mode 100644 index a07ae72c14..0000000000 --- a/client/docs/DeploymentScalingResponseInner.md +++ /dev/null @@ -1,17 +0,0 @@ -# DeploymentScalingResponseInner - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ScaleTarget** | **string** | | [optional] -**Kind** | **string** | | [optional] -**MinReplicas** | **int32** | | [optional] -**MaxReplicas** | **int32** | | [optional] -**Cpu** | [**ResourceMetricStatus**](ResourceMetricStatus.md) | | [optional] -**Memory** | [**ResourceMetricStatus**](ResourceMetricStatus.md) | | [optional] -**CustomMetrics** | [**map[string]CustomMetricStatus**](CustomMetricStatus.md) | | [optional] -**Status** | [**DeploymentScaleStatus**](DeploymentScaleStatus.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/DeploymentsApi.md b/client/docs/DeploymentsApi.md index 0ba0f1cf30..bf7edba62f 100644 --- a/client/docs/DeploymentsApi.md +++ b/client/docs/DeploymentsApi.md @@ -117,7 +117,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **GetDeploymentImages** -> DeploymentImageList GetDeploymentImages(ctx, orgId, id, name) +> []ClusterImage GetDeploymentImages(ctx, orgId, id, name) Get deployment K8s images Retrieves the K8s images of a deployment @@ -133,7 +133,7 @@ Name | Type | Description | Notes ### Return type -[**DeploymentImageList**](DeploymentImageList.md) +[**[]ClusterImage**](ClusterImage.md) ### Authorization @@ -147,7 +147,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **GetDeploymentResource** -> GetDeploymentResourcesResponse GetDeploymentResource(ctx, orgId, id, name, optional) +> []map[string]interface{} GetDeploymentResource(ctx, orgId, id, name, optional) Get deployment K8s resources Retrieves the K8s resources of a deployment @@ -174,7 +174,7 @@ Name | Type | Description | Notes ### Return type -[**GetDeploymentResourcesResponse**](GetDeploymentResourcesResponse.md) +[**[]map[string]interface{}**](map[string]interface{}.md) ### Authorization @@ -247,7 +247,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **ListDeployments** -> ListDeploymentsResponse ListDeployments(ctx, orgId, id, optional) +> []map[string]interface{} ListDeployments(ctx, orgId, id, optional) List deployments Listing Helm deployments @@ -272,7 +272,7 @@ Name | Type | Description | Notes ### Return type -[**ListDeploymentsResponse**](ListDeploymentsResponse.md) +[**[]map[string]interface{}**](map[string]interface{}.md) ### Authorization diff --git a/client/docs/GetDeploymentResourcesResponse.md b/client/docs/GetDeploymentResourcesResponse.md deleted file mode 100644 index be7135d832..0000000000 --- a/client/docs/GetDeploymentResourcesResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -# GetDeploymentResourcesResponse - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetDeploymentResourcesResponseInner.md b/client/docs/GetDeploymentResourcesResponseInner.md deleted file mode 100644 index d7f5c189c0..0000000000 --- a/client/docs/GetDeploymentResourcesResponseInner.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetDeploymentResourcesResponseInner - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Name** | **string** | | [optional] -**Kind** | **string** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/HelmApi.md b/client/docs/HelmApi.md index dc61e9c875..960a020e08 100644 --- a/client/docs/HelmApi.md +++ b/client/docs/HelmApi.md @@ -6,7 +6,7 @@ Method | HTTP request | Description ------------- | ------------- | ------------- [**HelmChartDetails**](HelmApi.md#HelmChartDetails) | **Get** /api/v1/orgs/{orgId}/helm/chart/{repoName}/{chartName} | Chart details [**HelmChartList**](HelmApi.md#HelmChartList) | **Get** /api/v1/orgs/{orgId}/helm/charts/ | Chart List -[**HelmInit**](HelmApi.md#HelmInit) | **Get** /api/v1/orgs/{orgId}/helm/repos | List repositories +[**HelmListRepos**](HelmApi.md#HelmListRepos) | **Get** /api/v1/orgs/{orgId}/helm/repos | List repositories [**HelmReposAdd**](HelmApi.md#HelmReposAdd) | **Post** /api/v1/orgs/{orgId}/helm/repos | Add Repo [**HelmReposDelete**](HelmApi.md#HelmReposDelete) | **Delete** /api/v1/orgs/{orgId}/helm/repos/{repoName} | Delete Repo [**HelmReposModify**](HelmApi.md#HelmReposModify) | **Put** /api/v1/orgs/{orgId}/helm/repos/{repoName} | Modify Repo @@ -55,7 +55,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **HelmChartList** -> HelmChartsListResponse HelmChartList(ctx, orgId, optional) +> []map[string]interface{} HelmChartList(ctx, orgId, optional) Chart List Get available Helm chart's list @@ -80,7 +80,7 @@ Name | Type | Description | Notes ### Return type -[**HelmChartsListResponse**](HelmChartsListResponse.md) +[**[]map[string]interface{}**](map[string]interface{}.md) ### Authorization @@ -93,8 +93,8 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **HelmInit** -> HelmReposListResponse HelmInit(ctx, orgId) +# **HelmListRepos** +> []HelmRepoListItem HelmListRepos(ctx, orgId) List repositories Listing Helm repositories in the cluster @@ -108,7 +108,7 @@ Name | Type | Description | Notes ### Return type -[**HelmReposListResponse**](HelmReposListResponse.md) +[**[]HelmRepoListItem**](HelmRepoListItem.md) ### Authorization diff --git a/client/docs/HelmChartsListResponse.md b/client/docs/HelmChartsListResponse.md deleted file mode 100644 index 9048317a0f..0000000000 --- a/client/docs/HelmChartsListResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -# HelmChartsListResponse - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/HelmChartsListResponseInner.md b/client/docs/HelmChartsListResponseInner.md deleted file mode 100644 index 03cae2080f..0000000000 --- a/client/docs/HelmChartsListResponseInner.md +++ /dev/null @@ -1,11 +0,0 @@ -# HelmChartsListResponseInner - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Name** | **string** | | [optional] -**Charts** | [**[][]map[string]interface{}**](array.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/AmazonLaunchTemplate.md b/client/docs/HelmNotFound.md similarity index 67% rename from client/docs/AmazonLaunchTemplate.md rename to client/docs/HelmNotFound.md index eca2b9064e..e1adc22a4e 100644 --- a/client/docs/AmazonLaunchTemplate.md +++ b/client/docs/HelmNotFound.md @@ -1,8 +1,11 @@ -# AmazonLaunchTemplate +# HelmNotFound ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Code** | **int32** | | [optional] +**Message** | **string** | | [optional] +**Error** | **string** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/HelmReposListResponse.md b/client/docs/HelmReposListResponse.md deleted file mode 100644 index 6b68ff65b7..0000000000 --- a/client/docs/HelmReposListResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -# HelmReposListResponse - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/HpaApi.md b/client/docs/HpaApi.md index 1ae49a0212..07fbe89917 100644 --- a/client/docs/HpaApi.md +++ b/client/docs/HpaApi.md @@ -40,7 +40,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **GetDeploymentAutoscaling** -> DeploymentScalingResponse GetDeploymentAutoscaling(ctx, orgId, id, scaleTarget) +> []map[string]interface{} GetDeploymentAutoscaling(ctx, orgId, id, scaleTarget) Get Deployment Scaling Info Get scaling info for a Helm deployment @@ -56,7 +56,7 @@ Name | Type | Description | Notes ### Return type -[**DeploymentScalingResponse**](DeploymentScalingResponse.md) +[**[]map[string]interface{}**](map[string]interface{}.md) ### Authorization diff --git a/client/docs/ImageContent.md b/client/docs/ImageContent.md deleted file mode 100644 index 40a445d421..0000000000 --- a/client/docs/ImageContent.md +++ /dev/null @@ -1,9 +0,0 @@ -# ImageContent - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/ImagesApi.md b/client/docs/ImagesApi.md index 7a63a3573a..c20d306ed2 100644 --- a/client/docs/ImagesApi.md +++ b/client/docs/ImagesApi.md @@ -9,7 +9,7 @@ Method | HTTP request | Description # **ListDeploymentsByImage** -> ListDeploymentsResponse ListDeploymentsByImage(ctx, orgId, id, imageDigest) +> []map[string]interface{} ListDeploymentsByImage(ctx, orgId, id, imageDigest) List Deployments by Image List Deployments by Image @@ -25,7 +25,7 @@ Name | Type | Description | Notes ### Return type -[**ListDeploymentsResponse**](ListDeploymentsResponse.md) +[**[]map[string]interface{}**](map[string]interface{}.md) ### Authorization @@ -39,7 +39,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **ListImages** -> ClusterImageList ListImages(ctx, orgId, id) +> []ClusterImage ListImages(ctx, orgId, id) List Images used in cluster List Images used in cluster @@ -54,7 +54,7 @@ Name | Type | Description | Notes ### Return type -[**ClusterImageList**](ClusterImageList.md) +[**[]ClusterImage**](ClusterImage.md) ### Authorization diff --git a/client/docs/ImagescanApi.md b/client/docs/ImagescanApi.md index d592949f8b..02453458ad 100644 --- a/client/docs/ImagescanApi.md +++ b/client/docs/ImagescanApi.md @@ -70,7 +70,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **ScanImages** -> AnchoreImageList ScanImages(ctx, orgId, id, clusterImage) +> []AnchoreImage ScanImages(ctx, orgId, id, clusterImage) Scan Images used in cluster Scan Images used in cluster @@ -86,7 +86,7 @@ Name | Type | Description | Notes ### Return type -[**AnchoreImageList**](AnchoreImageList.md) +[**[]AnchoreImage**](AnchoreImage.md) ### Authorization diff --git a/client/docs/LaunchSpotguidesRequest.md b/client/docs/LaunchSpotguidesRequest.md index 4829ee6291..339ef55121 100644 --- a/client/docs/LaunchSpotguidesRequest.md +++ b/client/docs/LaunchSpotguidesRequest.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes **SpotguideVersion** | **string** | | [optional] **Cluster** | [**CreateClusterRequest**](CreateClusterRequest.md) | | [optional] **Secrets** | [**[]CreateSecretRequest**](CreateSecretRequest.md) | | [optional] -**Pipeline** | [**map[string]interface{}**](map[string]interface{}.md) | | [optional] +**Pipeline** | [**map[string]interface{}**](.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/ListDeploymentsResponse.md b/client/docs/ListDeploymentsResponse.md deleted file mode 100644 index 8183dd464b..0000000000 --- a/client/docs/ListDeploymentsResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -# ListDeploymentsResponse - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/ListDeploymentsResponseInner.md b/client/docs/ListDeploymentsResponseInner.md deleted file mode 100644 index 455a986e1f..0000000000 --- a/client/docs/ListDeploymentsResponseInner.md +++ /dev/null @@ -1,19 +0,0 @@ -# ListDeploymentsResponseInner - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ReleaseName** | **string** | | [optional] -**Chart** | **string** | | [optional] -**ChartName** | **string** | | [optional] -**ChartVersion** | **string** | | [optional] -**Version** | **int32** | | [optional] -**UpdatedAt** | **string** | | [optional] -**Status** | **string** | | [optional] -**Namespace** | **string** | | [optional] -**CreatedAt** | **string** | | [optional] -**Supported** | **bool** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/ListRouteTablesResponse.md b/client/docs/ListRouteTablesResponse.md deleted file mode 100644 index 515bbd13d5..0000000000 --- a/client/docs/ListRouteTablesResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -# ListRouteTablesResponse - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/ListSpotguidesResponse.md b/client/docs/ListSpotguidesResponse.md deleted file mode 100644 index 91fe67823a..0000000000 --- a/client/docs/ListSpotguidesResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -# ListSpotguidesResponse - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/ListStorageBucketsResponse.md b/client/docs/ListStorageBucketsResponse.md deleted file mode 100644 index 4186512998..0000000000 --- a/client/docs/ListStorageBucketsResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -# ListStorageBucketsResponse - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/ListUserResponse.md b/client/docs/ListUserResponse.md deleted file mode 100644 index 2cd203aed8..0000000000 --- a/client/docs/ListUserResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -# ListUserResponse - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/ListVpcNetworksResponse.md b/client/docs/ListVpcNetworksResponse.md deleted file mode 100644 index 7769ca223d..0000000000 --- a/client/docs/ListVpcNetworksResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -# ListVpcNetworksResponse - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/ListVpcSubnetsResponse.md b/client/docs/ListVpcSubnetsResponse.md deleted file mode 100644 index 451a65841d..0000000000 --- a/client/docs/ListVpcSubnetsResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -# ListVpcSubnetsResponse - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/LoggingPostHookInstallLogging.md b/client/docs/LoggingPostHookInstallLogging.md index e6b87b778a..30d2bd3fd5 100644 --- a/client/docs/LoggingPostHookInstallLogging.md +++ b/client/docs/LoggingPostHookInstallLogging.md @@ -3,13 +3,13 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**BucketName** | **string** | | [optional] +**BucketName** | **string** | | **Region** | **string** | | [optional] **ResourceGroup** | **string** | | [optional] **StorageAccount** | **string** | | [optional] -**SecretId** | **string** | | [optional] +**SecretId** | **string** | | **SecretName** | **string** | | [optional] -**Tls** | [**GenTlsForLogging**](GenTLSForLogging.md) | | [optional] +**Tls** | [**GenTlsForLogging**](GenTLSForLogging.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/NetworkApi.md b/client/docs/NetworkApi.md index 134091f205..24e889b093 100644 --- a/client/docs/NetworkApi.md +++ b/client/docs/NetworkApi.md @@ -10,7 +10,7 @@ Method | HTTP request | Description # **ListRouteTables** -> ListRouteTablesResponse ListRouteTables(ctx, orgId, networkId, secretId, cloudType, optional) +> []RouteTableInfo ListRouteTables(ctx, orgId, networkId, secretId, cloudType, optional) List VPC route tables List route tables of the given VPC network @@ -40,7 +40,7 @@ Name | Type | Description | Notes ### Return type -[**ListRouteTablesResponse**](ListRouteTablesResponse.md) +[**[]RouteTableInfo**](RouteTableInfo.md) ### Authorization @@ -54,7 +54,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **ListVPCNetworks** -> ListVpcNetworksResponse ListVPCNetworks(ctx, orgId, secretId, cloudType, optional) +> []VpcNetworkInfo ListVPCNetworks(ctx, orgId, secretId, cloudType, optional) List VPC networks List VPC networks accessible by the organization. @@ -82,7 +82,7 @@ Name | Type | Description | Notes ### Return type -[**ListVpcNetworksResponse**](ListVPCNetworksResponse.md) +[**[]VpcNetworkInfo**](VPCNetworkInfo.md) ### Authorization @@ -96,7 +96,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **ListVPCSubnets** -> ListVpcSubnetsResponse ListVPCSubnets(ctx, orgId, networkId, secretId, cloudType, optional) +> []SubnetInfo ListVPCSubnets(ctx, orgId, networkId, secretId, cloudType, optional) List VPC subnetworks List subnetworks of the given VPC network @@ -126,7 +126,7 @@ Name | Type | Description | Notes ### Return type -[**ListVpcSubnetsResponse**](ListVPCSubnetsResponse.md) +[**[]SubnetInfo**](SubnetInfo.md) ### Authorization diff --git a/client/docs/NodePoolsPke.md b/client/docs/NodePoolsPke.md index 54b77f9aa7..ca1f307e7d 100644 --- a/client/docs/NodePoolsPke.md +++ b/client/docs/NodePoolsPke.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **Name** | **string** | | **Roles** | **[]string** | | **Provider** | **string** | | -**ProviderConfig** | [**map[string]interface{}**](map[string]interface{}.md) | | +**ProviderConfig** | [**map[string]interface{}**](.md) | | **Hosts** | [**[]PkeHosts**](PKEHosts.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/PodDetailsResponse.md b/client/docs/PodDetailsResponse.md deleted file mode 100644 index ae8f491cb1..0000000000 --- a/client/docs/PodDetailsResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -# PodDetailsResponse - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/PoliciesApi.md b/client/docs/PoliciesApi.md index 7b07bdde99..92c997bae5 100644 --- a/client/docs/PoliciesApi.md +++ b/client/docs/PoliciesApi.md @@ -72,7 +72,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **GetPolicy** -> PolicyBundleList GetPolicy(ctx, id, orgId, policyId, optional) +> []PolicyBundleRecord GetPolicy(ctx, id, orgId, policyId, optional) Get specific policy Get the policy bundle content @@ -99,7 +99,7 @@ Name | Type | Description | Notes ### Return type -[**PolicyBundleList**](PolicyBundleList.md) +[**[]PolicyBundleRecord**](PolicyBundleRecord.md) ### Authorization @@ -113,7 +113,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **ListPolicies** -> PolicyBundleList ListPolicies(ctx, id, orgId, optional) +> []PolicyBundleRecord ListPolicies(ctx, id, orgId, optional) List policies List all saved policy bundles @@ -138,7 +138,7 @@ Name | Type | Description | Notes ### Return type -[**PolicyBundleList**](PolicyBundleList.md) +[**[]PolicyBundleRecord**](PolicyBundleRecord.md) ### Authorization @@ -152,7 +152,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **UpdatePolicy** -> PolicyBundleList UpdatePolicy(ctx, id, orgId, policyId, policyBundleRecord, optional) +> []PolicyBundleRecord UpdatePolicy(ctx, id, orgId, policyId, policyBundleRecord, optional) Update policy Update/replace and existing policy @@ -181,7 +181,7 @@ Name | Type | Description | Notes ### Return type -[**PolicyBundleList**](PolicyBundleList.md) +[**[]PolicyBundleRecord**](PolicyBundleRecord.md) ### Authorization diff --git a/client/docs/PolicyBundleList.md b/client/docs/PolicyBundleList.md deleted file mode 100644 index 12edfb908a..0000000000 --- a/client/docs/PolicyBundleList.md +++ /dev/null @@ -1,9 +0,0 @@ -# PolicyBundleList - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/PolicyRuleParams.md b/client/docs/PolicyRuleParams.md index 787da36aee..38aa97d629 100644 --- a/client/docs/PolicyRuleParams.md +++ b/client/docs/PolicyRuleParams.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | **string** | | [optional] -**Value** | **string** | | [optional] +**Name** | **string** | | +**Value** | **string** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/ReRunPostHook.md b/client/docs/PostHooks.md similarity index 81% rename from client/docs/ReRunPostHook.md rename to client/docs/PostHooks.md index 93c3940e6e..eab0a7c1e0 100644 --- a/client/docs/ReRunPostHook.md +++ b/client/docs/PostHooks.md @@ -1,10 +1,10 @@ -# ReRunPostHook +# PostHooks ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **InstallLogging** | [**LoggingPostHookInstallLogging**](LoggingPostHook_InstallLogging.md) | | [optional] -**PostHookFunctionName** | [**map[string]interface{}**](map[string]interface{}.md) | | [optional] +**PostHookFunctionName** | [**map[string]interface{}**](.md) | | [optional] **InstallServiceMesh** | [**ServiceMeshPostHookInstallServiceMesh**](ServiceMeshPostHook_InstallServiceMesh.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/ProfileListResponse.md b/client/docs/ProfileListResponse.md index 169580f086..06f75467db 100644 --- a/client/docs/ProfileListResponse.md +++ b/client/docs/ProfileListResponse.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **Name** | **string** | | [optional] **Location** | **string** | | [optional] **Cloud** | **string** | | [optional] -**Properties** | [**map[string]interface{}**](map[string]interface{}.md) | | [optional] +**Properties** | [**map[string]interface{}**](.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/ReleaseWhiteList.md b/client/docs/ReleaseWhiteList.md deleted file mode 100644 index 25527e132f..0000000000 --- a/client/docs/ReleaseWhiteList.md +++ /dev/null @@ -1,9 +0,0 @@ -# ReleaseWhiteList - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/ScanLogList.md b/client/docs/ScanLogList.md deleted file mode 100644 index cf19adbbd7..0000000000 --- a/client/docs/ScanLogList.md +++ /dev/null @@ -1,9 +0,0 @@ -# ScanLogList - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/ScanlogApi.md b/client/docs/ScanlogApi.md index bc50469604..b33f91f2f7 100644 --- a/client/docs/ScanlogApi.md +++ b/client/docs/ScanlogApi.md @@ -9,7 +9,7 @@ Method | HTTP request | Description # **ListScans** -> ScanLogList ListScans(ctx, id, orgId) +> []ScanLogItem ListScans(ctx, id, orgId) List scans List scans @@ -24,7 +24,7 @@ Name | Type | Description | Notes ### Return type -[**ScanLogList**](ScanLogList.md) +[**[]ScanLogItem**](ScanLogItem.md) ### Authorization @@ -38,7 +38,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **ListScansByRelease** -> ScanLogList ListScansByRelease(ctx, id, orgId, releaseName) +> []ScanLogItem ListScansByRelease(ctx, id, orgId, releaseName) List scans by release List scans by release @@ -54,7 +54,7 @@ Name | Type | Description | Notes ### Return type -[**ScanLogList**](ScanLogList.md) +[**[]ScanLogItem**](ScanLogItem.md) ### Authorization diff --git a/client/docs/SecretItem.md b/client/docs/SecretItem.md index 5dd1bdcfc3..b1f11e4dfd 100644 --- a/client/docs/SecretItem.md +++ b/client/docs/SecretItem.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes **UpdatedAt** | [**time.Time**](time.Time.md) | | [optional] **UpdatedBy** | **string** | | [optional] **Tags** | **[]string** | | [optional] -**Values** | [**map[string]interface{}**](map[string]interface{}.md) | | [optional] +**Values** | [**map[string]interface{}**](.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/SecretTags.md b/client/docs/SecretTags.md deleted file mode 100644 index 1242ce114d..0000000000 --- a/client/docs/SecretTags.md +++ /dev/null @@ -1,9 +0,0 @@ -# SecretTags - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/SecretsApi.md b/client/docs/SecretsApi.md index 6df3ab1745..6967243de5 100644 --- a/client/docs/SecretsApi.md +++ b/client/docs/SecretsApi.md @@ -18,7 +18,7 @@ Method | HTTP request | Description # **AddSecretTag** -> SecretTags AddSecretTag(ctx, orgId, secretId, tag) +> []string AddSecretTag(ctx, orgId, secretId, tag) Add a tag to a secret Add a tag to a secret @@ -34,7 +34,7 @@ Name | Type | Description | Notes ### Return type -[**SecretTags**](SecretTags.md) +**[]string** ### Authorization @@ -227,7 +227,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **GetSecretTags** -> SecretTags GetSecretTags(ctx, orgId, secretId) +> []string GetSecretTags(ctx, orgId, secretId) Get the tags of a secret Get the tags of a secret @@ -242,7 +242,7 @@ Name | Type | Description | Notes ### Return type -[**SecretTags**](SecretTags.md) +**[]string** ### Authorization diff --git a/client/docs/SpotguideDetailsResponse.md b/client/docs/SpotguideDetailsResponse.md index 8593f5172a..96c741d6cf 100644 --- a/client/docs/SpotguideDetailsResponse.md +++ b/client/docs/SpotguideDetailsResponse.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes **Version** | **string** | | [optional] **Tags** | **[]string** | | [optional] **Resources** | [**RequestedResources**](RequestedResources.md) | | [optional] -**Questions** | [**[]map[string]interface{}**](map[string]interface{}.md) | | [optional] +**Questions** | [**[]SpotguideOption**](SpotguideOption.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/SpotguideOptionsMysqlVersion.md b/client/docs/SpotguideOption.md similarity index 94% rename from client/docs/SpotguideOptionsMysqlVersion.md rename to client/docs/SpotguideOption.md index 0dacc6aec6..5feeceae3e 100644 --- a/client/docs/SpotguideOptionsMysqlVersion.md +++ b/client/docs/SpotguideOption.md @@ -1,4 +1,4 @@ -# SpotguideOptionsMysqlVersion +# SpotguideOption ## Properties Name | Type | Description | Notes diff --git a/client/docs/SpotguideOptionsMonitor.md b/client/docs/SpotguideOptionsMonitor.md deleted file mode 100644 index 6ec78a092b..0000000000 --- a/client/docs/SpotguideOptionsMonitor.md +++ /dev/null @@ -1,15 +0,0 @@ -# SpotguideOptionsMonitor - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Name** | **string** | | [optional] -**Type** | **bool** | | [optional] -**Info** | **string** | | [optional] -**Default** | **bool** | | [optional] -**Readonly** | **bool** | | [optional] -**Key** | **string** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/SpotguideOptionsMysqlDatabaseName.md b/client/docs/SpotguideOptionsMysqlDatabaseName.md deleted file mode 100644 index f8bdfc5b04..0000000000 --- a/client/docs/SpotguideOptionsMysqlDatabaseName.md +++ /dev/null @@ -1,16 +0,0 @@ -# SpotguideOptionsMysqlDatabaseName - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Name** | **string** | | [optional] -**Type** | **string** | | [optional] -**Info** | **string** | | [optional] -**Default** | **string** | | [optional] -**Readonly** | **bool** | | [optional] -**Enabled** | **bool** | | [optional] -**Key** | **string** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/SpotguideOptionsMysqlDatabaseSize.md b/client/docs/SpotguideOptionsMysqlDatabaseSize.md deleted file mode 100644 index abea359ebd..0000000000 --- a/client/docs/SpotguideOptionsMysqlDatabaseSize.md +++ /dev/null @@ -1,16 +0,0 @@ -# SpotguideOptionsMysqlDatabaseSize - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Name** | **string** | | [optional] -**Type** | **string** | | [optional] -**Info** | **string** | | [optional] -**Default** | **int32** | | [optional] -**Readonly** | **bool** | | [optional] -**Enabled** | **bool** | | [optional] -**Key** | **string** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/SpotguidesApi.md b/client/docs/SpotguidesApi.md index 651e336892..16389e56b8 100644 --- a/client/docs/SpotguidesApi.md +++ b/client/docs/SpotguidesApi.md @@ -69,7 +69,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **ListSpotguides** -> ListSpotguidesResponse ListSpotguides(ctx, orgId) +> []SpotguideDetailsResponse ListSpotguides(ctx, orgId) List spotguides List all available spotguides @@ -83,7 +83,7 @@ Name | Type | Description | Notes ### Return type -[**ListSpotguidesResponse**](ListSpotguidesResponse.md) +[**[]SpotguideDetailsResponse**](SpotguideDetailsResponse.md) ### Authorization diff --git a/client/docs/StorageApi.md b/client/docs/StorageApi.md index 1e9b5cb89e..2ee529b379 100644 --- a/client/docs/StorageApi.md +++ b/client/docs/StorageApi.md @@ -176,7 +176,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **ListObjectStoreBuckets** -> ListStorageBucketsResponse ListObjectStoreBuckets(ctx, orgId, optional) +> []BucketInfo ListObjectStoreBuckets(ctx, orgId, optional) List object storage buckets List object store buckets accessible by the credentials referenced by the given secret. If no credentials provided all managed buckets are returned for all cloud types. @@ -202,7 +202,7 @@ Name | Type | Description | Notes ### Return type -[**ListStorageBucketsResponse**](ListStorageBucketsResponse.md) +[**[]BucketInfo**](BucketInfo.md) ### Authorization diff --git a/client/docs/TokenCreateRequest.md b/client/docs/TokenCreateRequest.md index dccadd531b..5e78e9a9bc 100644 --- a/client/docs/TokenCreateRequest.md +++ b/client/docs/TokenCreateRequest.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | [optional] **VirtualUser** | **string** | | [optional] -**ExpiresAt** | [**time.Time**](time.Time.md) | | [optional] +**ExpiresAt** | Pointer to [**time.Time**](time.Time.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/UpdateAckPropertiesAcsk.md b/client/docs/UpdateAckPropertiesAcsk.md index 5016bd5e24..ac96422290 100644 --- a/client/docs/UpdateAckPropertiesAcsk.md +++ b/client/docs/UpdateAckPropertiesAcsk.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**NodePools** | [**map[string]NodePoolsAck**](NodePoolsACK.md) | | [optional] +**NodePools** | [**map[string]NodePoolsAck**](NodePoolsACK.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/UpdateClusterRequest.md b/client/docs/UpdateClusterRequest.md index 0038561ec1..ba740db021 100644 --- a/client/docs/UpdateClusterRequest.md +++ b/client/docs/UpdateClusterRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Cloud** | **string** | | -**Properties** | [**map[string]interface{}**](map[string]interface{}.md) | | +**Properties** | [**map[string]interface{}**](.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/UpdateEksPropertiesEks.md b/client/docs/UpdateEksPropertiesEks.md index 4323354213..da2bb5afa1 100644 --- a/client/docs/UpdateEksPropertiesEks.md +++ b/client/docs/UpdateEksPropertiesEks.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**NodePools** | [**map[string]UpdateNodePoolsEks**](UpdateNodePoolsEks.md) | | [optional] +**NodePools** | [**map[string]UpdateNodePoolsEks**](UpdateNodePoolsEks.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/User.md b/client/docs/User.md index 492c627180..6cf038e1b2 100644 --- a/client/docs/User.md +++ b/client/docs/User.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes **Email** | **string** | | [optional] **Login** | **string** | | [optional] **Image** | **string** | | [optional] -**Organizations** | [**map[string]interface{}**](map[string]interface{}.md) | | [optional] +**Organizations** | [**map[string]interface{}**](.md) | | [optional] **GitHubTokenSet** | **bool** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/UsersApi.md b/client/docs/UsersApi.md index 6b9ae62eae..6d257d8586 100644 --- a/client/docs/UsersApi.md +++ b/client/docs/UsersApi.md @@ -64,7 +64,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **ListUsers** -> ListUserResponse ListUsers(ctx, orgId) +> []User ListUsers(ctx, orgId) List users Listing users @@ -78,7 +78,7 @@ Name | Type | Description | Notes ### Return type -[**ListUserResponse**](ListUserResponse.md) +[**[]User**](User.md) ### Authorization diff --git a/client/docs/VulnerabilityList.md b/client/docs/VulnerabilityList.md deleted file mode 100644 index cb71b11b55..0000000000 --- a/client/docs/VulnerabilityList.md +++ /dev/null @@ -1,9 +0,0 @@ -# VulnerabilityList - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/VulnerabilityResponse.md b/client/docs/VulnerabilityResponse.md index a878726243..6e442e8824 100644 --- a/client/docs/VulnerabilityResponse.md +++ b/client/docs/VulnerabilityResponse.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ImageDigest** | **string** | | [optional] **VulnerabilityType** | **string** | | [optional] -**Vulnerabilities** | [**VulnerabilityList**](VulnerabilityList.md) | | [optional] +**Vulnerabilities** | [**[]Vulnerability**](Vulnerability.md) | List of Vulnerability objects | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/WhitelistApi.md b/client/docs/WhitelistApi.md index cb5c9403d5..1127ba4659 100644 --- a/client/docs/WhitelistApi.md +++ b/client/docs/WhitelistApi.md @@ -70,7 +70,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **ListWhitelists** -> ReleaseWhiteList ListWhitelists(ctx, orgId, id) +> []ReleaseWhiteListItem ListWhitelists(ctx, orgId, id) List Whitelisted deployments List Whitelisted deployments @@ -85,7 +85,7 @@ Name | Type | Description | Notes ### Return type -[**ReleaseWhiteList**](ReleaseWhiteList.md) +[**[]ReleaseWhiteListItem**](ReleaseWhiteListItem.md) ### Authorization diff --git a/client/model_amazon_auto_scaling_group.go b/client/model_amazon_auto_scaling_group.go index f33d220244..a655d90b06 100644 --- a/client/model_amazon_auto_scaling_group.go +++ b/client/model_amazon_auto_scaling_group.go @@ -17,7 +17,7 @@ type AmazonAutoScalingGroup struct { Zones []string `json:"zones"` InstanceType string `json:"instanceType"` LaunchConfigurationName string `json:"launchConfigurationName"` - LaunchTemplate AmazonLaunchTemplate `json:"launchTemplate,omitempty"` + LaunchTemplate map[string]interface{} `json:"launchTemplate,omitempty"` VpcID string `json:"vpcID"` SecurityGroupID string `json:"securityGroupID"` Subnets []string `json:"subnets"` diff --git a/client/model_amazon_auto_scaling_group_size.go b/client/model_amazon_auto_scaling_group_size.go index 9cf6cc19ae..79d35f8eda 100644 --- a/client/model_amazon_auto_scaling_group_size.go +++ b/client/model_amazon_auto_scaling_group_size.go @@ -12,6 +12,6 @@ package client type AmazonAutoScalingGroupSize struct { - Min int32 `json:"min,omitempty"` - Max int32 `json:"max,omitempty"` + Min int32 `json:"min"` + Max int32 `json:"max"` } diff --git a/client/model_anchore_image.go b/client/model_anchore_image.go index 48c015ff42..07fcd12201 100644 --- a/client/model_anchore_image.go +++ b/client/model_anchore_image.go @@ -17,7 +17,8 @@ import ( // A unique image in the engine. May have multiple tags or references. Unique to an image content across registries or repositories. type AnchoreImage struct { - ImageContent ImageContent `json:"imageContent,omitempty"` + // A metadata content record for a specific image, containing different content type entries + ImageContent map[string]interface{} `json:"imageContent,omitempty"` // Details specific to an image reference and type such as tag and image source ImageDetail []ImageDetail `json:"imageDetail,omitempty"` LastUpdated time.Time `json:"lastUpdated,omitempty"` diff --git a/client/model_anchore_image_list.go b/client/model_anchore_image_list.go deleted file mode 100644 index 71b05931a9..0000000000 --- a/client/model_anchore_image_list.go +++ /dev/null @@ -1,15 +0,0 @@ -/* - * Pipeline API - * - * Pipeline v0.3.0 swagger - * - * API version: 0.3.0 - * Contact: info@banzaicloud.com - */ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -type AnchoreImageList struct { -} diff --git a/client/model_bucket_info_secret.go b/client/model_bucket_info_secret.go index 263dc7320e..9465b8bd1c 100644 --- a/client/model_bucket_info_secret.go +++ b/client/model_bucket_info_secret.go @@ -12,7 +12,7 @@ package client type BucketInfoSecret struct { - Id string `json:"id,omitempty"` + Id string `json:"id"` Name string `json:"name,omitempty"` // the secret identifier of the azure access information AccessId string `json:"accessId,omitempty"` diff --git a/client/model_cluster_image_list.go b/client/model_cluster_image_list.go deleted file mode 100644 index c19a8a606e..0000000000 --- a/client/model_cluster_image_list.go +++ /dev/null @@ -1,15 +0,0 @@ -/* - * Pipeline API - * - * Pipeline v0.3.0 swagger - * - * API version: 0.3.0 - * Contact: info@banzaicloud.com - */ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -type ClusterImageList struct { -} diff --git a/client/model_create_ack_properties_acsk.go b/client/model_create_ack_properties_acsk.go index ae2dd9aa09..8f5fbf4299 100644 --- a/client/model_create_ack_properties_acsk.go +++ b/client/model_create_ack_properties_acsk.go @@ -12,8 +12,8 @@ package client type CreateAckPropertiesAcsk struct { - RegionId string `json:"regionId,omitempty"` - ZoneId string `json:"zoneId,omitempty"` + RegionId string `json:"regionId"` + ZoneId string `json:"zoneId"` VswitchId string `json:"vswitchId,omitempty"` - NodePools map[string]NodePoolsAck `json:"nodePools,omitempty"` + NodePools map[string]NodePoolsAck `json:"nodePools"` } diff --git a/client/model_create_aks_properties_aks.go b/client/model_create_aks_properties_aks.go index 00c1dc1e14..d048547b56 100644 --- a/client/model_create_aks_properties_aks.go +++ b/client/model_create_aks_properties_aks.go @@ -12,8 +12,8 @@ package client type CreateAksPropertiesAks struct { - ResourceGroup string `json:"resourceGroup,omitempty"` - KubernetesVersion string `json:"kubernetesVersion,omitempty"` - NodePools map[string]NodePoolsAzure `json:"nodePools,omitempty"` + ResourceGroup string `json:"resourceGroup"` + KubernetesVersion string `json:"kubernetesVersion"` + NodePools map[string]NodePoolsAzure `json:"nodePools"` VnetSubnetID string `json:"vnetSubnetID,omitempty"` } diff --git a/client/model_create_amazon_object_store_bucket_properties.go b/client/model_create_amazon_object_store_bucket_properties.go index 6a3f097f78..8a4dc66607 100644 --- a/client/model_create_amazon_object_store_bucket_properties.go +++ b/client/model_create_amazon_object_store_bucket_properties.go @@ -12,5 +12,5 @@ package client type CreateAmazonObjectStoreBucketProperties struct { - Amazon CreateAmazonObjectStoreBucketPropertiesAmazon `json:"amazon,omitempty"` + Location string `json:"location"` } diff --git a/client/model_create_amazon_object_store_bucket_properties_amazon.go b/client/model_create_amazon_object_store_bucket_properties_amazon.go deleted file mode 100644 index 0d5d5cd344..0000000000 --- a/client/model_create_amazon_object_store_bucket_properties_amazon.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Pipeline API - * - * Pipeline v0.3.0 swagger - * - * API version: 0.3.0 - * Contact: info@banzaicloud.com - */ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -type CreateAmazonObjectStoreBucketPropertiesAmazon struct { - Location string `json:"location,omitempty"` -} diff --git a/client/model_create_azure_object_store_bucket_properties.go b/client/model_create_azure_object_store_bucket_properties.go index 2a33f56bd6..62c2781dc0 100644 --- a/client/model_create_azure_object_store_bucket_properties.go +++ b/client/model_create_azure_object_store_bucket_properties.go @@ -12,5 +12,7 @@ package client type CreateAzureObjectStoreBucketProperties struct { - Azure CreateAzureObjectStoreBucketPropertiesAzure `json:"azure,omitempty"` + StorageAccount string `json:"storageAccount"` + Location string `json:"location"` + ResourceGroup string `json:"resourceGroup"` } diff --git a/client/model_create_azure_object_store_bucket_properties_azure.go b/client/model_create_azure_object_store_bucket_properties_azure.go deleted file mode 100644 index 62c1f1665b..0000000000 --- a/client/model_create_azure_object_store_bucket_properties_azure.go +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Pipeline API - * - * Pipeline v0.3.0 swagger - * - * API version: 0.3.0 - * Contact: info@banzaicloud.com - */ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -type CreateAzureObjectStoreBucketPropertiesAzure struct { - StorageAccount string `json:"storageAccount,omitempty"` - Location string `json:"location,omitempty"` - ResourceGroup string `json:"resourceGroup,omitempty"` -} diff --git a/client/model_create_eks_properties_eks.go b/client/model_create_eks_properties_eks.go index f1db13fd33..684c22486e 100644 --- a/client/model_create_eks_properties_eks.go +++ b/client/model_create_eks_properties_eks.go @@ -13,7 +13,7 @@ package client type CreateEksPropertiesEks struct { Version string `json:"version,omitempty"` - NodePools map[string]NodePoolsAmazon `json:"nodePools,omitempty"` + NodePools map[string]NodePoolsAmazon `json:"nodePools"` Vpc EksVpc `json:"vpc,omitempty"` // Id of the RouteTable of the VPC to be used by subnets. This is used only when subnets are created into existing VPC. RouteTableId string `json:"routeTableId,omitempty"` diff --git a/client/model_create_gke_properties_gke.go b/client/model_create_gke_properties_gke.go index 60dc60e9e1..dc85ceed6c 100644 --- a/client/model_create_gke_properties_gke.go +++ b/client/model_create_gke_properties_gke.go @@ -19,5 +19,5 @@ type CreateGkePropertiesGke struct { Vpc string `json:"vpc,omitempty"` // Name of the GCP Subnet to deploy the cluster to. If \"default\" VPC is used this field can be omitted. The subnet must be in the same region as the location of the cluster. Subnet string `json:"subnet,omitempty"` - NodePools map[string]NodePoolsGoogle `json:"nodePools,omitempty"` + NodePools map[string]NodePoolsGoogle `json:"nodePools"` } diff --git a/client/model_create_google_object_store_bucket_properties.go b/client/model_create_google_object_store_bucket_properties.go index a1380f54fd..7c489cb18d 100644 --- a/client/model_create_google_object_store_bucket_properties.go +++ b/client/model_create_google_object_store_bucket_properties.go @@ -12,5 +12,5 @@ package client type CreateGoogleObjectStoreBucketProperties struct { - Google CreateGoogleObjectStoreBucketPropertiesGoogle `json:"google,omitempty"` + Location string `json:"location"` } diff --git a/client/model_create_google_object_store_bucket_properties_google.go b/client/model_create_google_object_store_bucket_properties_google.go deleted file mode 100644 index a44d0fa543..0000000000 --- a/client/model_create_google_object_store_bucket_properties_google.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Pipeline API - * - * Pipeline v0.3.0 swagger - * - * API version: 0.3.0 - * Contact: info@banzaicloud.com - */ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -type CreateGoogleObjectStoreBucketPropertiesGoogle struct { - Location string `json:"location,omitempty"` -} diff --git a/client/model_create_object_store_bucket_properties.go b/client/model_create_object_store_bucket_properties.go new file mode 100644 index 0000000000..3614f5c784 --- /dev/null +++ b/client/model_create_object_store_bucket_properties.go @@ -0,0 +1,19 @@ +/* + * Pipeline API + * + * Pipeline v0.3.0 swagger + * + * API version: 0.3.0 + * Contact: info@banzaicloud.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +type CreateObjectStoreBucketProperties struct { + Alibaba CreateAmazonObjectStoreBucketProperties `json:"alibaba,omitempty"` + Azure CreateAzureObjectStoreBucketProperties `json:"azure,omitempty"` + Google CreateGoogleObjectStoreBucketProperties `json:"google,omitempty"` + Oracle CreateOracleObjectStoreBucketProperties `json:"oracle,omitempty"` +} diff --git a/client/model_create_object_store_bucket_request.go b/client/model_create_object_store_bucket_request.go index b249e0e412..001d2bf8cc 100644 --- a/client/model_create_object_store_bucket_request.go +++ b/client/model_create_object_store_bucket_request.go @@ -12,8 +12,8 @@ package client type CreateObjectStoreBucketRequest struct { - SecretId string `json:"secretId,omitempty"` - SecretName string `json:"secretName,omitempty"` - Name string `json:"name"` - Properties map[string]interface{} `json:"properties"` + SecretId string `json:"secretId,omitempty"` + SecretName string `json:"secretName,omitempty"` + Name string `json:"name"` + Properties CreateObjectStoreBucketProperties `json:"properties"` } diff --git a/client/model_create_oracle_object_store_bucket_properties.go b/client/model_create_oracle_object_store_bucket_properties.go index e0f8d8c10d..429f66b3c9 100644 --- a/client/model_create_oracle_object_store_bucket_properties.go +++ b/client/model_create_oracle_object_store_bucket_properties.go @@ -12,5 +12,5 @@ package client type CreateOracleObjectStoreBucketProperties struct { - Oracle CreateOracleObjectStoreBucketPropertiesOracle `json:"oracle,omitempty"` + Location string `json:"location"` } diff --git a/client/model_create_oracle_object_store_bucket_properties_oracle.go b/client/model_create_oracle_object_store_bucket_properties_oracle.go deleted file mode 100644 index f8f668dddf..0000000000 --- a/client/model_create_oracle_object_store_bucket_properties_oracle.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Pipeline API - * - * Pipeline v0.3.0 swagger - * - * API version: 0.3.0 - * Contact: info@banzaicloud.com - */ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -type CreateOracleObjectStoreBucketPropertiesOracle struct { - Location string `json:"location,omitempty"` -} diff --git a/client/model_create_pke_properties_cluster_topology.go b/client/model_create_pke_properties_cluster_topology.go index a20e83c1e2..ba7d9419d1 100644 --- a/client/model_create_pke_properties_cluster_topology.go +++ b/client/model_create_pke_properties_cluster_topology.go @@ -12,8 +12,8 @@ package client type CreatePkePropertiesClusterTopology struct { - Network CreatePkePropertiesClusterTopologyNetwork `json:"network,omitempty"` - NodePools []NodePoolsPke `json:"nodePools,omitempty"` - Kubernetes CreatePkePropertiesClusterTopologyKubernetes `json:"kubernetes,omitempty"` - Cri CreatePkePropertiesClusterTopologyCri `json:"cri,omitempty"` + Network CreatePkePropertiesClusterTopologyNetwork `json:"network"` + NodePools []NodePoolsPke `json:"nodePools"` + Kubernetes CreatePkePropertiesClusterTopologyKubernetes `json:"kubernetes"` + Cri CreatePkePropertiesClusterTopologyCri `json:"cri"` } diff --git a/client/model_create_pke_properties_cluster_topology_cri.go b/client/model_create_pke_properties_cluster_topology_cri.go index 9d64253c68..dea0620750 100644 --- a/client/model_create_pke_properties_cluster_topology_cri.go +++ b/client/model_create_pke_properties_cluster_topology_cri.go @@ -12,5 +12,5 @@ package client type CreatePkePropertiesClusterTopologyCri struct { - Runtime string `json:"runtime,omitempty"` + Runtime string `json:"runtime"` } diff --git a/client/model_create_pke_properties_cluster_topology_kubernetes.go b/client/model_create_pke_properties_cluster_topology_kubernetes.go index 9a471de363..d69ad912ac 100644 --- a/client/model_create_pke_properties_cluster_topology_kubernetes.go +++ b/client/model_create_pke_properties_cluster_topology_kubernetes.go @@ -12,6 +12,6 @@ package client type CreatePkePropertiesClusterTopologyKubernetes struct { - Version string `json:"version,omitempty"` - Rbac CreatePkePropertiesClusterTopologyKubernetesRbac `json:"rbac,omitempty"` + Version string `json:"version"` + Rbac CreatePkePropertiesClusterTopologyKubernetesRbac `json:"rbac"` } diff --git a/client/model_create_pke_properties_cluster_topology_kubernetes_rbac.go b/client/model_create_pke_properties_cluster_topology_kubernetes_rbac.go index ccb78ce9e6..527cc08a51 100644 --- a/client/model_create_pke_properties_cluster_topology_kubernetes_rbac.go +++ b/client/model_create_pke_properties_cluster_topology_kubernetes_rbac.go @@ -12,5 +12,5 @@ package client type CreatePkePropertiesClusterTopologyKubernetesRbac struct { - Enabled bool `json:"enabled,omitempty"` + Enabled bool `json:"enabled"` } diff --git a/client/model_create_pke_properties_cluster_topology_network.go b/client/model_create_pke_properties_cluster_topology_network.go index 2639ff2605..84eff72d64 100644 --- a/client/model_create_pke_properties_cluster_topology_network.go +++ b/client/model_create_pke_properties_cluster_topology_network.go @@ -12,8 +12,8 @@ package client type CreatePkePropertiesClusterTopologyNetwork struct { - ApiServerAddress string `json:"apiServerAddress,omitempty"` - ServiceCIDR string `json:"serviceCIDR,omitempty"` - PodCIDR string `json:"podCIDR,omitempty"` - Provider string `json:"provider,omitempty"` + ApiServerAddress string `json:"apiServerAddress"` + ServiceCIDR string `json:"serviceCIDR"` + PodCIDR string `json:"podCIDR"` + Provider string `json:"provider"` } diff --git a/client/model_create_update_oke_properties_oke.go b/client/model_create_update_oke_properties_oke.go index 4ecf029dc2..6e757d43a0 100644 --- a/client/model_create_update_oke_properties_oke.go +++ b/client/model_create_update_oke_properties_oke.go @@ -12,6 +12,6 @@ package client type CreateUpdateOkePropertiesOke struct { - Version string `json:"version,omitempty"` - NodePools map[string]NodePoolsOracle `json:"nodePools,omitempty"` + Version string `json:"version"` + NodePools map[string]NodePoolsOracle `json:"nodePools"` } diff --git a/client/model_deployment_image_list.go b/client/model_deployment_image_list.go deleted file mode 100644 index cff31cb419..0000000000 --- a/client/model_deployment_image_list.go +++ /dev/null @@ -1,15 +0,0 @@ -/* - * Pipeline API - * - * Pipeline v0.3.0 swagger - * - * API version: 0.3.0 - * Contact: info@banzaicloud.com - */ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -type DeploymentImageList struct { -} diff --git a/client/model_deployment_scaling_response.go b/client/model_deployment_scaling_response.go deleted file mode 100644 index 01758679c5..0000000000 --- a/client/model_deployment_scaling_response.go +++ /dev/null @@ -1,15 +0,0 @@ -/* - * Pipeline API - * - * Pipeline v0.3.0 swagger - * - * API version: 0.3.0 - * Contact: info@banzaicloud.com - */ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -type DeploymentScalingResponse struct { -} diff --git a/client/model_deployment_scaling_response_inner.go b/client/model_deployment_scaling_response_inner.go deleted file mode 100644 index c39db7ed90..0000000000 --- a/client/model_deployment_scaling_response_inner.go +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Pipeline API - * - * Pipeline v0.3.0 swagger - * - * API version: 0.3.0 - * Contact: info@banzaicloud.com - */ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -type DeploymentScalingResponseInner struct { - ScaleTarget string `json:"scaleTarget,omitempty"` - Kind string `json:"kind,omitempty"` - MinReplicas int32 `json:"minReplicas,omitempty"` - MaxReplicas int32 `json:"maxReplicas,omitempty"` - Cpu ResourceMetricStatus `json:"cpu,omitempty"` - Memory ResourceMetricStatus `json:"memory,omitempty"` - CustomMetrics map[string]CustomMetricStatus `json:"customMetrics,omitempty"` - Status DeploymentScaleStatus `json:"status,omitempty"` -} diff --git a/client/model_get_deployment_resources_response.go b/client/model_get_deployment_resources_response.go deleted file mode 100644 index 06e616589f..0000000000 --- a/client/model_get_deployment_resources_response.go +++ /dev/null @@ -1,15 +0,0 @@ -/* - * Pipeline API - * - * Pipeline v0.3.0 swagger - * - * API version: 0.3.0 - * Contact: info@banzaicloud.com - */ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -type GetDeploymentResourcesResponse struct { -} diff --git a/client/model_get_deployment_resources_response_inner.go b/client/model_get_deployment_resources_response_inner.go deleted file mode 100644 index 7494b88ba1..0000000000 --- a/client/model_get_deployment_resources_response_inner.go +++ /dev/null @@ -1,17 +0,0 @@ -/* - * Pipeline API - * - * Pipeline v0.3.0 swagger - * - * API version: 0.3.0 - * Contact: info@banzaicloud.com - */ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -type GetDeploymentResourcesResponseInner struct { - Name string `json:"name,omitempty"` - Kind string `json:"kind,omitempty"` -} diff --git a/client/model_helm_charts_list_response.go b/client/model_helm_charts_list_response.go deleted file mode 100644 index e990cb35b7..0000000000 --- a/client/model_helm_charts_list_response.go +++ /dev/null @@ -1,15 +0,0 @@ -/* - * Pipeline API - * - * Pipeline v0.3.0 swagger - * - * API version: 0.3.0 - * Contact: info@banzaicloud.com - */ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -type HelmChartsListResponse struct { -} diff --git a/client/model_helm_charts_list_response_inner.go b/client/model_helm_charts_list_response_inner.go deleted file mode 100644 index 95db095fa8..0000000000 --- a/client/model_helm_charts_list_response_inner.go +++ /dev/null @@ -1,17 +0,0 @@ -/* - * Pipeline API - * - * Pipeline v0.3.0 swagger - * - * API version: 0.3.0 - * Contact: info@banzaicloud.com - */ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -type HelmChartsListResponseInner struct { - Name string `json:"name,omitempty"` - Charts [][]map[string]interface{} `json:"charts,omitempty"` -} diff --git a/client/model_amazon_launch_template.go b/client/model_helm_not_found.go similarity index 58% rename from client/model_amazon_launch_template.go rename to client/model_helm_not_found.go index 981ec54734..6775b8fe46 100644 --- a/client/model_amazon_launch_template.go +++ b/client/model_helm_not_found.go @@ -11,5 +11,8 @@ package client -type AmazonLaunchTemplate struct { +type HelmNotFound struct { + Code int32 `json:"code,omitempty"` + Message string `json:"message,omitempty"` + Error string `json:"error,omitempty"` } diff --git a/client/model_helm_repos_list_response.go b/client/model_helm_repos_list_response.go deleted file mode 100644 index 9ac9116f7a..0000000000 --- a/client/model_helm_repos_list_response.go +++ /dev/null @@ -1,15 +0,0 @@ -/* - * Pipeline API - * - * Pipeline v0.3.0 swagger - * - * API version: 0.3.0 - * Contact: info@banzaicloud.com - */ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -type HelmReposListResponse struct { -} diff --git a/client/model_image_content.go b/client/model_image_content.go deleted file mode 100644 index 53af344d2b..0000000000 --- a/client/model_image_content.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Pipeline API - * - * Pipeline v0.3.0 swagger - * - * API version: 0.3.0 - * Contact: info@banzaicloud.com - */ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -// A metadata content record for a specific image, containing different content type entries -type ImageContent struct { -} diff --git a/client/model_list_deployments_response.go b/client/model_list_deployments_response.go deleted file mode 100644 index 38c285f659..0000000000 --- a/client/model_list_deployments_response.go +++ /dev/null @@ -1,15 +0,0 @@ -/* - * Pipeline API - * - * Pipeline v0.3.0 swagger - * - * API version: 0.3.0 - * Contact: info@banzaicloud.com - */ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -type ListDeploymentsResponse struct { -} diff --git a/client/model_list_deployments_response_inner.go b/client/model_list_deployments_response_inner.go deleted file mode 100644 index f7bc5ca7ea..0000000000 --- a/client/model_list_deployments_response_inner.go +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Pipeline API - * - * Pipeline v0.3.0 swagger - * - * API version: 0.3.0 - * Contact: info@banzaicloud.com - */ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -type ListDeploymentsResponseInner struct { - ReleaseName string `json:"releaseName,omitempty"` - Chart string `json:"chart,omitempty"` - ChartName string `json:"chartName,omitempty"` - ChartVersion string `json:"chartVersion,omitempty"` - Version int32 `json:"version,omitempty"` - UpdatedAt string `json:"updatedAt,omitempty"` - Status string `json:"status,omitempty"` - Namespace string `json:"namespace,omitempty"` - CreatedAt string `json:"createdAt,omitempty"` - Supported bool `json:"supported,omitempty"` -} diff --git a/client/model_list_route_tables_response.go b/client/model_list_route_tables_response.go deleted file mode 100644 index ae84c2b51c..0000000000 --- a/client/model_list_route_tables_response.go +++ /dev/null @@ -1,15 +0,0 @@ -/* - * Pipeline API - * - * Pipeline v0.3.0 swagger - * - * API version: 0.3.0 - * Contact: info@banzaicloud.com - */ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -type ListRouteTablesResponse struct { -} diff --git a/client/model_list_spotguides_response.go b/client/model_list_spotguides_response.go deleted file mode 100644 index 5f71dc049b..0000000000 --- a/client/model_list_spotguides_response.go +++ /dev/null @@ -1,15 +0,0 @@ -/* - * Pipeline API - * - * Pipeline v0.3.0 swagger - * - * API version: 0.3.0 - * Contact: info@banzaicloud.com - */ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -type ListSpotguidesResponse struct { -} diff --git a/client/model_list_storage_buckets_response.go b/client/model_list_storage_buckets_response.go deleted file mode 100644 index cd4f367fcb..0000000000 --- a/client/model_list_storage_buckets_response.go +++ /dev/null @@ -1,15 +0,0 @@ -/* - * Pipeline API - * - * Pipeline v0.3.0 swagger - * - * API version: 0.3.0 - * Contact: info@banzaicloud.com - */ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -type ListStorageBucketsResponse struct { -} diff --git a/client/model_list_user_response.go b/client/model_list_user_response.go deleted file mode 100644 index 48f02989a8..0000000000 --- a/client/model_list_user_response.go +++ /dev/null @@ -1,15 +0,0 @@ -/* - * Pipeline API - * - * Pipeline v0.3.0 swagger - * - * API version: 0.3.0 - * Contact: info@banzaicloud.com - */ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -type ListUserResponse struct { -} diff --git a/client/model_list_vpc_networks_response.go b/client/model_list_vpc_networks_response.go deleted file mode 100644 index f11a95d6c6..0000000000 --- a/client/model_list_vpc_networks_response.go +++ /dev/null @@ -1,15 +0,0 @@ -/* - * Pipeline API - * - * Pipeline v0.3.0 swagger - * - * API version: 0.3.0 - * Contact: info@banzaicloud.com - */ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -type ListVpcNetworksResponse struct { -} diff --git a/client/model_list_vpc_subnets_response.go b/client/model_list_vpc_subnets_response.go deleted file mode 100644 index 6289715257..0000000000 --- a/client/model_list_vpc_subnets_response.go +++ /dev/null @@ -1,15 +0,0 @@ -/* - * Pipeline API - * - * Pipeline v0.3.0 swagger - * - * API version: 0.3.0 - * Contact: info@banzaicloud.com - */ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -type ListVpcSubnetsResponse struct { -} diff --git a/client/model_logging_post_hook_install_logging.go b/client/model_logging_post_hook_install_logging.go index 4f4ff4a79b..9fd8f69a2d 100644 --- a/client/model_logging_post_hook_install_logging.go +++ b/client/model_logging_post_hook_install_logging.go @@ -12,11 +12,11 @@ package client type LoggingPostHookInstallLogging struct { - BucketName string `json:"bucketName,omitempty"` + BucketName string `json:"bucketName"` Region string `json:"region,omitempty"` ResourceGroup string `json:"resourceGroup,omitempty"` StorageAccount string `json:"storageAccount,omitempty"` - SecretId string `json:"secretId,omitempty"` + SecretId string `json:"secretId"` SecretName string `json:"secretName,omitempty"` - Tls GenTlsForLogging `json:"tls,omitempty"` + Tls GenTlsForLogging `json:"tls"` } diff --git a/client/model_pod_details_response.go b/client/model_pod_details_response.go deleted file mode 100644 index 1ad0d0ba0f..0000000000 --- a/client/model_pod_details_response.go +++ /dev/null @@ -1,15 +0,0 @@ -/* - * Pipeline API - * - * Pipeline v0.3.0 swagger - * - * API version: 0.3.0 - * Contact: info@banzaicloud.com - */ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -type PodDetailsResponse struct { -} diff --git a/client/model_policy_bundle_list.go b/client/model_policy_bundle_list.go deleted file mode 100644 index b1a6603d40..0000000000 --- a/client/model_policy_bundle_list.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Pipeline API - * - * Pipeline v0.3.0 swagger - * - * API version: 0.3.0 - * Contact: info@banzaicloud.com - */ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -// List of PolicyBundleRecord objects -type PolicyBundleList struct { -} diff --git a/client/model_policy_rule_params.go b/client/model_policy_rule_params.go index e7bdacfd92..700cf72d4a 100644 --- a/client/model_policy_rule_params.go +++ b/client/model_policy_rule_params.go @@ -12,6 +12,6 @@ package client type PolicyRuleParams struct { - Name string `json:"name,omitempty"` - Value string `json:"value,omitempty"` + Name string `json:"name"` + Value string `json:"value"` } diff --git a/client/model_re_run_post_hook.go b/client/model_post_hooks.go similarity index 94% rename from client/model_re_run_post_hook.go rename to client/model_post_hooks.go index 41c945f0e8..fff24cfbca 100644 --- a/client/model_re_run_post_hook.go +++ b/client/model_post_hooks.go @@ -11,7 +11,7 @@ package client -type ReRunPostHook struct { +type PostHooks struct { InstallLogging LoggingPostHookInstallLogging `json:"InstallLogging,omitempty"` PostHookFunctionName map[string]interface{} `json:"PostHookFunctionName,omitempty"` InstallServiceMesh ServiceMeshPostHookInstallServiceMesh `json:"InstallServiceMesh,omitempty"` diff --git a/client/model_release_white_list.go b/client/model_release_white_list.go deleted file mode 100644 index ef9d494c02..0000000000 --- a/client/model_release_white_list.go +++ /dev/null @@ -1,15 +0,0 @@ -/* - * Pipeline API - * - * Pipeline v0.3.0 swagger - * - * API version: 0.3.0 - * Contact: info@banzaicloud.com - */ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -type ReleaseWhiteList struct { -} diff --git a/client/model_scan_log_list.go b/client/model_scan_log_list.go deleted file mode 100644 index 4e764dd298..0000000000 --- a/client/model_scan_log_list.go +++ /dev/null @@ -1,15 +0,0 @@ -/* - * Pipeline API - * - * Pipeline v0.3.0 swagger - * - * API version: 0.3.0 - * Contact: info@banzaicloud.com - */ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -type ScanLogList struct { -} diff --git a/client/model_secret_tags.go b/client/model_secret_tags.go deleted file mode 100644 index e945639f1d..0000000000 --- a/client/model_secret_tags.go +++ /dev/null @@ -1,15 +0,0 @@ -/* - * Pipeline API - * - * Pipeline v0.3.0 swagger - * - * API version: 0.3.0 - * Contact: info@banzaicloud.com - */ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -type SecretTags struct { -} diff --git a/client/model_spotguide_details_response.go b/client/model_spotguide_details_response.go index c89ce3cb32..127426ed90 100644 --- a/client/model_spotguide_details_response.go +++ b/client/model_spotguide_details_response.go @@ -12,13 +12,13 @@ package client type SpotguideDetailsResponse struct { - Name string `json:"name,omitempty"` - DisplayName string `json:"displayName,omitempty"` - CreatedAt string `json:"createdAt,omitempty"` - UpdatedAt string `json:"updatedAt,omitempty"` - Readme string `json:"readme,omitempty"` - Version string `json:"version,omitempty"` - Tags []string `json:"tags,omitempty"` - Resources RequestedResources `json:"resources,omitempty"` - Questions []map[string]interface{} `json:"questions,omitempty"` + Name string `json:"name,omitempty"` + DisplayName string `json:"displayName,omitempty"` + CreatedAt string `json:"createdAt,omitempty"` + UpdatedAt string `json:"updatedAt,omitempty"` + Readme string `json:"readme,omitempty"` + Version string `json:"version,omitempty"` + Tags []string `json:"tags,omitempty"` + Resources RequestedResources `json:"resources,omitempty"` + Questions []SpotguideOption `json:"questions,omitempty"` } diff --git a/client/model_spotguide_options_mysql_version.go b/client/model_spotguide_option.go similarity index 91% rename from client/model_spotguide_options_mysql_version.go rename to client/model_spotguide_option.go index bfc98dbb94..6b61cf75e7 100644 --- a/client/model_spotguide_options_mysql_version.go +++ b/client/model_spotguide_option.go @@ -11,7 +11,7 @@ package client -type SpotguideOptionsMysqlVersion struct { +type SpotguideOption struct { Name string `json:"name,omitempty"` Type string `json:"type,omitempty"` Info string `json:"info,omitempty"` diff --git a/client/model_spotguide_options_monitor.go b/client/model_spotguide_options_monitor.go deleted file mode 100644 index 0ccdacd609..0000000000 --- a/client/model_spotguide_options_monitor.go +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Pipeline API - * - * Pipeline v0.3.0 swagger - * - * API version: 0.3.0 - * Contact: info@banzaicloud.com - */ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -type SpotguideOptionsMonitor struct { - Name string `json:"name,omitempty"` - Type bool `json:"type,omitempty"` - Info string `json:"info,omitempty"` - Default bool `json:"default,omitempty"` - Readonly bool `json:"readonly,omitempty"` - Key string `json:"key,omitempty"` -} diff --git a/client/model_spotguide_options_mysql_database_name.go b/client/model_spotguide_options_mysql_database_name.go deleted file mode 100644 index a7de57b59c..0000000000 --- a/client/model_spotguide_options_mysql_database_name.go +++ /dev/null @@ -1,22 +0,0 @@ -/* - * Pipeline API - * - * Pipeline v0.3.0 swagger - * - * API version: 0.3.0 - * Contact: info@banzaicloud.com - */ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -type SpotguideOptionsMysqlDatabaseName struct { - Name string `json:"name,omitempty"` - Type string `json:"type,omitempty"` - Info string `json:"info,omitempty"` - Default string `json:"default,omitempty"` - Readonly bool `json:"readonly,omitempty"` - Enabled bool `json:"enabled,omitempty"` - Key string `json:"key,omitempty"` -} diff --git a/client/model_spotguide_options_mysql_database_size.go b/client/model_spotguide_options_mysql_database_size.go deleted file mode 100644 index 9013eacc26..0000000000 --- a/client/model_spotguide_options_mysql_database_size.go +++ /dev/null @@ -1,22 +0,0 @@ -/* - * Pipeline API - * - * Pipeline v0.3.0 swagger - * - * API version: 0.3.0 - * Contact: info@banzaicloud.com - */ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -type SpotguideOptionsMysqlDatabaseSize struct { - Name string `json:"name,omitempty"` - Type string `json:"type,omitempty"` - Info string `json:"info,omitempty"` - Default int32 `json:"default,omitempty"` - Readonly bool `json:"readonly,omitempty"` - Enabled bool `json:"enabled,omitempty"` - Key string `json:"key,omitempty"` -} diff --git a/client/model_token_create_request.go b/client/model_token_create_request.go index 12c7fb4beb..f9fa5505ca 100644 --- a/client/model_token_create_request.go +++ b/client/model_token_create_request.go @@ -16,7 +16,7 @@ import ( ) type TokenCreateRequest struct { - Name string `json:"name,omitempty"` - VirtualUser string `json:"virtualUser,omitempty"` - ExpiresAt time.Time `json:"expiresAt,omitempty"` + Name string `json:"name,omitempty"` + VirtualUser string `json:"virtualUser,omitempty"` + ExpiresAt *time.Time `json:"expiresAt,omitempty"` } diff --git a/client/model_update_ack_properties_acsk.go b/client/model_update_ack_properties_acsk.go index 66eead3dca..cdfade1a28 100644 --- a/client/model_update_ack_properties_acsk.go +++ b/client/model_update_ack_properties_acsk.go @@ -12,5 +12,5 @@ package client type UpdateAckPropertiesAcsk struct { - NodePools map[string]NodePoolsAck `json:"nodePools,omitempty"` + NodePools map[string]NodePoolsAck `json:"nodePools"` } diff --git a/client/model_update_eks_properties_eks.go b/client/model_update_eks_properties_eks.go index dfd74513d6..0f61e602f2 100644 --- a/client/model_update_eks_properties_eks.go +++ b/client/model_update_eks_properties_eks.go @@ -12,5 +12,5 @@ package client type UpdateEksPropertiesEks struct { - NodePools map[string]UpdateNodePoolsEks `json:"nodePools,omitempty"` + NodePools map[string]UpdateNodePoolsEks `json:"nodePools"` } diff --git a/client/model_vulnerability_list.go b/client/model_vulnerability_list.go deleted file mode 100644 index e744448061..0000000000 --- a/client/model_vulnerability_list.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Pipeline API - * - * Pipeline v0.3.0 swagger - * - * API version: 0.3.0 - * Contact: info@banzaicloud.com - */ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -// List of Vulnerability objects -type VulnerabilityList struct { -} diff --git a/client/model_vulnerability_response.go b/client/model_vulnerability_response.go index 4d2f9818b3..3062231f58 100644 --- a/client/model_vulnerability_response.go +++ b/client/model_vulnerability_response.go @@ -13,7 +13,8 @@ package client // envelope containing list of vulnerabilities type VulnerabilityResponse struct { - ImageDigest string `json:"imageDigest,omitempty"` - VulnerabilityType string `json:"vulnerabilityType,omitempty"` - Vulnerabilities VulnerabilityList `json:"vulnerabilities,omitempty"` + ImageDigest string `json:"imageDigest,omitempty"` + VulnerabilityType string `json:"vulnerabilityType,omitempty"` + // List of Vulnerability objects + Vulnerabilities []Vulnerability `json:"vulnerabilities,omitempty"` } diff --git a/docs/openapi/pipeline.yaml b/docs/openapi/pipeline.yaml index 9d975207ac..a06f9745c7 100644 --- a/docs/openapi/pipeline.yaml +++ b/docs/openapi/pipeline.yaml @@ -769,7 +769,7 @@ paths: tags: - clusters summary: List service public endpoints - operationId: ListEndpoints + operationId: ListClusterEndpoints description: List service public endpoints parameters: - @@ -1508,7 +1508,7 @@ paths: tags: - helm summary: List repositories - operationId: HelmInit + operationId: HelmListRepos description: Listing Helm repositories in the cluster parameters: - @@ -1698,11 +1698,7 @@ paths: content: application/json: schema: - oneOf: - - - $ref: '#/components/schemas/ClusterNotFound' - - - $ref: '#/components/schemas/RepoNotFound' + $ref: '#/components/schemas/HelmNotFound' '/api/v1/orgs/{orgId}/helm/repos/{repoName}/update': put: @@ -1753,11 +1749,7 @@ paths: content: application/json: schema: - oneOf: - - - $ref: '#/components/schemas/ClusterNotFound' - - - $ref: '#/components/schemas/RepoNotFound' + $ref: '#/components/schemas/HelmNotFound' '/api/v1/orgs/{orgId}/helm/charts/': get: @@ -5258,15 +5250,7 @@ components: questions: type: array items: - oneOf: - - - $ref: '#/components/schemas/SpotguideOptionsMysqlDatabaseName' - - - $ref: '#/components/schemas/SpotguideOptionsMysqlDatabaseSize' - - - $ref: '#/components/schemas/SpotguideOptionsMysqlVersion' - - - $ref: '#/components/schemas/SpotguideOptionsMonitor' + $ref: '#/components/schemas/SpotguideOption' LaunchSpotguidesRequest: type: object @@ -5302,57 +5286,7 @@ components: pipeline: type: object - SpotguideOptionsMysqlDatabaseName: - type: object - properties: - name: - type: string - example: mysqlDatabaseName - type: - type: string - example: string - info: - type: string - example: Your mysql database name - default: - type: string - example: "your-mysql-database1" - readonly: - type: boolean - example: false - enabled: - type: boolean - example: true - key: - type: string - example: mysql.database.name - - SpotguideOptionsMysqlDatabaseSize: - type: object - properties: - name: - type: string - example: mysqlDatabaseSize - type: - type: string - example: string - info: - type: string - example: Your mysql database size in GB - default: - type: integer - example: "1" - readonly: - type: boolean - example: false - enabled: - type: boolean - example: true - key: - type: string - example: mysql.database.size - - SpotguideOptionsMysqlVersion: + SpotguideOption: type: object properties: name: @@ -5375,28 +5309,6 @@ components: type: string example: mysql.version - SpotguideOptionsMonitor: - type: object - properties: - name: - type: string - example: monitor - type: - type: boolean - example: true - info: - type: string - example: Mysql monitoring - default: - type: boolean - example: true - readonly: - type: boolean - example: false - key: - type: string - example: monitor.enabled - SpotguideNotFound: type: object properties: @@ -5413,9 +5325,7 @@ components: ListSpotguidesResponse: type: array items: - oneOf: - - - $ref: '#/components/schemas/SpotguideDetailsResponse' + $ref: '#/components/schemas/SpotguideDetailsResponse' GetDomainResponse: description: GetDomainResponse Api object to be mapped to Get domain request @@ -5488,13 +5398,14 @@ components: example: "my-aws-secret" postHooks: type: object - oneOf: - - - $ref: '#/components/schemas/LoggingPostHook' - - - $ref: '#/components/schemas/BasePostHook' - - - $ref: '#/components/schemas/ServiceMeshPostHook' + additionalProperties: + # oneOf: + # - + # $ref: '#/components/schemas/LoggingPostHook' + # - + # $ref: '#/components/schemas/BasePostHook' + # - + # $ref: '#/components/schemas/ServiceMeshPostHook' example: InstallLogging: bucketName: "mybucketname" @@ -5505,19 +5416,20 @@ components: type: string properties: type: object - oneOf: - - - $ref: '#/components/schemas/CreateAKSProperties' - - - $ref: '#/components/schemas/CreateGKEProperties' - - - $ref: '#/components/schemas/CreateEKSProperties' - - - $ref: '#/components/schemas/CreateUpdateOKEProperties' - - - $ref: '#/components/schemas/CreateACKProperties' - - - $ref: '#/components/schemas/CreatePKEProperties' + additionalProperties: + # oneOf: + # - + # $ref: '#/components/schemas/CreateAKSProperties' + # - + # $ref: '#/components/schemas/CreateGKEProperties' + # - + # $ref: '#/components/schemas/CreateEKSProperties' + # - + # $ref: '#/components/schemas/CreateUpdateOKEProperties' + # - + # $ref: '#/components/schemas/CreateACKProperties' + # - + # $ref: '#/components/schemas/CreatePKEProperties' example: gke: master: @@ -5877,9 +5789,10 @@ components: example: "amazon" providerConfig: type: object - oneOf: - - - $ref: '#/components/schemas/AmazonPoviderConfig' + additionalProperties: + # oneOf: + # - + # $ref: '#/components/schemas/AmazonPoviderConfig' hosts: type: array items: @@ -6038,6 +5951,13 @@ components: error: type: string example: "Error during process" + + HelmNotFound: + oneOf: + - + $ref: '#/components/schemas/ClusterNotFound' + - + $ref: '#/components/schemas/RepoNotFound' ClusterNotFound: type: object @@ -6113,17 +6033,18 @@ components: example: google properties: type: object - oneOf: - - - $ref: '#/components/schemas/UpdateAzureProperties' - - - $ref: '#/components/schemas/UpdateGoogleProperties' - - - $ref: '#/components/schemas/UpdateEksProperties' - - - $ref: '#/components/schemas/CreateUpdateOKEProperties' - - - $ref: '#/components/schemas/UpdateACKProperties' + additionalProperties: + # oneOf: + # - + # $ref: '#/components/schemas/UpdateAzureProperties' + # - + # $ref: '#/components/schemas/UpdateGoogleProperties' + # - + # $ref: '#/components/schemas/UpdateEksProperties' + # - + # $ref: '#/components/schemas/CreateUpdateOKEProperties' + # - + # $ref: '#/components/schemas/UpdateACKProperties' example: google: master: @@ -7059,13 +6980,14 @@ components: example: "google" properties: type: object - oneOf: - - - $ref: '#/components/schemas/ClusterProfileEKS' - - - $ref: '#/components/schemas/ClusterProfileAKS' - - - $ref: '#/components/schemas/ClusterProfileGKE' + additionalProperties: + # oneOf: + # - + # $ref: '#/components/schemas/ClusterProfileEKS' + # - + # $ref: '#/components/schemas/ClusterProfileAKS' + # - + # $ref: '#/components/schemas/ClusterProfileGKE' example: gke: master: @@ -7138,15 +7060,16 @@ components: example: "google" properties: type: object - oneOf: - - - $ref: '#/components/schemas/AddClusterProfileEKS' - - - $ref: '#/components/schemas/AddClusterProfileAKS' - - - $ref: '#/components/schemas/AddClusterProfileGKE' - - - $ref: '#/components/schemas/CreateUpdateOKEProperties' + additionalProperties: + # oneOf: + # - + # $ref: '#/components/schemas/AddClusterProfileEKS' + # - + # $ref: '#/components/schemas/AddClusterProfileAKS' + # - + # $ref: '#/components/schemas/AddClusterProfileGKE' + # - + # $ref: '#/components/schemas/CreateUpdateOKEProperties' example: gke: master: @@ -7216,6 +7139,7 @@ components: example: banzaicloud/pipeline expiresAt: type: string + nullable: true format: date-time example: "2018-03-09T13:24:49+01:00" @@ -7347,22 +7271,22 @@ components: type: integer example: 1 values: - type: object - oneOf: - - - $ref: '#/components/schemas/SecretKeyValueAmazon' - - - $ref: '#/components/schemas/SecretKeyValueAzure' - - - $ref: '#/components/schemas/SecretKeyValueGoogle' - - - $ref: '#/components/schemas/SecretKeyValueOracle' - - - $ref: '#/components/schemas/SecretKeyValueKubernetes' - - - $ref: '#/components/schemas/SecretKeyValueGeneric' - - - $ref: '#/components/schemas/SecretKeyValueTLS' + additionalProperties: + # oneOf: + # - + # $ref: '#/components/schemas/SecretKeyValueAmazon' + # - + # $ref: '#/components/schemas/SecretKeyValueAzure' + # - + # $ref: '#/components/schemas/SecretKeyValueGoogle' + # - + # $ref: '#/components/schemas/SecretKeyValueOracle' + # - + # $ref: '#/components/schemas/SecretKeyValueKubernetes' + # - + # $ref: '#/components/schemas/SecretKeyValueGeneric' + # - + # $ref: '#/components/schemas/SecretKeyValueTLS' example: type: string project_id: string @@ -7886,69 +7810,65 @@ components: type: string example: "mybucket" properties: - oneOf: - - - $ref: '#/components/schemas/CreateAmazonObjectStoreBucketProperties' - - - $ref: '#/components/schemas/CreateAzureObjectStoreBucketProperties' - - - $ref: '#/components/schemas/CreateGoogleObjectStoreBucketProperties' - - - $ref: '#/components/schemas/CreateOracleObjectStoreBucketProperties' + $ref: '#/components/schemas/CreateObjectStoreBucketProperties' + + CreateObjectStoreBucketProperties: + type: object + properties: + alibaba: + $ref: '#/components/schemas/CreateAmazonObjectStoreBucketProperties' + azure: + $ref: '#/components/schemas/CreateAzureObjectStoreBucketProperties' + google: + $ref: '#/components/schemas/CreateGoogleObjectStoreBucketProperties' + oracle: + $ref: '#/components/schemas/CreateOracleObjectStoreBucketProperties' CreateAmazonObjectStoreBucketProperties: type: object + nullable: true + required: + - location properties: - amazon: - type: object - required: - - location - properties: - location: - type: string - example: "eu-west-1" + location: + type: string + example: "eu-west-1" CreateGoogleObjectStoreBucketProperties: type: object + nullable: true + required: + - location properties: - google: - type: object - required: - - location - properties: - location: - type: string - example: "europe" + location: + type: string + example: "europe" CreateAzureObjectStoreBucketProperties: type: object + nullable: true + required: + - storageAccount + - resourceGroup + - location properties: - azure: - type: object - required: - - storageAccount - - resourceGroup - - location - properties: - storageAccount: - type: string - example: "mystorageaccount" - location: - type: string - example: "westeurope" - resourceGroup: - type: string + storageAccount: + type: string + example: "mystorageaccount" + location: + type: string + example: "westeurope" + resourceGroup: + type: string CreateOracleObjectStoreBucketProperties: type: object + nullable: true + required: + - location properties: - oracle: - type: object - required: - - location - properties: - location: - type: string + location: + type: string CreateObjectStoreBucketResponse: type: object @@ -8230,8 +8150,7 @@ components: type: boolean example: false - ReRunPostHook: - type: object + PostHooks: oneOf: - $ref: '#/components/schemas/LoggingPostHook' @@ -8239,6 +8158,10 @@ components: $ref: '#/components/schemas/BasePostHook' - $ref: '#/components/schemas/ServiceMeshPostHook' + + ReRunPostHook: + type: object + additionalProperties: example: InstallLogging: bucketName: "mybucketname" @@ -8982,10 +8905,10 @@ components: example: 127.0.0.1 description: ip address of node (where the other nodes can reach it) master: - type: bool + type: boolean description: if this node is a master node example: true worker: - type: bool + type: boolean description: if this node is a worker node example: false