From 719d4814dbd701542d2fe0e5ed9be39f313437ff Mon Sep 17 00:00:00 2001 From: Fred Rolland Date: Mon, 12 Oct 2020 16:42:52 +0300 Subject: [PATCH] MGMT-2424 Generate from swagger - LSO support --- models/cluster.go | 3 +++ models/cluster_create_params.go | 3 +++ models/cluster_update_params.go | 3 +++ restapi/embedded_spec.go | 34 +++++++++++++++++++++++++++++++++ 4 files changed, 43 insertions(+) diff --git a/models/cluster.go b/models/cluster.go index 63461cd51b2..50208dd8959 100644 --- a/models/cluster.go +++ b/models/cluster.go @@ -96,6 +96,9 @@ type Cluster struct { // JSON-formatted string containing the user overrides for the install-config.yaml file. InstallConfigOverrides string `json:"install_config_overrides,omitempty" gorm:"type:varchar(2048)"` + // Indicates if OpenShift Container Storage is installed. + InstallOcs *bool `json:"install_ocs,omitempty"` + // The time that this cluster started installation. // Format: date-time InstallStartedAt strfmt.DateTime `json:"install_started_at,omitempty" gorm:"type:timestamp with time zone;default:'2000-01-01 00:00:00z'"` diff --git a/models/cluster_create_params.go b/models/cluster_create_params.go index 3f3cb0cd74f..7bd3d3316cf 100644 --- a/models/cluster_create_params.go +++ b/models/cluster_create_params.go @@ -45,6 +45,9 @@ type ClusterCreateParams struct { // Pattern: ^(([0-9]{1,3}\.){3}[0-9]{1,3})?$ IngressVip string `json:"ingress_vip,omitempty"` + // Indicates if OpenShift Container Storage is installed. + InstallOcs *bool `json:"install_ocs,omitempty"` + // Name of the OpenShift cluster. // Required: true Name *string `json:"name"` diff --git a/models/cluster_update_params.go b/models/cluster_update_params.go index c102f4f01af..ffc76dd8d25 100644 --- a/models/cluster_update_params.go +++ b/models/cluster_update_params.go @@ -58,6 +58,9 @@ type ClusterUpdateParams struct { // Pattern: ^(([0-9]{1,3}\.){3}[0-9]{1,3})?$ IngressVip *string `json:"ingress_vip,omitempty"` + // Indicate if Local Storage Operator is installed. + InstallOcs *bool `json:"install_ocs,omitempty"` + // A CIDR that all hosts belonging to the cluster should have an interfaces with IP address that belongs to this CIDR. The api_vip belongs to this CIDR. // Pattern: ^([0-9]{1,3}\.){3}[0-9]{1,3}\/[0-9]|[1-2][0-9]|3[0-2]?$ MachineNetworkCidr *string `json:"machine_network_cidr,omitempty"` diff --git a/restapi/embedded_spec.go b/restapi/embedded_spec.go index bb034a8fb12..e17a4843bfb 100644 --- a/restapi/embedded_spec.go +++ b/restapi/embedded_spec.go @@ -3397,6 +3397,11 @@ func init() { "x-go-custom-tag": "gorm:\"type:varchar(2048)\"", "example": "{\"networking\":{\"networkType\": \"OVN-Kubernetes\"},\"fips\":true}" }, + "install_ocs": { + "description": "Indicates if OpenShift Container Storage is installed.", + "type": "boolean", + "x-nullable": true + }, "install_started_at": { "description": "The time that this cluster started installation.", "type": "string", @@ -3536,6 +3541,12 @@ func init() { "type": "string", "pattern": "^(([0-9]{1,3}\\.){3}[0-9]{1,3})?$" }, + "install_ocs": { + "description": "Indicates if OpenShift Container Storage is installed.", + "type": "boolean", + "default": false, + "x-nullable": true + }, "name": { "description": "Name of the OpenShift cluster.", "type": "string" @@ -3665,6 +3676,12 @@ func init() { "pattern": "^(([0-9]{1,3}\\.){3}[0-9]{1,3})?$", "x-nullable": true }, + "install_ocs": { + "description": "Indicate if Local Storage Operator is installed.", + "type": "boolean", + "default": false, + "x-nullable": true + }, "machine_network_cidr": { "description": "A CIDR that all hosts belonging to the cluster should have an interfaces with IP address that belongs to this CIDR. The api_vip belongs to this CIDR.", "type": "string", @@ -8245,6 +8262,11 @@ func init() { "x-go-custom-tag": "gorm:\"type:varchar(2048)\"", "example": "{\"networking\":{\"networkType\": \"OVN-Kubernetes\"},\"fips\":true}" }, + "install_ocs": { + "description": "Indicates if OpenShift Container Storage is installed.", + "type": "boolean", + "x-nullable": true + }, "install_started_at": { "description": "The time that this cluster started installation.", "type": "string", @@ -8384,6 +8406,12 @@ func init() { "type": "string", "pattern": "^(([0-9]{1,3}\\.){3}[0-9]{1,3})?$" }, + "install_ocs": { + "description": "Indicates if OpenShift Container Storage is installed.", + "type": "boolean", + "default": false, + "x-nullable": true + }, "name": { "description": "Name of the OpenShift cluster.", "type": "string" @@ -8495,6 +8523,12 @@ func init() { "pattern": "^(([0-9]{1,3}\\.){3}[0-9]{1,3})?$", "x-nullable": true }, + "install_ocs": { + "description": "Indicate if Local Storage Operator is installed.", + "type": "boolean", + "default": false, + "x-nullable": true + }, "machine_network_cidr": { "description": "A CIDR that all hosts belonging to the cluster should have an interfaces with IP address that belongs to this CIDR. The api_vip belongs to this CIDR.", "type": "string",