diff --git a/.DS_Store b/.DS_Store deleted file mode 100644 index ef82ecf2..00000000 Binary files a/.DS_Store and /dev/null differ diff --git a/api/client/v1/v1_aws_cloud_configs_edge_native_machine_pool_delete_parameters.go b/api/client/v1/v1_aws_cloud_configs_edge_native_machine_pool_delete_parameters.go new file mode 100644 index 00000000..7463cd2a --- /dev/null +++ b/api/client/v1/v1_aws_cloud_configs_edge_native_machine_pool_delete_parameters.go @@ -0,0 +1,157 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package v1 + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" +) + +// NewV1AwsCloudConfigsEdgeNativeMachinePoolDeleteParams creates a new V1AwsCloudConfigsEdgeNativeMachinePoolDeleteParams object +// with the default values initialized. +func NewV1AwsCloudConfigsEdgeNativeMachinePoolDeleteParams() *V1AwsCloudConfigsEdgeNativeMachinePoolDeleteParams { + var () + return &V1AwsCloudConfigsEdgeNativeMachinePoolDeleteParams{ + + timeout: cr.DefaultTimeout, + } +} + +// NewV1AwsCloudConfigsEdgeNativeMachinePoolDeleteParamsWithTimeout creates a new V1AwsCloudConfigsEdgeNativeMachinePoolDeleteParams object +// with the default values initialized, and the ability to set a timeout on a request +func NewV1AwsCloudConfigsEdgeNativeMachinePoolDeleteParamsWithTimeout(timeout time.Duration) *V1AwsCloudConfigsEdgeNativeMachinePoolDeleteParams { + var () + return &V1AwsCloudConfigsEdgeNativeMachinePoolDeleteParams{ + + timeout: timeout, + } +} + +// NewV1AwsCloudConfigsEdgeNativeMachinePoolDeleteParamsWithContext creates a new V1AwsCloudConfigsEdgeNativeMachinePoolDeleteParams object +// with the default values initialized, and the ability to set a context for a request +func NewV1AwsCloudConfigsEdgeNativeMachinePoolDeleteParamsWithContext(ctx context.Context) *V1AwsCloudConfigsEdgeNativeMachinePoolDeleteParams { + var () + return &V1AwsCloudConfigsEdgeNativeMachinePoolDeleteParams{ + + Context: ctx, + } +} + +// NewV1AwsCloudConfigsEdgeNativeMachinePoolDeleteParamsWithHTTPClient creates a new V1AwsCloudConfigsEdgeNativeMachinePoolDeleteParams object +// with the default values initialized, and the ability to set a custom HTTPClient for a request +func NewV1AwsCloudConfigsEdgeNativeMachinePoolDeleteParamsWithHTTPClient(client *http.Client) *V1AwsCloudConfigsEdgeNativeMachinePoolDeleteParams { + var () + return &V1AwsCloudConfigsEdgeNativeMachinePoolDeleteParams{ + HTTPClient: client, + } +} + +/* +V1AwsCloudConfigsEdgeNativeMachinePoolDeleteParams contains all the parameters to send to the API endpoint +for the v1 aws cloud configs edge native machine pool delete operation typically these are written to a http.Request +*/ +type V1AwsCloudConfigsEdgeNativeMachinePoolDeleteParams struct { + + /*ConfigUID + AWS Cluster's cloud config uid + + */ + ConfigUID string + /*MachinePoolName + Edge-native machine pool name + + */ + MachinePoolName string + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithTimeout adds the timeout to the v1 aws cloud configs edge native machine pool delete params +func (o *V1AwsCloudConfigsEdgeNativeMachinePoolDeleteParams) WithTimeout(timeout time.Duration) *V1AwsCloudConfigsEdgeNativeMachinePoolDeleteParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the v1 aws cloud configs edge native machine pool delete params +func (o *V1AwsCloudConfigsEdgeNativeMachinePoolDeleteParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the v1 aws cloud configs edge native machine pool delete params +func (o *V1AwsCloudConfigsEdgeNativeMachinePoolDeleteParams) WithContext(ctx context.Context) *V1AwsCloudConfigsEdgeNativeMachinePoolDeleteParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the v1 aws cloud configs edge native machine pool delete params +func (o *V1AwsCloudConfigsEdgeNativeMachinePoolDeleteParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the v1 aws cloud configs edge native machine pool delete params +func (o *V1AwsCloudConfigsEdgeNativeMachinePoolDeleteParams) WithHTTPClient(client *http.Client) *V1AwsCloudConfigsEdgeNativeMachinePoolDeleteParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the v1 aws cloud configs edge native machine pool delete params +func (o *V1AwsCloudConfigsEdgeNativeMachinePoolDeleteParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithConfigUID adds the configUID to the v1 aws cloud configs edge native machine pool delete params +func (o *V1AwsCloudConfigsEdgeNativeMachinePoolDeleteParams) WithConfigUID(configUID string) *V1AwsCloudConfigsEdgeNativeMachinePoolDeleteParams { + o.SetConfigUID(configUID) + return o +} + +// SetConfigUID adds the configUid to the v1 aws cloud configs edge native machine pool delete params +func (o *V1AwsCloudConfigsEdgeNativeMachinePoolDeleteParams) SetConfigUID(configUID string) { + o.ConfigUID = configUID +} + +// WithMachinePoolName adds the machinePoolName to the v1 aws cloud configs edge native machine pool delete params +func (o *V1AwsCloudConfigsEdgeNativeMachinePoolDeleteParams) WithMachinePoolName(machinePoolName string) *V1AwsCloudConfigsEdgeNativeMachinePoolDeleteParams { + o.SetMachinePoolName(machinePoolName) + return o +} + +// SetMachinePoolName adds the machinePoolName to the v1 aws cloud configs edge native machine pool delete params +func (o *V1AwsCloudConfigsEdgeNativeMachinePoolDeleteParams) SetMachinePoolName(machinePoolName string) { + o.MachinePoolName = machinePoolName +} + +// WriteToRequest writes these params to a swagger request +func (o *V1AwsCloudConfigsEdgeNativeMachinePoolDeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + // path param configUid + if err := r.SetPathParam("configUid", o.ConfigUID); err != nil { + return err + } + + // path param machinePoolName + if err := r.SetPathParam("machinePoolName", o.MachinePoolName); err != nil { + return err + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/client/v1/v1_aws_cloud_configs_edge_native_machine_pool_delete_responses.go b/api/client/v1/v1_aws_cloud_configs_edge_native_machine_pool_delete_responses.go new file mode 100644 index 00000000..482c34fe --- /dev/null +++ b/api/client/v1/v1_aws_cloud_configs_edge_native_machine_pool_delete_responses.go @@ -0,0 +1,55 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package v1 + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// V1AwsCloudConfigsEdgeNativeMachinePoolDeleteReader is a Reader for the V1AwsCloudConfigsEdgeNativeMachinePoolDelete structure. +type V1AwsCloudConfigsEdgeNativeMachinePoolDeleteReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *V1AwsCloudConfigsEdgeNativeMachinePoolDeleteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 204: + result := NewV1AwsCloudConfigsEdgeNativeMachinePoolDeleteNoContent() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewV1AwsCloudConfigsEdgeNativeMachinePoolDeleteNoContent creates a V1AwsCloudConfigsEdgeNativeMachinePoolDeleteNoContent with default headers values +func NewV1AwsCloudConfigsEdgeNativeMachinePoolDeleteNoContent() *V1AwsCloudConfigsEdgeNativeMachinePoolDeleteNoContent { + return &V1AwsCloudConfigsEdgeNativeMachinePoolDeleteNoContent{} +} + +/* +V1AwsCloudConfigsEdgeNativeMachinePoolDeleteNoContent handles this case with default header values. + +The resource was deleted successfully +*/ +type V1AwsCloudConfigsEdgeNativeMachinePoolDeleteNoContent struct { +} + +func (o *V1AwsCloudConfigsEdgeNativeMachinePoolDeleteNoContent) Error() string { + return fmt.Sprintf("[DELETE /v1/cloudconfigs/aws/{configUid}/edge-native/machinePools/{machinePoolName}][%d] v1AwsCloudConfigsEdgeNativeMachinePoolDeleteNoContent ", 204) +} + +func (o *V1AwsCloudConfigsEdgeNativeMachinePoolDeleteNoContent) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} diff --git a/api/client/v1/v1_aws_cloud_configs_edge_native_machine_pool_get_parameters.go b/api/client/v1/v1_aws_cloud_configs_edge_native_machine_pool_get_parameters.go new file mode 100644 index 00000000..a3b6aa00 --- /dev/null +++ b/api/client/v1/v1_aws_cloud_configs_edge_native_machine_pool_get_parameters.go @@ -0,0 +1,157 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package v1 + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" +) + +// NewV1AwsCloudConfigsEdgeNativeMachinePoolGetParams creates a new V1AwsCloudConfigsEdgeNativeMachinePoolGetParams object +// with the default values initialized. +func NewV1AwsCloudConfigsEdgeNativeMachinePoolGetParams() *V1AwsCloudConfigsEdgeNativeMachinePoolGetParams { + var () + return &V1AwsCloudConfigsEdgeNativeMachinePoolGetParams{ + + timeout: cr.DefaultTimeout, + } +} + +// NewV1AwsCloudConfigsEdgeNativeMachinePoolGetParamsWithTimeout creates a new V1AwsCloudConfigsEdgeNativeMachinePoolGetParams object +// with the default values initialized, and the ability to set a timeout on a request +func NewV1AwsCloudConfigsEdgeNativeMachinePoolGetParamsWithTimeout(timeout time.Duration) *V1AwsCloudConfigsEdgeNativeMachinePoolGetParams { + var () + return &V1AwsCloudConfigsEdgeNativeMachinePoolGetParams{ + + timeout: timeout, + } +} + +// NewV1AwsCloudConfigsEdgeNativeMachinePoolGetParamsWithContext creates a new V1AwsCloudConfigsEdgeNativeMachinePoolGetParams object +// with the default values initialized, and the ability to set a context for a request +func NewV1AwsCloudConfigsEdgeNativeMachinePoolGetParamsWithContext(ctx context.Context) *V1AwsCloudConfigsEdgeNativeMachinePoolGetParams { + var () + return &V1AwsCloudConfigsEdgeNativeMachinePoolGetParams{ + + Context: ctx, + } +} + +// NewV1AwsCloudConfigsEdgeNativeMachinePoolGetParamsWithHTTPClient creates a new V1AwsCloudConfigsEdgeNativeMachinePoolGetParams object +// with the default values initialized, and the ability to set a custom HTTPClient for a request +func NewV1AwsCloudConfigsEdgeNativeMachinePoolGetParamsWithHTTPClient(client *http.Client) *V1AwsCloudConfigsEdgeNativeMachinePoolGetParams { + var () + return &V1AwsCloudConfigsEdgeNativeMachinePoolGetParams{ + HTTPClient: client, + } +} + +/* +V1AwsCloudConfigsEdgeNativeMachinePoolGetParams contains all the parameters to send to the API endpoint +for the v1 aws cloud configs edge native machine pool get operation typically these are written to a http.Request +*/ +type V1AwsCloudConfigsEdgeNativeMachinePoolGetParams struct { + + /*ConfigUID + AWS Cluster's cloud config uid + + */ + ConfigUID string + /*MachinePoolName + Edge-native machine pool name + + */ + MachinePoolName string + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithTimeout adds the timeout to the v1 aws cloud configs edge native machine pool get params +func (o *V1AwsCloudConfigsEdgeNativeMachinePoolGetParams) WithTimeout(timeout time.Duration) *V1AwsCloudConfigsEdgeNativeMachinePoolGetParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the v1 aws cloud configs edge native machine pool get params +func (o *V1AwsCloudConfigsEdgeNativeMachinePoolGetParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the v1 aws cloud configs edge native machine pool get params +func (o *V1AwsCloudConfigsEdgeNativeMachinePoolGetParams) WithContext(ctx context.Context) *V1AwsCloudConfigsEdgeNativeMachinePoolGetParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the v1 aws cloud configs edge native machine pool get params +func (o *V1AwsCloudConfigsEdgeNativeMachinePoolGetParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the v1 aws cloud configs edge native machine pool get params +func (o *V1AwsCloudConfigsEdgeNativeMachinePoolGetParams) WithHTTPClient(client *http.Client) *V1AwsCloudConfigsEdgeNativeMachinePoolGetParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the v1 aws cloud configs edge native machine pool get params +func (o *V1AwsCloudConfigsEdgeNativeMachinePoolGetParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithConfigUID adds the configUID to the v1 aws cloud configs edge native machine pool get params +func (o *V1AwsCloudConfigsEdgeNativeMachinePoolGetParams) WithConfigUID(configUID string) *V1AwsCloudConfigsEdgeNativeMachinePoolGetParams { + o.SetConfigUID(configUID) + return o +} + +// SetConfigUID adds the configUid to the v1 aws cloud configs edge native machine pool get params +func (o *V1AwsCloudConfigsEdgeNativeMachinePoolGetParams) SetConfigUID(configUID string) { + o.ConfigUID = configUID +} + +// WithMachinePoolName adds the machinePoolName to the v1 aws cloud configs edge native machine pool get params +func (o *V1AwsCloudConfigsEdgeNativeMachinePoolGetParams) WithMachinePoolName(machinePoolName string) *V1AwsCloudConfigsEdgeNativeMachinePoolGetParams { + o.SetMachinePoolName(machinePoolName) + return o +} + +// SetMachinePoolName adds the machinePoolName to the v1 aws cloud configs edge native machine pool get params +func (o *V1AwsCloudConfigsEdgeNativeMachinePoolGetParams) SetMachinePoolName(machinePoolName string) { + o.MachinePoolName = machinePoolName +} + +// WriteToRequest writes these params to a swagger request +func (o *V1AwsCloudConfigsEdgeNativeMachinePoolGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + // path param configUid + if err := r.SetPathParam("configUid", o.ConfigUID); err != nil { + return err + } + + // path param machinePoolName + if err := r.SetPathParam("machinePoolName", o.MachinePoolName); err != nil { + return err + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/client/v1/v1_aws_cloud_configs_edge_native_machine_pool_get_responses.go b/api/client/v1/v1_aws_cloud_configs_edge_native_machine_pool_get_responses.go new file mode 100644 index 00000000..516f469a --- /dev/null +++ b/api/client/v1/v1_aws_cloud_configs_edge_native_machine_pool_get_responses.go @@ -0,0 +1,70 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package v1 + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + "io" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" + + "github.com/spectrocloud/palette-sdk-go/api/models" +) + +// V1AwsCloudConfigsEdgeNativeMachinePoolGetReader is a Reader for the V1AwsCloudConfigsEdgeNativeMachinePoolGet structure. +type V1AwsCloudConfigsEdgeNativeMachinePoolGetReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *V1AwsCloudConfigsEdgeNativeMachinePoolGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewV1AwsCloudConfigsEdgeNativeMachinePoolGetOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewV1AwsCloudConfigsEdgeNativeMachinePoolGetOK creates a V1AwsCloudConfigsEdgeNativeMachinePoolGetOK with default headers values +func NewV1AwsCloudConfigsEdgeNativeMachinePoolGetOK() *V1AwsCloudConfigsEdgeNativeMachinePoolGetOK { + return &V1AwsCloudConfigsEdgeNativeMachinePoolGetOK{} +} + +/* +V1AwsCloudConfigsEdgeNativeMachinePoolGetOK handles this case with default header values. + +OK +*/ +type V1AwsCloudConfigsEdgeNativeMachinePoolGetOK struct { + Payload *models.V1HybridEdgeNativeMachinePoolConfig +} + +func (o *V1AwsCloudConfigsEdgeNativeMachinePoolGetOK) Error() string { + return fmt.Sprintf("[GET /v1/cloudconfigs/aws/{configUid}/edge-native/machinePools/{machinePoolName}][%d] v1AwsCloudConfigsEdgeNativeMachinePoolGetOK %+v", 200, o.Payload) +} + +func (o *V1AwsCloudConfigsEdgeNativeMachinePoolGetOK) GetPayload() *models.V1HybridEdgeNativeMachinePoolConfig { + return o.Payload +} + +func (o *V1AwsCloudConfigsEdgeNativeMachinePoolGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.V1HybridEdgeNativeMachinePoolConfig) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/api/client/v1/v1_aws_cloud_configs_edge_native_machine_pool_update_parameters.go b/api/client/v1/v1_aws_cloud_configs_edge_native_machine_pool_update_parameters.go new file mode 100644 index 00000000..83a31f11 --- /dev/null +++ b/api/client/v1/v1_aws_cloud_configs_edge_native_machine_pool_update_parameters.go @@ -0,0 +1,178 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package v1 + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" + + "github.com/spectrocloud/palette-sdk-go/api/models" +) + +// NewV1AwsCloudConfigsEdgeNativeMachinePoolUpdateParams creates a new V1AwsCloudConfigsEdgeNativeMachinePoolUpdateParams object +// with the default values initialized. +func NewV1AwsCloudConfigsEdgeNativeMachinePoolUpdateParams() *V1AwsCloudConfigsEdgeNativeMachinePoolUpdateParams { + var () + return &V1AwsCloudConfigsEdgeNativeMachinePoolUpdateParams{ + + timeout: cr.DefaultTimeout, + } +} + +// NewV1AwsCloudConfigsEdgeNativeMachinePoolUpdateParamsWithTimeout creates a new V1AwsCloudConfigsEdgeNativeMachinePoolUpdateParams object +// with the default values initialized, and the ability to set a timeout on a request +func NewV1AwsCloudConfigsEdgeNativeMachinePoolUpdateParamsWithTimeout(timeout time.Duration) *V1AwsCloudConfigsEdgeNativeMachinePoolUpdateParams { + var () + return &V1AwsCloudConfigsEdgeNativeMachinePoolUpdateParams{ + + timeout: timeout, + } +} + +// NewV1AwsCloudConfigsEdgeNativeMachinePoolUpdateParamsWithContext creates a new V1AwsCloudConfigsEdgeNativeMachinePoolUpdateParams object +// with the default values initialized, and the ability to set a context for a request +func NewV1AwsCloudConfigsEdgeNativeMachinePoolUpdateParamsWithContext(ctx context.Context) *V1AwsCloudConfigsEdgeNativeMachinePoolUpdateParams { + var () + return &V1AwsCloudConfigsEdgeNativeMachinePoolUpdateParams{ + + Context: ctx, + } +} + +// NewV1AwsCloudConfigsEdgeNativeMachinePoolUpdateParamsWithHTTPClient creates a new V1AwsCloudConfigsEdgeNativeMachinePoolUpdateParams object +// with the default values initialized, and the ability to set a custom HTTPClient for a request +func NewV1AwsCloudConfigsEdgeNativeMachinePoolUpdateParamsWithHTTPClient(client *http.Client) *V1AwsCloudConfigsEdgeNativeMachinePoolUpdateParams { + var () + return &V1AwsCloudConfigsEdgeNativeMachinePoolUpdateParams{ + HTTPClient: client, + } +} + +/* +V1AwsCloudConfigsEdgeNativeMachinePoolUpdateParams contains all the parameters to send to the API endpoint +for the v1 aws cloud configs edge native machine pool update operation typically these are written to a http.Request +*/ +type V1AwsCloudConfigsEdgeNativeMachinePoolUpdateParams struct { + + /*Body*/ + Body *models.V1HybridEdgeNativeMachinePoolConfigUpdateEntity + /*ConfigUID + AWS Cluster's cloud config uid + + */ + ConfigUID string + /*MachinePoolName + Edge-native machine pool name + + */ + MachinePoolName string + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithTimeout adds the timeout to the v1 aws cloud configs edge native machine pool update params +func (o *V1AwsCloudConfigsEdgeNativeMachinePoolUpdateParams) WithTimeout(timeout time.Duration) *V1AwsCloudConfigsEdgeNativeMachinePoolUpdateParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the v1 aws cloud configs edge native machine pool update params +func (o *V1AwsCloudConfigsEdgeNativeMachinePoolUpdateParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the v1 aws cloud configs edge native machine pool update params +func (o *V1AwsCloudConfigsEdgeNativeMachinePoolUpdateParams) WithContext(ctx context.Context) *V1AwsCloudConfigsEdgeNativeMachinePoolUpdateParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the v1 aws cloud configs edge native machine pool update params +func (o *V1AwsCloudConfigsEdgeNativeMachinePoolUpdateParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the v1 aws cloud configs edge native machine pool update params +func (o *V1AwsCloudConfigsEdgeNativeMachinePoolUpdateParams) WithHTTPClient(client *http.Client) *V1AwsCloudConfigsEdgeNativeMachinePoolUpdateParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the v1 aws cloud configs edge native machine pool update params +func (o *V1AwsCloudConfigsEdgeNativeMachinePoolUpdateParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithBody adds the body to the v1 aws cloud configs edge native machine pool update params +func (o *V1AwsCloudConfigsEdgeNativeMachinePoolUpdateParams) WithBody(body *models.V1HybridEdgeNativeMachinePoolConfigUpdateEntity) *V1AwsCloudConfigsEdgeNativeMachinePoolUpdateParams { + o.SetBody(body) + return o +} + +// SetBody adds the body to the v1 aws cloud configs edge native machine pool update params +func (o *V1AwsCloudConfigsEdgeNativeMachinePoolUpdateParams) SetBody(body *models.V1HybridEdgeNativeMachinePoolConfigUpdateEntity) { + o.Body = body +} + +// WithConfigUID adds the configUID to the v1 aws cloud configs edge native machine pool update params +func (o *V1AwsCloudConfigsEdgeNativeMachinePoolUpdateParams) WithConfigUID(configUID string) *V1AwsCloudConfigsEdgeNativeMachinePoolUpdateParams { + o.SetConfigUID(configUID) + return o +} + +// SetConfigUID adds the configUid to the v1 aws cloud configs edge native machine pool update params +func (o *V1AwsCloudConfigsEdgeNativeMachinePoolUpdateParams) SetConfigUID(configUID string) { + o.ConfigUID = configUID +} + +// WithMachinePoolName adds the machinePoolName to the v1 aws cloud configs edge native machine pool update params +func (o *V1AwsCloudConfigsEdgeNativeMachinePoolUpdateParams) WithMachinePoolName(machinePoolName string) *V1AwsCloudConfigsEdgeNativeMachinePoolUpdateParams { + o.SetMachinePoolName(machinePoolName) + return o +} + +// SetMachinePoolName adds the machinePoolName to the v1 aws cloud configs edge native machine pool update params +func (o *V1AwsCloudConfigsEdgeNativeMachinePoolUpdateParams) SetMachinePoolName(machinePoolName string) { + o.MachinePoolName = machinePoolName +} + +// WriteToRequest writes these params to a swagger request +func (o *V1AwsCloudConfigsEdgeNativeMachinePoolUpdateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + if o.Body != nil { + if err := r.SetBodyParam(o.Body); err != nil { + return err + } + } + + // path param configUid + if err := r.SetPathParam("configUid", o.ConfigUID); err != nil { + return err + } + + // path param machinePoolName + if err := r.SetPathParam("machinePoolName", o.MachinePoolName); err != nil { + return err + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/client/v1/v1_aws_cloud_configs_edge_native_machine_pool_update_responses.go b/api/client/v1/v1_aws_cloud_configs_edge_native_machine_pool_update_responses.go new file mode 100644 index 00000000..fa6be4fd --- /dev/null +++ b/api/client/v1/v1_aws_cloud_configs_edge_native_machine_pool_update_responses.go @@ -0,0 +1,55 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package v1 + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// V1AwsCloudConfigsEdgeNativeMachinePoolUpdateReader is a Reader for the V1AwsCloudConfigsEdgeNativeMachinePoolUpdate structure. +type V1AwsCloudConfigsEdgeNativeMachinePoolUpdateReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *V1AwsCloudConfigsEdgeNativeMachinePoolUpdateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 204: + result := NewV1AwsCloudConfigsEdgeNativeMachinePoolUpdateNoContent() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewV1AwsCloudConfigsEdgeNativeMachinePoolUpdateNoContent creates a V1AwsCloudConfigsEdgeNativeMachinePoolUpdateNoContent with default headers values +func NewV1AwsCloudConfigsEdgeNativeMachinePoolUpdateNoContent() *V1AwsCloudConfigsEdgeNativeMachinePoolUpdateNoContent { + return &V1AwsCloudConfigsEdgeNativeMachinePoolUpdateNoContent{} +} + +/* +V1AwsCloudConfigsEdgeNativeMachinePoolUpdateNoContent handles this case with default header values. + +The resource was updated successfully +*/ +type V1AwsCloudConfigsEdgeNativeMachinePoolUpdateNoContent struct { +} + +func (o *V1AwsCloudConfigsEdgeNativeMachinePoolUpdateNoContent) Error() string { + return fmt.Sprintf("[PUT /v1/cloudconfigs/aws/{configUid}/edge-native/machinePools/{machinePoolName}][%d] v1AwsCloudConfigsEdgeNativeMachinePoolUpdateNoContent ", 204) +} + +func (o *V1AwsCloudConfigsEdgeNativeMachinePoolUpdateNoContent) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} diff --git a/api/client/v1/v1_aws_cloud_configs_edge_native_uid_cluster_config_parameters.go b/api/client/v1/v1_aws_cloud_configs_edge_native_uid_cluster_config_parameters.go new file mode 100644 index 00000000..767e0877 --- /dev/null +++ b/api/client/v1/v1_aws_cloud_configs_edge_native_uid_cluster_config_parameters.go @@ -0,0 +1,178 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package v1 + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" + + "github.com/spectrocloud/palette-sdk-go/api/models" +) + +// NewV1AwsCloudConfigsEdgeNativeUIDClusterConfigParams creates a new V1AwsCloudConfigsEdgeNativeUIDClusterConfigParams object +// with the default values initialized. +func NewV1AwsCloudConfigsEdgeNativeUIDClusterConfigParams() *V1AwsCloudConfigsEdgeNativeUIDClusterConfigParams { + var () + return &V1AwsCloudConfigsEdgeNativeUIDClusterConfigParams{ + + timeout: cr.DefaultTimeout, + } +} + +// NewV1AwsCloudConfigsEdgeNativeUIDClusterConfigParamsWithTimeout creates a new V1AwsCloudConfigsEdgeNativeUIDClusterConfigParams object +// with the default values initialized, and the ability to set a timeout on a request +func NewV1AwsCloudConfigsEdgeNativeUIDClusterConfigParamsWithTimeout(timeout time.Duration) *V1AwsCloudConfigsEdgeNativeUIDClusterConfigParams { + var () + return &V1AwsCloudConfigsEdgeNativeUIDClusterConfigParams{ + + timeout: timeout, + } +} + +// NewV1AwsCloudConfigsEdgeNativeUIDClusterConfigParamsWithContext creates a new V1AwsCloudConfigsEdgeNativeUIDClusterConfigParams object +// with the default values initialized, and the ability to set a context for a request +func NewV1AwsCloudConfigsEdgeNativeUIDClusterConfigParamsWithContext(ctx context.Context) *V1AwsCloudConfigsEdgeNativeUIDClusterConfigParams { + var () + return &V1AwsCloudConfigsEdgeNativeUIDClusterConfigParams{ + + Context: ctx, + } +} + +// NewV1AwsCloudConfigsEdgeNativeUIDClusterConfigParamsWithHTTPClient creates a new V1AwsCloudConfigsEdgeNativeUIDClusterConfigParams object +// with the default values initialized, and the ability to set a custom HTTPClient for a request +func NewV1AwsCloudConfigsEdgeNativeUIDClusterConfigParamsWithHTTPClient(client *http.Client) *V1AwsCloudConfigsEdgeNativeUIDClusterConfigParams { + var () + return &V1AwsCloudConfigsEdgeNativeUIDClusterConfigParams{ + HTTPClient: client, + } +} + +/* +V1AwsCloudConfigsEdgeNativeUIDClusterConfigParams contains all the parameters to send to the API endpoint +for the v1 aws cloud configs edge native Uid cluster config operation typically these are written to a http.Request +*/ +type V1AwsCloudConfigsEdgeNativeUIDClusterConfigParams struct { + + /*Body*/ + Body *models.V1HybridEdgeNativeClusterConfigEntity + /*ConfigUID + Hybrid AWS Cluster's cloud config uid + + */ + ConfigUID string + /*MachinePoolName + Edge-Native machine pool name + + */ + MachinePoolName string + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithTimeout adds the timeout to the v1 aws cloud configs edge native Uid cluster config params +func (o *V1AwsCloudConfigsEdgeNativeUIDClusterConfigParams) WithTimeout(timeout time.Duration) *V1AwsCloudConfigsEdgeNativeUIDClusterConfigParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the v1 aws cloud configs edge native Uid cluster config params +func (o *V1AwsCloudConfigsEdgeNativeUIDClusterConfigParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the v1 aws cloud configs edge native Uid cluster config params +func (o *V1AwsCloudConfigsEdgeNativeUIDClusterConfigParams) WithContext(ctx context.Context) *V1AwsCloudConfigsEdgeNativeUIDClusterConfigParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the v1 aws cloud configs edge native Uid cluster config params +func (o *V1AwsCloudConfigsEdgeNativeUIDClusterConfigParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the v1 aws cloud configs edge native Uid cluster config params +func (o *V1AwsCloudConfigsEdgeNativeUIDClusterConfigParams) WithHTTPClient(client *http.Client) *V1AwsCloudConfigsEdgeNativeUIDClusterConfigParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the v1 aws cloud configs edge native Uid cluster config params +func (o *V1AwsCloudConfigsEdgeNativeUIDClusterConfigParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithBody adds the body to the v1 aws cloud configs edge native Uid cluster config params +func (o *V1AwsCloudConfigsEdgeNativeUIDClusterConfigParams) WithBody(body *models.V1HybridEdgeNativeClusterConfigEntity) *V1AwsCloudConfigsEdgeNativeUIDClusterConfigParams { + o.SetBody(body) + return o +} + +// SetBody adds the body to the v1 aws cloud configs edge native Uid cluster config params +func (o *V1AwsCloudConfigsEdgeNativeUIDClusterConfigParams) SetBody(body *models.V1HybridEdgeNativeClusterConfigEntity) { + o.Body = body +} + +// WithConfigUID adds the configUID to the v1 aws cloud configs edge native Uid cluster config params +func (o *V1AwsCloudConfigsEdgeNativeUIDClusterConfigParams) WithConfigUID(configUID string) *V1AwsCloudConfigsEdgeNativeUIDClusterConfigParams { + o.SetConfigUID(configUID) + return o +} + +// SetConfigUID adds the configUid to the v1 aws cloud configs edge native Uid cluster config params +func (o *V1AwsCloudConfigsEdgeNativeUIDClusterConfigParams) SetConfigUID(configUID string) { + o.ConfigUID = configUID +} + +// WithMachinePoolName adds the machinePoolName to the v1 aws cloud configs edge native Uid cluster config params +func (o *V1AwsCloudConfigsEdgeNativeUIDClusterConfigParams) WithMachinePoolName(machinePoolName string) *V1AwsCloudConfigsEdgeNativeUIDClusterConfigParams { + o.SetMachinePoolName(machinePoolName) + return o +} + +// SetMachinePoolName adds the machinePoolName to the v1 aws cloud configs edge native Uid cluster config params +func (o *V1AwsCloudConfigsEdgeNativeUIDClusterConfigParams) SetMachinePoolName(machinePoolName string) { + o.MachinePoolName = machinePoolName +} + +// WriteToRequest writes these params to a swagger request +func (o *V1AwsCloudConfigsEdgeNativeUIDClusterConfigParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + if o.Body != nil { + if err := r.SetBodyParam(o.Body); err != nil { + return err + } + } + + // path param configUid + if err := r.SetPathParam("configUid", o.ConfigUID); err != nil { + return err + } + + // path param machinePoolName + if err := r.SetPathParam("machinePoolName", o.MachinePoolName); err != nil { + return err + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/client/v1/v1_aws_cloud_configs_edge_native_uid_cluster_config_responses.go b/api/client/v1/v1_aws_cloud_configs_edge_native_uid_cluster_config_responses.go new file mode 100644 index 00000000..719c1181 --- /dev/null +++ b/api/client/v1/v1_aws_cloud_configs_edge_native_uid_cluster_config_responses.go @@ -0,0 +1,55 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package v1 + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// V1AwsCloudConfigsEdgeNativeUIDClusterConfigReader is a Reader for the V1AwsCloudConfigsEdgeNativeUIDClusterConfig structure. +type V1AwsCloudConfigsEdgeNativeUIDClusterConfigReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *V1AwsCloudConfigsEdgeNativeUIDClusterConfigReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 204: + result := NewV1AwsCloudConfigsEdgeNativeUIDClusterConfigNoContent() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewV1AwsCloudConfigsEdgeNativeUIDClusterConfigNoContent creates a V1AwsCloudConfigsEdgeNativeUIDClusterConfigNoContent with default headers values +func NewV1AwsCloudConfigsEdgeNativeUIDClusterConfigNoContent() *V1AwsCloudConfigsEdgeNativeUIDClusterConfigNoContent { + return &V1AwsCloudConfigsEdgeNativeUIDClusterConfigNoContent{} +} + +/* +V1AwsCloudConfigsEdgeNativeUIDClusterConfigNoContent handles this case with default header values. + +The resource was updated successfully +*/ +type V1AwsCloudConfigsEdgeNativeUIDClusterConfigNoContent struct { +} + +func (o *V1AwsCloudConfigsEdgeNativeUIDClusterConfigNoContent) Error() string { + return fmt.Sprintf("[PUT /v1/cloudconfigs/aws/{configUid}/edge-native/machinePools/{machinePoolName}/clusterConfig][%d] v1AwsCloudConfigsEdgeNativeUidClusterConfigNoContent ", 204) +} + +func (o *V1AwsCloudConfigsEdgeNativeUIDClusterConfigNoContent) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} diff --git a/api/client/v1/v1_aws_cloud_configs_edge_native_uid_machine_pool_create_parameters.go b/api/client/v1/v1_aws_cloud_configs_edge_native_uid_machine_pool_create_parameters.go new file mode 100644 index 00000000..89bb61da --- /dev/null +++ b/api/client/v1/v1_aws_cloud_configs_edge_native_uid_machine_pool_create_parameters.go @@ -0,0 +1,157 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package v1 + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" + + "github.com/spectrocloud/palette-sdk-go/api/models" +) + +// NewV1AwsCloudConfigsEdgeNativeUIDMachinePoolCreateParams creates a new V1AwsCloudConfigsEdgeNativeUIDMachinePoolCreateParams object +// with the default values initialized. +func NewV1AwsCloudConfigsEdgeNativeUIDMachinePoolCreateParams() *V1AwsCloudConfigsEdgeNativeUIDMachinePoolCreateParams { + var () + return &V1AwsCloudConfigsEdgeNativeUIDMachinePoolCreateParams{ + + timeout: cr.DefaultTimeout, + } +} + +// NewV1AwsCloudConfigsEdgeNativeUIDMachinePoolCreateParamsWithTimeout creates a new V1AwsCloudConfigsEdgeNativeUIDMachinePoolCreateParams object +// with the default values initialized, and the ability to set a timeout on a request +func NewV1AwsCloudConfigsEdgeNativeUIDMachinePoolCreateParamsWithTimeout(timeout time.Duration) *V1AwsCloudConfigsEdgeNativeUIDMachinePoolCreateParams { + var () + return &V1AwsCloudConfigsEdgeNativeUIDMachinePoolCreateParams{ + + timeout: timeout, + } +} + +// NewV1AwsCloudConfigsEdgeNativeUIDMachinePoolCreateParamsWithContext creates a new V1AwsCloudConfigsEdgeNativeUIDMachinePoolCreateParams object +// with the default values initialized, and the ability to set a context for a request +func NewV1AwsCloudConfigsEdgeNativeUIDMachinePoolCreateParamsWithContext(ctx context.Context) *V1AwsCloudConfigsEdgeNativeUIDMachinePoolCreateParams { + var () + return &V1AwsCloudConfigsEdgeNativeUIDMachinePoolCreateParams{ + + Context: ctx, + } +} + +// NewV1AwsCloudConfigsEdgeNativeUIDMachinePoolCreateParamsWithHTTPClient creates a new V1AwsCloudConfigsEdgeNativeUIDMachinePoolCreateParams object +// with the default values initialized, and the ability to set a custom HTTPClient for a request +func NewV1AwsCloudConfigsEdgeNativeUIDMachinePoolCreateParamsWithHTTPClient(client *http.Client) *V1AwsCloudConfigsEdgeNativeUIDMachinePoolCreateParams { + var () + return &V1AwsCloudConfigsEdgeNativeUIDMachinePoolCreateParams{ + HTTPClient: client, + } +} + +/* +V1AwsCloudConfigsEdgeNativeUIDMachinePoolCreateParams contains all the parameters to send to the API endpoint +for the v1 aws cloud configs edge native Uid machine pool create operation typically these are written to a http.Request +*/ +type V1AwsCloudConfigsEdgeNativeUIDMachinePoolCreateParams struct { + + /*Body*/ + Body *models.V1HybridEdgeNativeMachinePoolConfigEntity + /*ConfigUID + Hybrid AWS cluster's cloud config uid + + */ + ConfigUID string + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithTimeout adds the timeout to the v1 aws cloud configs edge native Uid machine pool create params +func (o *V1AwsCloudConfigsEdgeNativeUIDMachinePoolCreateParams) WithTimeout(timeout time.Duration) *V1AwsCloudConfigsEdgeNativeUIDMachinePoolCreateParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the v1 aws cloud configs edge native Uid machine pool create params +func (o *V1AwsCloudConfigsEdgeNativeUIDMachinePoolCreateParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the v1 aws cloud configs edge native Uid machine pool create params +func (o *V1AwsCloudConfigsEdgeNativeUIDMachinePoolCreateParams) WithContext(ctx context.Context) *V1AwsCloudConfigsEdgeNativeUIDMachinePoolCreateParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the v1 aws cloud configs edge native Uid machine pool create params +func (o *V1AwsCloudConfigsEdgeNativeUIDMachinePoolCreateParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the v1 aws cloud configs edge native Uid machine pool create params +func (o *V1AwsCloudConfigsEdgeNativeUIDMachinePoolCreateParams) WithHTTPClient(client *http.Client) *V1AwsCloudConfigsEdgeNativeUIDMachinePoolCreateParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the v1 aws cloud configs edge native Uid machine pool create params +func (o *V1AwsCloudConfigsEdgeNativeUIDMachinePoolCreateParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithBody adds the body to the v1 aws cloud configs edge native Uid machine pool create params +func (o *V1AwsCloudConfigsEdgeNativeUIDMachinePoolCreateParams) WithBody(body *models.V1HybridEdgeNativeMachinePoolConfigEntity) *V1AwsCloudConfigsEdgeNativeUIDMachinePoolCreateParams { + o.SetBody(body) + return o +} + +// SetBody adds the body to the v1 aws cloud configs edge native Uid machine pool create params +func (o *V1AwsCloudConfigsEdgeNativeUIDMachinePoolCreateParams) SetBody(body *models.V1HybridEdgeNativeMachinePoolConfigEntity) { + o.Body = body +} + +// WithConfigUID adds the configUID to the v1 aws cloud configs edge native Uid machine pool create params +func (o *V1AwsCloudConfigsEdgeNativeUIDMachinePoolCreateParams) WithConfigUID(configUID string) *V1AwsCloudConfigsEdgeNativeUIDMachinePoolCreateParams { + o.SetConfigUID(configUID) + return o +} + +// SetConfigUID adds the configUid to the v1 aws cloud configs edge native Uid machine pool create params +func (o *V1AwsCloudConfigsEdgeNativeUIDMachinePoolCreateParams) SetConfigUID(configUID string) { + o.ConfigUID = configUID +} + +// WriteToRequest writes these params to a swagger request +func (o *V1AwsCloudConfigsEdgeNativeUIDMachinePoolCreateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + if o.Body != nil { + if err := r.SetBodyParam(o.Body); err != nil { + return err + } + } + + // path param configUid + if err := r.SetPathParam("configUid", o.ConfigUID); err != nil { + return err + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/client/v1/v1_aws_cloud_configs_edge_native_uid_machine_pool_create_responses.go b/api/client/v1/v1_aws_cloud_configs_edge_native_uid_machine_pool_create_responses.go new file mode 100644 index 00000000..ef6c68ec --- /dev/null +++ b/api/client/v1/v1_aws_cloud_configs_edge_native_uid_machine_pool_create_responses.go @@ -0,0 +1,77 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package v1 + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + "io" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" + + "github.com/spectrocloud/palette-sdk-go/api/models" +) + +// V1AwsCloudConfigsEdgeNativeUIDMachinePoolCreateReader is a Reader for the V1AwsCloudConfigsEdgeNativeUIDMachinePoolCreate structure. +type V1AwsCloudConfigsEdgeNativeUIDMachinePoolCreateReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *V1AwsCloudConfigsEdgeNativeUIDMachinePoolCreateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 201: + result := NewV1AwsCloudConfigsEdgeNativeUIDMachinePoolCreateCreated() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewV1AwsCloudConfigsEdgeNativeUIDMachinePoolCreateCreated creates a V1AwsCloudConfigsEdgeNativeUIDMachinePoolCreateCreated with default headers values +func NewV1AwsCloudConfigsEdgeNativeUIDMachinePoolCreateCreated() *V1AwsCloudConfigsEdgeNativeUIDMachinePoolCreateCreated { + return &V1AwsCloudConfigsEdgeNativeUIDMachinePoolCreateCreated{} +} + +/* +V1AwsCloudConfigsEdgeNativeUIDMachinePoolCreateCreated handles this case with default header values. + +Created successfully +*/ +type V1AwsCloudConfigsEdgeNativeUIDMachinePoolCreateCreated struct { + /*Audit uid for the request + */ + AuditUID string + + Payload *models.V1UID +} + +func (o *V1AwsCloudConfigsEdgeNativeUIDMachinePoolCreateCreated) Error() string { + return fmt.Sprintf("[POST /v1/cloudconfigs/aws/{configUid}/edge-native/machinePools][%d] v1AwsCloudConfigsEdgeNativeUidMachinePoolCreateCreated %+v", 201, o.Payload) +} + +func (o *V1AwsCloudConfigsEdgeNativeUIDMachinePoolCreateCreated) GetPayload() *models.V1UID { + return o.Payload +} + +func (o *V1AwsCloudConfigsEdgeNativeUIDMachinePoolCreateCreated) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + // response header AuditUid + o.AuditUID = response.GetHeader("AuditUid") + + o.Payload = new(models.V1UID) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/api/client/v1/v1_aws_cloud_configs_uid_hybrid_config_parameters.go b/api/client/v1/v1_aws_cloud_configs_uid_hybrid_config_parameters.go new file mode 100644 index 00000000..e68c4b8e --- /dev/null +++ b/api/client/v1/v1_aws_cloud_configs_uid_hybrid_config_parameters.go @@ -0,0 +1,157 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package v1 + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" + + "github.com/spectrocloud/palette-sdk-go/api/models" +) + +// NewV1AwsCloudConfigsUIDHybridConfigParams creates a new V1AwsCloudConfigsUIDHybridConfigParams object +// with the default values initialized. +func NewV1AwsCloudConfigsUIDHybridConfigParams() *V1AwsCloudConfigsUIDHybridConfigParams { + var () + return &V1AwsCloudConfigsUIDHybridConfigParams{ + + timeout: cr.DefaultTimeout, + } +} + +// NewV1AwsCloudConfigsUIDHybridConfigParamsWithTimeout creates a new V1AwsCloudConfigsUIDHybridConfigParams object +// with the default values initialized, and the ability to set a timeout on a request +func NewV1AwsCloudConfigsUIDHybridConfigParamsWithTimeout(timeout time.Duration) *V1AwsCloudConfigsUIDHybridConfigParams { + var () + return &V1AwsCloudConfigsUIDHybridConfigParams{ + + timeout: timeout, + } +} + +// NewV1AwsCloudConfigsUIDHybridConfigParamsWithContext creates a new V1AwsCloudConfigsUIDHybridConfigParams object +// with the default values initialized, and the ability to set a context for a request +func NewV1AwsCloudConfigsUIDHybridConfigParamsWithContext(ctx context.Context) *V1AwsCloudConfigsUIDHybridConfigParams { + var () + return &V1AwsCloudConfigsUIDHybridConfigParams{ + + Context: ctx, + } +} + +// NewV1AwsCloudConfigsUIDHybridConfigParamsWithHTTPClient creates a new V1AwsCloudConfigsUIDHybridConfigParams object +// with the default values initialized, and the ability to set a custom HTTPClient for a request +func NewV1AwsCloudConfigsUIDHybridConfigParamsWithHTTPClient(client *http.Client) *V1AwsCloudConfigsUIDHybridConfigParams { + var () + return &V1AwsCloudConfigsUIDHybridConfigParams{ + HTTPClient: client, + } +} + +/* +V1AwsCloudConfigsUIDHybridConfigParams contains all the parameters to send to the API endpoint +for the v1 aws cloud configs Uid hybrid config operation typically these are written to a http.Request +*/ +type V1AwsCloudConfigsUIDHybridConfigParams struct { + + /*Body*/ + Body *models.V1AwsCloudHybridConfigEntity + /*ConfigUID + AWS Cluster's Hybrid Configuration + + */ + ConfigUID string + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithTimeout adds the timeout to the v1 aws cloud configs Uid hybrid config params +func (o *V1AwsCloudConfigsUIDHybridConfigParams) WithTimeout(timeout time.Duration) *V1AwsCloudConfigsUIDHybridConfigParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the v1 aws cloud configs Uid hybrid config params +func (o *V1AwsCloudConfigsUIDHybridConfigParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the v1 aws cloud configs Uid hybrid config params +func (o *V1AwsCloudConfigsUIDHybridConfigParams) WithContext(ctx context.Context) *V1AwsCloudConfigsUIDHybridConfigParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the v1 aws cloud configs Uid hybrid config params +func (o *V1AwsCloudConfigsUIDHybridConfigParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the v1 aws cloud configs Uid hybrid config params +func (o *V1AwsCloudConfigsUIDHybridConfigParams) WithHTTPClient(client *http.Client) *V1AwsCloudConfigsUIDHybridConfigParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the v1 aws cloud configs Uid hybrid config params +func (o *V1AwsCloudConfigsUIDHybridConfigParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithBody adds the body to the v1 aws cloud configs Uid hybrid config params +func (o *V1AwsCloudConfigsUIDHybridConfigParams) WithBody(body *models.V1AwsCloudHybridConfigEntity) *V1AwsCloudConfigsUIDHybridConfigParams { + o.SetBody(body) + return o +} + +// SetBody adds the body to the v1 aws cloud configs Uid hybrid config params +func (o *V1AwsCloudConfigsUIDHybridConfigParams) SetBody(body *models.V1AwsCloudHybridConfigEntity) { + o.Body = body +} + +// WithConfigUID adds the configUID to the v1 aws cloud configs Uid hybrid config params +func (o *V1AwsCloudConfigsUIDHybridConfigParams) WithConfigUID(configUID string) *V1AwsCloudConfigsUIDHybridConfigParams { + o.SetConfigUID(configUID) + return o +} + +// SetConfigUID adds the configUid to the v1 aws cloud configs Uid hybrid config params +func (o *V1AwsCloudConfigsUIDHybridConfigParams) SetConfigUID(configUID string) { + o.ConfigUID = configUID +} + +// WriteToRequest writes these params to a swagger request +func (o *V1AwsCloudConfigsUIDHybridConfigParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + if o.Body != nil { + if err := r.SetBodyParam(o.Body); err != nil { + return err + } + } + + // path param configUid + if err := r.SetPathParam("configUid", o.ConfigUID); err != nil { + return err + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/client/v1/v1_aws_cloud_configs_uid_hybrid_config_responses.go b/api/client/v1/v1_aws_cloud_configs_uid_hybrid_config_responses.go new file mode 100644 index 00000000..ab3b1c20 --- /dev/null +++ b/api/client/v1/v1_aws_cloud_configs_uid_hybrid_config_responses.go @@ -0,0 +1,55 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package v1 + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// V1AwsCloudConfigsUIDHybridConfigReader is a Reader for the V1AwsCloudConfigsUIDHybridConfig structure. +type V1AwsCloudConfigsUIDHybridConfigReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *V1AwsCloudConfigsUIDHybridConfigReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 204: + result := NewV1AwsCloudConfigsUIDHybridConfigNoContent() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewV1AwsCloudConfigsUIDHybridConfigNoContent creates a V1AwsCloudConfigsUIDHybridConfigNoContent with default headers values +func NewV1AwsCloudConfigsUIDHybridConfigNoContent() *V1AwsCloudConfigsUIDHybridConfigNoContent { + return &V1AwsCloudConfigsUIDHybridConfigNoContent{} +} + +/* +V1AwsCloudConfigsUIDHybridConfigNoContent handles this case with default header values. + +The resource was updated successfully +*/ +type V1AwsCloudConfigsUIDHybridConfigNoContent struct { +} + +func (o *V1AwsCloudConfigsUIDHybridConfigNoContent) Error() string { + return fmt.Sprintf("[PUT /v1/cloudconfigs/aws/{configUid}/clusterConfig/hybridConfig][%d] v1AwsCloudConfigsUidHybridConfigNoContent ", 204) +} + +func (o *V1AwsCloudConfigsUIDHybridConfigNoContent) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} diff --git a/api/client/v1/v1_client.go b/api/client/v1/v1_client.go index 1c20e683..9dee3a1d 100644 --- a/api/client/v1/v1_client.go +++ b/api/client/v1/v1_client.go @@ -38,6 +38,8 @@ type ClientService interface { V1AwsAccountValidate(params *V1AwsAccountValidateParams) (*V1AwsAccountValidateNoContent, error) + V1AwsCloudConfigsEdgeNativeUIDMachinePoolCreate(params *V1AwsCloudConfigsEdgeNativeUIDMachinePoolCreateParams) (*V1AwsCloudConfigsEdgeNativeUIDMachinePoolCreateCreated, error) + V1AwsClusterNameValidate(params *V1AwsClusterNameValidateParams) (*V1AwsClusterNameValidateNoContent, error) V1AwsCopyImageFromDefaultRegion(params *V1AwsCopyImageFromDefaultRegionParams) (*V1AwsCopyImageFromDefaultRegionOK, error) @@ -476,6 +478,16 @@ type ClientService interface { V1Authenticate(params *V1AuthenticateParams) (*V1AuthenticateOK, error) + V1AwsCloudConfigsEdgeNativeMachinePoolDelete(params *V1AwsCloudConfigsEdgeNativeMachinePoolDeleteParams) (*V1AwsCloudConfigsEdgeNativeMachinePoolDeleteNoContent, error) + + V1AwsCloudConfigsEdgeNativeMachinePoolGet(params *V1AwsCloudConfigsEdgeNativeMachinePoolGetParams) (*V1AwsCloudConfigsEdgeNativeMachinePoolGetOK, error) + + V1AwsCloudConfigsEdgeNativeMachinePoolUpdate(params *V1AwsCloudConfigsEdgeNativeMachinePoolUpdateParams) (*V1AwsCloudConfigsEdgeNativeMachinePoolUpdateNoContent, error) + + V1AwsCloudConfigsEdgeNativeUIDClusterConfig(params *V1AwsCloudConfigsEdgeNativeUIDClusterConfigParams) (*V1AwsCloudConfigsEdgeNativeUIDClusterConfigNoContent, error) + + V1AwsCloudConfigsUIDHybridConfig(params *V1AwsCloudConfigsUIDHybridConfigParams) (*V1AwsCloudConfigsUIDHybridConfigNoContent, error) + V1AwsCloudCost(params *V1AwsCloudCostParams) (*V1AwsCloudCostOK, error) V1BasicOciRegistriesCreate(params *V1BasicOciRegistriesCreateParams) (*V1BasicOciRegistriesCreateCreated, error) @@ -1288,8 +1300,6 @@ type ClientService interface { V1PacksSearch(params *V1PacksSearchParams) (*V1PacksSearchOK, error) - V1PacksSummaryDelete(params *V1PacksSummaryDeleteParams) (*V1PacksSummaryDeleteOK, error) - V1PacksSummaryList(params *V1PacksSummaryListParams) (*V1PacksSummaryListOK, error) V1PacksUID(params *V1PacksUIDParams) (*V1PacksUIDOK, error) @@ -1500,6 +1510,8 @@ type ClientService interface { V1SpectroClustersK8Certificate(params *V1SpectroClustersK8CertificateParams) (*V1SpectroClustersK8CertificateOK, error) + V1SpectroClustersK8CertificateUpdate(params *V1SpectroClustersK8CertificateUpdateParams) (*V1SpectroClustersK8CertificateUpdateNoContent, error) + V1SpectroClustersMaasCreate(params *V1SpectroClustersMaasCreateParams) (*V1SpectroClustersMaasCreateCreated, error) V1SpectroClustersMaasImport(params *V1SpectroClustersMaasImportParams) (*V1SpectroClustersMaasImportCreated, error) @@ -1588,6 +1600,10 @@ type ClientService interface { V1SpectroClustersUIDFrpKubeConfigUpdate(params *V1SpectroClustersUIDFrpKubeConfigUpdateParams) (*V1SpectroClustersUIDFrpKubeConfigUpdateNoContent, error) + V1SpectroClustersUIDHeartbeatUpdate(params *V1SpectroClustersUIDHeartbeatUpdateParams) (*V1SpectroClustersUIDHeartbeatUpdateNoContent, error) + + V1SpectroClustersUIDHybridSettings(params *V1SpectroClustersUIDHybridSettingsParams) (*V1SpectroClustersUIDHybridSettingsNoContent, error) + V1SpectroClustersUIDImportManifest(params *V1SpectroClustersUIDImportManifestParams, writer io.Writer) (*V1SpectroClustersUIDImportManifestOK, error) V1SpectroClustersUIDImportUpgradePatch(params *V1SpectroClustersUIDImportUpgradePatchParams) (*V1SpectroClustersUIDImportUpgradePatchNoContent, error) @@ -1640,6 +1656,12 @@ type ClientService interface { V1SpectroClustersUIDStatusSpcPatchTime(params *V1SpectroClustersUIDStatusSpcPatchTimeParams) (*V1SpectroClustersUIDStatusSpcPatchTimeNoContent, error) + V1SpectroClustersUIDTokenKubeConfigDelete(params *V1SpectroClustersUIDTokenKubeConfigDeleteParams) (*V1SpectroClustersUIDTokenKubeConfigDeleteNoContent, error) + + V1SpectroClustersUIDTokenKubeConfigGet(params *V1SpectroClustersUIDTokenKubeConfigGetParams, writer io.Writer) (*V1SpectroClustersUIDTokenKubeConfigGetOK, error) + + V1SpectroClustersUIDTokenKubeConfigUpdate(params *V1SpectroClustersUIDTokenKubeConfigUpdateParams) (*V1SpectroClustersUIDTokenKubeConfigUpdateNoContent, error) + V1SpectroClustersUIDUpgradeSettings(params *V1SpectroClustersUIDUpgradeSettingsParams) (*V1SpectroClustersUIDUpgradeSettingsNoContent, error) V1SpectroClustersUIDUpgradesPut(params *V1SpectroClustersUIDUpgradesPutParams) (*V1SpectroClustersUIDUpgradesPutNoContent, error) @@ -2135,6 +2157,40 @@ func (a *Client) V1AwsAccountValidate(params *V1AwsAccountValidateParams) (*V1Aw panic(msg) } +/* +V1AwsCloudConfigsEdgeNativeUIDMachinePoolCreate creates an hybrid a w s cloud config s edge native machine pool +*/ +func (a *Client) V1AwsCloudConfigsEdgeNativeUIDMachinePoolCreate(params *V1AwsCloudConfigsEdgeNativeUIDMachinePoolCreateParams) (*V1AwsCloudConfigsEdgeNativeUIDMachinePoolCreateCreated, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewV1AwsCloudConfigsEdgeNativeUIDMachinePoolCreateParams() + } + + result, err := a.transport.Submit(&runtime.ClientOperation{ + ID: "V1AwsCloudConfigsEdgeNativeUidMachinePoolCreate", + Method: "POST", + PathPattern: "/v1/cloudconfigs/aws/{configUid}/edge-native/machinePools", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http", "https"}, + Params: params, + Reader: &V1AwsCloudConfigsEdgeNativeUIDMachinePoolCreateReader{formats: a.formats}, + Context: params.Context, + Client: params.HTTPClient, + }) + if err != nil { + return nil, err + } + success, ok := result.(*V1AwsCloudConfigsEdgeNativeUIDMachinePoolCreateCreated) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for V1AwsCloudConfigsEdgeNativeUidMachinePoolCreate: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + /* V1AwsClusterNameValidate checks if aws cluster name is valid @@ -9639,6 +9695,176 @@ func (a *Client) V1Authenticate(params *V1AuthenticateParams) (*V1AuthenticateOK panic(msg) } +/* +V1AwsCloudConfigsEdgeNativeMachinePoolDelete deletes the specified edge native machine pool of hybrid a w s cluster +*/ +func (a *Client) V1AwsCloudConfigsEdgeNativeMachinePoolDelete(params *V1AwsCloudConfigsEdgeNativeMachinePoolDeleteParams) (*V1AwsCloudConfigsEdgeNativeMachinePoolDeleteNoContent, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewV1AwsCloudConfigsEdgeNativeMachinePoolDeleteParams() + } + + result, err := a.transport.Submit(&runtime.ClientOperation{ + ID: "v1AwsCloudConfigsEdgeNativeMachinePoolDelete", + Method: "DELETE", + PathPattern: "/v1/cloudconfigs/aws/{configUid}/edge-native/machinePools/{machinePoolName}", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http", "https"}, + Params: params, + Reader: &V1AwsCloudConfigsEdgeNativeMachinePoolDeleteReader{formats: a.formats}, + Context: params.Context, + Client: params.HTTPClient, + }) + if err != nil { + return nil, err + } + success, ok := result.(*V1AwsCloudConfigsEdgeNativeMachinePoolDeleteNoContent) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for v1AwsCloudConfigsEdgeNativeMachinePoolDelete: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +V1AwsCloudConfigsEdgeNativeMachinePoolGet returns the specified a w s cluster s edge native machine pool configuration +*/ +func (a *Client) V1AwsCloudConfigsEdgeNativeMachinePoolGet(params *V1AwsCloudConfigsEdgeNativeMachinePoolGetParams) (*V1AwsCloudConfigsEdgeNativeMachinePoolGetOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewV1AwsCloudConfigsEdgeNativeMachinePoolGetParams() + } + + result, err := a.transport.Submit(&runtime.ClientOperation{ + ID: "v1AwsCloudConfigsEdgeNativeMachinePoolGet", + Method: "GET", + PathPattern: "/v1/cloudconfigs/aws/{configUid}/edge-native/machinePools/{machinePoolName}", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http", "https"}, + Params: params, + Reader: &V1AwsCloudConfigsEdgeNativeMachinePoolGetReader{formats: a.formats}, + Context: params.Context, + Client: params.HTTPClient, + }) + if err != nil { + return nil, err + } + success, ok := result.(*V1AwsCloudConfigsEdgeNativeMachinePoolGetOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for v1AwsCloudConfigsEdgeNativeMachinePoolGet: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +V1AwsCloudConfigsEdgeNativeMachinePoolUpdate updates the specified hybrid a w s cluster cloud config s edge native machine pool +*/ +func (a *Client) V1AwsCloudConfigsEdgeNativeMachinePoolUpdate(params *V1AwsCloudConfigsEdgeNativeMachinePoolUpdateParams) (*V1AwsCloudConfigsEdgeNativeMachinePoolUpdateNoContent, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewV1AwsCloudConfigsEdgeNativeMachinePoolUpdateParams() + } + + result, err := a.transport.Submit(&runtime.ClientOperation{ + ID: "v1AwsCloudConfigsEdgeNativeMachinePoolUpdate", + Method: "PUT", + PathPattern: "/v1/cloudconfigs/aws/{configUid}/edge-native/machinePools/{machinePoolName}", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http", "https"}, + Params: params, + Reader: &V1AwsCloudConfigsEdgeNativeMachinePoolUpdateReader{formats: a.formats}, + Context: params.Context, + Client: params.HTTPClient, + }) + if err != nil { + return nil, err + } + success, ok := result.(*V1AwsCloudConfigsEdgeNativeMachinePoolUpdateNoContent) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for v1AwsCloudConfigsEdgeNativeMachinePoolUpdate: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +V1AwsCloudConfigsEdgeNativeUIDClusterConfig updates the cluster configuration information of edge native cluster deployed through hybrid a w s cluster +*/ +func (a *Client) V1AwsCloudConfigsEdgeNativeUIDClusterConfig(params *V1AwsCloudConfigsEdgeNativeUIDClusterConfigParams) (*V1AwsCloudConfigsEdgeNativeUIDClusterConfigNoContent, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewV1AwsCloudConfigsEdgeNativeUIDClusterConfigParams() + } + + result, err := a.transport.Submit(&runtime.ClientOperation{ + ID: "v1AwsCloudConfigsEdgeNativeUidClusterConfig", + Method: "PUT", + PathPattern: "/v1/cloudconfigs/aws/{configUid}/edge-native/machinePools/{machinePoolName}/clusterConfig", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http", "https"}, + Params: params, + Reader: &V1AwsCloudConfigsEdgeNativeUIDClusterConfigReader{formats: a.formats}, + Context: params.Context, + Client: params.HTTPClient, + }) + if err != nil { + return nil, err + } + success, ok := result.(*V1AwsCloudConfigsEdgeNativeUIDClusterConfigNoContent) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for v1AwsCloudConfigsEdgeNativeUidClusterConfig: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +V1AwsCloudConfigsUIDHybridConfig updates the hybrid configuration information of a w s cluster +*/ +func (a *Client) V1AwsCloudConfigsUIDHybridConfig(params *V1AwsCloudConfigsUIDHybridConfigParams) (*V1AwsCloudConfigsUIDHybridConfigNoContent, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewV1AwsCloudConfigsUIDHybridConfigParams() + } + + result, err := a.transport.Submit(&runtime.ClientOperation{ + ID: "v1AwsCloudConfigsUidHybridConfig", + Method: "PUT", + PathPattern: "/v1/cloudconfigs/aws/{configUid}/clusterConfig/hybridConfig", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http", "https"}, + Params: params, + Reader: &V1AwsCloudConfigsUIDHybridConfigReader{formats: a.formats}, + Context: params.Context, + Client: params.HTTPClient, + }) + if err != nil { + return nil, err + } + success, ok := result.(*V1AwsCloudConfigsUIDHybridConfigNoContent) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for v1AwsCloudConfigsUidHybridConfig: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + /* V1AwsCloudCost retrieves a w s cloud account usage cost from cost explorer */ @@ -23487,40 +23713,6 @@ func (a *Client) V1PacksSearch(params *V1PacksSearchParams) (*V1PacksSearchOK, e panic(msg) } -/* -V1PacksSummaryDelete deletes the packs -*/ -func (a *Client) V1PacksSummaryDelete(params *V1PacksSummaryDeleteParams) (*V1PacksSummaryDeleteOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewV1PacksSummaryDeleteParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "v1PacksSummaryDelete", - Method: "DELETE", - PathPattern: "/v1/packs", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http", "https"}, - Params: params, - Reader: &V1PacksSummaryDeleteReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*V1PacksSummaryDeleteOK) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for v1PacksSummaryDelete: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - /* V1PacksSummaryList retrieves a list of packs */ @@ -27107,6 +27299,40 @@ func (a *Client) V1SpectroClustersK8Certificate(params *V1SpectroClustersK8Certi panic(msg) } +/* +V1SpectroClustersK8CertificateUpdate updates k8 certificate for spectro cluster +*/ +func (a *Client) V1SpectroClustersK8CertificateUpdate(params *V1SpectroClustersK8CertificateUpdateParams) (*V1SpectroClustersK8CertificateUpdateNoContent, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewV1SpectroClustersK8CertificateUpdateParams() + } + + result, err := a.transport.Submit(&runtime.ClientOperation{ + ID: "v1SpectroClustersK8CertificateUpdate", + Method: "PUT", + PathPattern: "/v1/spectroclusters/{uid}/k8certificates", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http", "https"}, + Params: params, + Reader: &V1SpectroClustersK8CertificateUpdateReader{formats: a.formats}, + Context: params.Context, + Client: params.HTTPClient, + }) + if err != nil { + return nil, err + } + success, ok := result.(*V1SpectroClustersK8CertificateUpdateNoContent) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for v1SpectroClustersK8CertificateUpdate: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + /* V1SpectroClustersMaasCreate creates a m a a s cluster */ @@ -28603,6 +28829,74 @@ func (a *Client) V1SpectroClustersUIDFrpKubeConfigUpdate(params *V1SpectroCluste panic(msg) } +/* +V1SpectroClustersUIDHeartbeatUpdate updates specific cluster heartbeat +*/ +func (a *Client) V1SpectroClustersUIDHeartbeatUpdate(params *V1SpectroClustersUIDHeartbeatUpdateParams) (*V1SpectroClustersUIDHeartbeatUpdateNoContent, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewV1SpectroClustersUIDHeartbeatUpdateParams() + } + + result, err := a.transport.Submit(&runtime.ClientOperation{ + ID: "v1SpectroClustersUidHeartbeatUpdate", + Method: "PUT", + PathPattern: "/v1/spectroclusters/{uid}/heartbeat", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http", "https"}, + Params: params, + Reader: &V1SpectroClustersUIDHeartbeatUpdateReader{formats: a.formats}, + Context: params.Context, + Client: params.HTTPClient, + }) + if err != nil { + return nil, err + } + success, ok := result.(*V1SpectroClustersUIDHeartbeatUpdateNoContent) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for v1SpectroClustersUidHeartbeatUpdate: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +V1SpectroClustersUIDHybridSettings updates specific cluster hybrid settings +*/ +func (a *Client) V1SpectroClustersUIDHybridSettings(params *V1SpectroClustersUIDHybridSettingsParams) (*V1SpectroClustersUIDHybridSettingsNoContent, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewV1SpectroClustersUIDHybridSettingsParams() + } + + result, err := a.transport.Submit(&runtime.ClientOperation{ + ID: "v1SpectroClustersUidHybridSettings", + Method: "PATCH", + PathPattern: "/v1/spectroclusters/{uid}/hybridSettings", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http", "https"}, + Params: params, + Reader: &V1SpectroClustersUIDHybridSettingsReader{formats: a.formats}, + Context: params.Context, + Client: params.HTTPClient, + }) + if err != nil { + return nil, err + } + success, ok := result.(*V1SpectroClustersUIDHybridSettingsNoContent) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for v1SpectroClustersUidHybridSettings: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + /* V1SpectroClustersUIDImportManifest returns the specified cluster s import manifest file */ @@ -29487,6 +29781,108 @@ func (a *Client) V1SpectroClustersUIDStatusSpcPatchTime(params *V1SpectroCluster panic(msg) } +/* +V1SpectroClustersUIDTokenKubeConfigDelete deletes the cluster s token kube config data +*/ +func (a *Client) V1SpectroClustersUIDTokenKubeConfigDelete(params *V1SpectroClustersUIDTokenKubeConfigDeleteParams) (*V1SpectroClustersUIDTokenKubeConfigDeleteNoContent, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewV1SpectroClustersUIDTokenKubeConfigDeleteParams() + } + + result, err := a.transport.Submit(&runtime.ClientOperation{ + ID: "v1SpectroClustersUidTokenKubeConfigDelete", + Method: "DELETE", + PathPattern: "/v1/spectroclusters/{uid}/assets/adminTokenKubeconfig", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http", "https"}, + Params: params, + Reader: &V1SpectroClustersUIDTokenKubeConfigDeleteReader{formats: a.formats}, + Context: params.Context, + Client: params.HTTPClient, + }) + if err != nil { + return nil, err + } + success, ok := result.(*V1SpectroClustersUIDTokenKubeConfigDeleteNoContent) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for v1SpectroClustersUidTokenKubeConfigDelete: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +V1SpectroClustersUIDTokenKubeConfigGet returns the specified cluster s token kube config file +*/ +func (a *Client) V1SpectroClustersUIDTokenKubeConfigGet(params *V1SpectroClustersUIDTokenKubeConfigGetParams, writer io.Writer) (*V1SpectroClustersUIDTokenKubeConfigGetOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewV1SpectroClustersUIDTokenKubeConfigGetParams() + } + + result, err := a.transport.Submit(&runtime.ClientOperation{ + ID: "v1SpectroClustersUidTokenKubeConfigGet", + Method: "GET", + PathPattern: "/v1/spectroclusters/{uid}/assets/adminTokenKubeconfig", + ProducesMediaTypes: []string{"application/octet-stream"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http", "https"}, + Params: params, + Reader: &V1SpectroClustersUIDTokenKubeConfigGetReader{formats: a.formats, writer: writer}, + Context: params.Context, + Client: params.HTTPClient, + }) + if err != nil { + return nil, err + } + success, ok := result.(*V1SpectroClustersUIDTokenKubeConfigGetOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for v1SpectroClustersUidTokenKubeConfigGet: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +V1SpectroClustersUIDTokenKubeConfigUpdate updates the cluster s token kube config data +*/ +func (a *Client) V1SpectroClustersUIDTokenKubeConfigUpdate(params *V1SpectroClustersUIDTokenKubeConfigUpdateParams) (*V1SpectroClustersUIDTokenKubeConfigUpdateNoContent, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewV1SpectroClustersUIDTokenKubeConfigUpdateParams() + } + + result, err := a.transport.Submit(&runtime.ClientOperation{ + ID: "v1SpectroClustersUidTokenKubeConfigUpdate", + Method: "PUT", + PathPattern: "/v1/spectroclusters/{uid}/assets/adminTokenKubeconfig", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http", "https"}, + Params: params, + Reader: &V1SpectroClustersUIDTokenKubeConfigUpdateReader{formats: a.formats}, + Context: params.Context, + Client: params.HTTPClient, + }) + if err != nil { + return nil, err + } + success, ok := result.(*V1SpectroClustersUIDTokenKubeConfigUpdateNoContent) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for v1SpectroClustersUidTokenKubeConfigUpdate: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + /* V1SpectroClustersUIDUpgradeSettings updates specific cluster upgrade settings */ diff --git a/api/client/v1/v1_spectro_clusters_k8_certificate_update_parameters.go b/api/client/v1/v1_spectro_clusters_k8_certificate_update_parameters.go new file mode 100644 index 00000000..a1fa835c --- /dev/null +++ b/api/client/v1/v1_spectro_clusters_k8_certificate_update_parameters.go @@ -0,0 +1,157 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package v1 + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" + + "github.com/spectrocloud/palette-sdk-go/api/models" +) + +// NewV1SpectroClustersK8CertificateUpdateParams creates a new V1SpectroClustersK8CertificateUpdateParams object +// with the default values initialized. +func NewV1SpectroClustersK8CertificateUpdateParams() *V1SpectroClustersK8CertificateUpdateParams { + var () + return &V1SpectroClustersK8CertificateUpdateParams{ + + timeout: cr.DefaultTimeout, + } +} + +// NewV1SpectroClustersK8CertificateUpdateParamsWithTimeout creates a new V1SpectroClustersK8CertificateUpdateParams object +// with the default values initialized, and the ability to set a timeout on a request +func NewV1SpectroClustersK8CertificateUpdateParamsWithTimeout(timeout time.Duration) *V1SpectroClustersK8CertificateUpdateParams { + var () + return &V1SpectroClustersK8CertificateUpdateParams{ + + timeout: timeout, + } +} + +// NewV1SpectroClustersK8CertificateUpdateParamsWithContext creates a new V1SpectroClustersK8CertificateUpdateParams object +// with the default values initialized, and the ability to set a context for a request +func NewV1SpectroClustersK8CertificateUpdateParamsWithContext(ctx context.Context) *V1SpectroClustersK8CertificateUpdateParams { + var () + return &V1SpectroClustersK8CertificateUpdateParams{ + + Context: ctx, + } +} + +// NewV1SpectroClustersK8CertificateUpdateParamsWithHTTPClient creates a new V1SpectroClustersK8CertificateUpdateParams object +// with the default values initialized, and the ability to set a custom HTTPClient for a request +func NewV1SpectroClustersK8CertificateUpdateParamsWithHTTPClient(client *http.Client) *V1SpectroClustersK8CertificateUpdateParams { + var () + return &V1SpectroClustersK8CertificateUpdateParams{ + HTTPClient: client, + } +} + +/* +V1SpectroClustersK8CertificateUpdateParams contains all the parameters to send to the API endpoint +for the v1 spectro clusters k8 certificate update operation typically these are written to a http.Request +*/ +type V1SpectroClustersK8CertificateUpdateParams struct { + + /*Body*/ + Body *models.V1SpectroClusterK8sCertificate + /*UID + Cluster uid + + */ + UID string + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithTimeout adds the timeout to the v1 spectro clusters k8 certificate update params +func (o *V1SpectroClustersK8CertificateUpdateParams) WithTimeout(timeout time.Duration) *V1SpectroClustersK8CertificateUpdateParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the v1 spectro clusters k8 certificate update params +func (o *V1SpectroClustersK8CertificateUpdateParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the v1 spectro clusters k8 certificate update params +func (o *V1SpectroClustersK8CertificateUpdateParams) WithContext(ctx context.Context) *V1SpectroClustersK8CertificateUpdateParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the v1 spectro clusters k8 certificate update params +func (o *V1SpectroClustersK8CertificateUpdateParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the v1 spectro clusters k8 certificate update params +func (o *V1SpectroClustersK8CertificateUpdateParams) WithHTTPClient(client *http.Client) *V1SpectroClustersK8CertificateUpdateParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the v1 spectro clusters k8 certificate update params +func (o *V1SpectroClustersK8CertificateUpdateParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithBody adds the body to the v1 spectro clusters k8 certificate update params +func (o *V1SpectroClustersK8CertificateUpdateParams) WithBody(body *models.V1SpectroClusterK8sCertificate) *V1SpectroClustersK8CertificateUpdateParams { + o.SetBody(body) + return o +} + +// SetBody adds the body to the v1 spectro clusters k8 certificate update params +func (o *V1SpectroClustersK8CertificateUpdateParams) SetBody(body *models.V1SpectroClusterK8sCertificate) { + o.Body = body +} + +// WithUID adds the uid to the v1 spectro clusters k8 certificate update params +func (o *V1SpectroClustersK8CertificateUpdateParams) WithUID(uid string) *V1SpectroClustersK8CertificateUpdateParams { + o.SetUID(uid) + return o +} + +// SetUID adds the uid to the v1 spectro clusters k8 certificate update params +func (o *V1SpectroClustersK8CertificateUpdateParams) SetUID(uid string) { + o.UID = uid +} + +// WriteToRequest writes these params to a swagger request +func (o *V1SpectroClustersK8CertificateUpdateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + if o.Body != nil { + if err := r.SetBodyParam(o.Body); err != nil { + return err + } + } + + // path param uid + if err := r.SetPathParam("uid", o.UID); err != nil { + return err + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/client/v1/v1_spectro_clusters_k8_certificate_update_responses.go b/api/client/v1/v1_spectro_clusters_k8_certificate_update_responses.go new file mode 100644 index 00000000..04905c30 --- /dev/null +++ b/api/client/v1/v1_spectro_clusters_k8_certificate_update_responses.go @@ -0,0 +1,55 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package v1 + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// V1SpectroClustersK8CertificateUpdateReader is a Reader for the V1SpectroClustersK8CertificateUpdate structure. +type V1SpectroClustersK8CertificateUpdateReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *V1SpectroClustersK8CertificateUpdateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 204: + result := NewV1SpectroClustersK8CertificateUpdateNoContent() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewV1SpectroClustersK8CertificateUpdateNoContent creates a V1SpectroClustersK8CertificateUpdateNoContent with default headers values +func NewV1SpectroClustersK8CertificateUpdateNoContent() *V1SpectroClustersK8CertificateUpdateNoContent { + return &V1SpectroClustersK8CertificateUpdateNoContent{} +} + +/* +V1SpectroClustersK8CertificateUpdateNoContent handles this case with default header values. + +The resource was updated successfully +*/ +type V1SpectroClustersK8CertificateUpdateNoContent struct { +} + +func (o *V1SpectroClustersK8CertificateUpdateNoContent) Error() string { + return fmt.Sprintf("[PUT /v1/spectroclusters/{uid}/k8certificates][%d] v1SpectroClustersK8CertificateUpdateNoContent ", 204) +} + +func (o *V1SpectroClustersK8CertificateUpdateNoContent) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} diff --git a/api/client/v1/v1_spectro_clusters_uid_heartbeat_update_parameters.go b/api/client/v1/v1_spectro_clusters_uid_heartbeat_update_parameters.go new file mode 100644 index 00000000..c4fdfe80 --- /dev/null +++ b/api/client/v1/v1_spectro_clusters_uid_heartbeat_update_parameters.go @@ -0,0 +1,157 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package v1 + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" + + "github.com/spectrocloud/palette-sdk-go/api/models" +) + +// NewV1SpectroClustersUIDHeartbeatUpdateParams creates a new V1SpectroClustersUIDHeartbeatUpdateParams object +// with the default values initialized. +func NewV1SpectroClustersUIDHeartbeatUpdateParams() *V1SpectroClustersUIDHeartbeatUpdateParams { + var () + return &V1SpectroClustersUIDHeartbeatUpdateParams{ + + timeout: cr.DefaultTimeout, + } +} + +// NewV1SpectroClustersUIDHeartbeatUpdateParamsWithTimeout creates a new V1SpectroClustersUIDHeartbeatUpdateParams object +// with the default values initialized, and the ability to set a timeout on a request +func NewV1SpectroClustersUIDHeartbeatUpdateParamsWithTimeout(timeout time.Duration) *V1SpectroClustersUIDHeartbeatUpdateParams { + var () + return &V1SpectroClustersUIDHeartbeatUpdateParams{ + + timeout: timeout, + } +} + +// NewV1SpectroClustersUIDHeartbeatUpdateParamsWithContext creates a new V1SpectroClustersUIDHeartbeatUpdateParams object +// with the default values initialized, and the ability to set a context for a request +func NewV1SpectroClustersUIDHeartbeatUpdateParamsWithContext(ctx context.Context) *V1SpectroClustersUIDHeartbeatUpdateParams { + var () + return &V1SpectroClustersUIDHeartbeatUpdateParams{ + + Context: ctx, + } +} + +// NewV1SpectroClustersUIDHeartbeatUpdateParamsWithHTTPClient creates a new V1SpectroClustersUIDHeartbeatUpdateParams object +// with the default values initialized, and the ability to set a custom HTTPClient for a request +func NewV1SpectroClustersUIDHeartbeatUpdateParamsWithHTTPClient(client *http.Client) *V1SpectroClustersUIDHeartbeatUpdateParams { + var () + return &V1SpectroClustersUIDHeartbeatUpdateParams{ + HTTPClient: client, + } +} + +/* +V1SpectroClustersUIDHeartbeatUpdateParams contains all the parameters to send to the API endpoint +for the v1 spectro clusters Uid heartbeat update operation typically these are written to a http.Request +*/ +type V1SpectroClustersUIDHeartbeatUpdateParams struct { + + /*Body*/ + Body *models.V1SpectroClusterHeartbeat + /*UID + Cluster uid + + */ + UID string + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithTimeout adds the timeout to the v1 spectro clusters Uid heartbeat update params +func (o *V1SpectroClustersUIDHeartbeatUpdateParams) WithTimeout(timeout time.Duration) *V1SpectroClustersUIDHeartbeatUpdateParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the v1 spectro clusters Uid heartbeat update params +func (o *V1SpectroClustersUIDHeartbeatUpdateParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the v1 spectro clusters Uid heartbeat update params +func (o *V1SpectroClustersUIDHeartbeatUpdateParams) WithContext(ctx context.Context) *V1SpectroClustersUIDHeartbeatUpdateParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the v1 spectro clusters Uid heartbeat update params +func (o *V1SpectroClustersUIDHeartbeatUpdateParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the v1 spectro clusters Uid heartbeat update params +func (o *V1SpectroClustersUIDHeartbeatUpdateParams) WithHTTPClient(client *http.Client) *V1SpectroClustersUIDHeartbeatUpdateParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the v1 spectro clusters Uid heartbeat update params +func (o *V1SpectroClustersUIDHeartbeatUpdateParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithBody adds the body to the v1 spectro clusters Uid heartbeat update params +func (o *V1SpectroClustersUIDHeartbeatUpdateParams) WithBody(body *models.V1SpectroClusterHeartbeat) *V1SpectroClustersUIDHeartbeatUpdateParams { + o.SetBody(body) + return o +} + +// SetBody adds the body to the v1 spectro clusters Uid heartbeat update params +func (o *V1SpectroClustersUIDHeartbeatUpdateParams) SetBody(body *models.V1SpectroClusterHeartbeat) { + o.Body = body +} + +// WithUID adds the uid to the v1 spectro clusters Uid heartbeat update params +func (o *V1SpectroClustersUIDHeartbeatUpdateParams) WithUID(uid string) *V1SpectroClustersUIDHeartbeatUpdateParams { + o.SetUID(uid) + return o +} + +// SetUID adds the uid to the v1 spectro clusters Uid heartbeat update params +func (o *V1SpectroClustersUIDHeartbeatUpdateParams) SetUID(uid string) { + o.UID = uid +} + +// WriteToRequest writes these params to a swagger request +func (o *V1SpectroClustersUIDHeartbeatUpdateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + if o.Body != nil { + if err := r.SetBodyParam(o.Body); err != nil { + return err + } + } + + // path param uid + if err := r.SetPathParam("uid", o.UID); err != nil { + return err + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/client/v1/v1_spectro_clusters_uid_heartbeat_update_responses.go b/api/client/v1/v1_spectro_clusters_uid_heartbeat_update_responses.go new file mode 100644 index 00000000..22b1da09 --- /dev/null +++ b/api/client/v1/v1_spectro_clusters_uid_heartbeat_update_responses.go @@ -0,0 +1,55 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package v1 + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// V1SpectroClustersUIDHeartbeatUpdateReader is a Reader for the V1SpectroClustersUIDHeartbeatUpdate structure. +type V1SpectroClustersUIDHeartbeatUpdateReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *V1SpectroClustersUIDHeartbeatUpdateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 204: + result := NewV1SpectroClustersUIDHeartbeatUpdateNoContent() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewV1SpectroClustersUIDHeartbeatUpdateNoContent creates a V1SpectroClustersUIDHeartbeatUpdateNoContent with default headers values +func NewV1SpectroClustersUIDHeartbeatUpdateNoContent() *V1SpectroClustersUIDHeartbeatUpdateNoContent { + return &V1SpectroClustersUIDHeartbeatUpdateNoContent{} +} + +/* +V1SpectroClustersUIDHeartbeatUpdateNoContent handles this case with default header values. + +The resource was updated successfully +*/ +type V1SpectroClustersUIDHeartbeatUpdateNoContent struct { +} + +func (o *V1SpectroClustersUIDHeartbeatUpdateNoContent) Error() string { + return fmt.Sprintf("[PUT /v1/spectroclusters/{uid}/heartbeat][%d] v1SpectroClustersUidHeartbeatUpdateNoContent ", 204) +} + +func (o *V1SpectroClustersUIDHeartbeatUpdateNoContent) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} diff --git a/api/client/v1/v1_spectro_clusters_uid_hybrid_settings_parameters.go b/api/client/v1/v1_spectro_clusters_uid_hybrid_settings_parameters.go new file mode 100644 index 00000000..f5dffde0 --- /dev/null +++ b/api/client/v1/v1_spectro_clusters_uid_hybrid_settings_parameters.go @@ -0,0 +1,157 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package v1 + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" + + "github.com/spectrocloud/palette-sdk-go/api/models" +) + +// NewV1SpectroClustersUIDHybridSettingsParams creates a new V1SpectroClustersUIDHybridSettingsParams object +// with the default values initialized. +func NewV1SpectroClustersUIDHybridSettingsParams() *V1SpectroClustersUIDHybridSettingsParams { + var () + return &V1SpectroClustersUIDHybridSettingsParams{ + + timeout: cr.DefaultTimeout, + } +} + +// NewV1SpectroClustersUIDHybridSettingsParamsWithTimeout creates a new V1SpectroClustersUIDHybridSettingsParams object +// with the default values initialized, and the ability to set a timeout on a request +func NewV1SpectroClustersUIDHybridSettingsParamsWithTimeout(timeout time.Duration) *V1SpectroClustersUIDHybridSettingsParams { + var () + return &V1SpectroClustersUIDHybridSettingsParams{ + + timeout: timeout, + } +} + +// NewV1SpectroClustersUIDHybridSettingsParamsWithContext creates a new V1SpectroClustersUIDHybridSettingsParams object +// with the default values initialized, and the ability to set a context for a request +func NewV1SpectroClustersUIDHybridSettingsParamsWithContext(ctx context.Context) *V1SpectroClustersUIDHybridSettingsParams { + var () + return &V1SpectroClustersUIDHybridSettingsParams{ + + Context: ctx, + } +} + +// NewV1SpectroClustersUIDHybridSettingsParamsWithHTTPClient creates a new V1SpectroClustersUIDHybridSettingsParams object +// with the default values initialized, and the ability to set a custom HTTPClient for a request +func NewV1SpectroClustersUIDHybridSettingsParamsWithHTTPClient(client *http.Client) *V1SpectroClustersUIDHybridSettingsParams { + var () + return &V1SpectroClustersUIDHybridSettingsParams{ + HTTPClient: client, + } +} + +/* +V1SpectroClustersUIDHybridSettingsParams contains all the parameters to send to the API endpoint +for the v1 spectro clusters Uid hybrid settings operation typically these are written to a http.Request +*/ +type V1SpectroClustersUIDHybridSettingsParams struct { + + /*Body*/ + Body *models.V1ClusterHybridSettingsEntity + /*UID + Cluster uid + + */ + UID string + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithTimeout adds the timeout to the v1 spectro clusters Uid hybrid settings params +func (o *V1SpectroClustersUIDHybridSettingsParams) WithTimeout(timeout time.Duration) *V1SpectroClustersUIDHybridSettingsParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the v1 spectro clusters Uid hybrid settings params +func (o *V1SpectroClustersUIDHybridSettingsParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the v1 spectro clusters Uid hybrid settings params +func (o *V1SpectroClustersUIDHybridSettingsParams) WithContext(ctx context.Context) *V1SpectroClustersUIDHybridSettingsParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the v1 spectro clusters Uid hybrid settings params +func (o *V1SpectroClustersUIDHybridSettingsParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the v1 spectro clusters Uid hybrid settings params +func (o *V1SpectroClustersUIDHybridSettingsParams) WithHTTPClient(client *http.Client) *V1SpectroClustersUIDHybridSettingsParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the v1 spectro clusters Uid hybrid settings params +func (o *V1SpectroClustersUIDHybridSettingsParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithBody adds the body to the v1 spectro clusters Uid hybrid settings params +func (o *V1SpectroClustersUIDHybridSettingsParams) WithBody(body *models.V1ClusterHybridSettingsEntity) *V1SpectroClustersUIDHybridSettingsParams { + o.SetBody(body) + return o +} + +// SetBody adds the body to the v1 spectro clusters Uid hybrid settings params +func (o *V1SpectroClustersUIDHybridSettingsParams) SetBody(body *models.V1ClusterHybridSettingsEntity) { + o.Body = body +} + +// WithUID adds the uid to the v1 spectro clusters Uid hybrid settings params +func (o *V1SpectroClustersUIDHybridSettingsParams) WithUID(uid string) *V1SpectroClustersUIDHybridSettingsParams { + o.SetUID(uid) + return o +} + +// SetUID adds the uid to the v1 spectro clusters Uid hybrid settings params +func (o *V1SpectroClustersUIDHybridSettingsParams) SetUID(uid string) { + o.UID = uid +} + +// WriteToRequest writes these params to a swagger request +func (o *V1SpectroClustersUIDHybridSettingsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + if o.Body != nil { + if err := r.SetBodyParam(o.Body); err != nil { + return err + } + } + + // path param uid + if err := r.SetPathParam("uid", o.UID); err != nil { + return err + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/client/v1/v1_spectro_clusters_uid_hybrid_settings_responses.go b/api/client/v1/v1_spectro_clusters_uid_hybrid_settings_responses.go new file mode 100644 index 00000000..3bfa8deb --- /dev/null +++ b/api/client/v1/v1_spectro_clusters_uid_hybrid_settings_responses.go @@ -0,0 +1,61 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package v1 + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// V1SpectroClustersUIDHybridSettingsReader is a Reader for the V1SpectroClustersUIDHybridSettings structure. +type V1SpectroClustersUIDHybridSettingsReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *V1SpectroClustersUIDHybridSettingsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 204: + result := NewV1SpectroClustersUIDHybridSettingsNoContent() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewV1SpectroClustersUIDHybridSettingsNoContent creates a V1SpectroClustersUIDHybridSettingsNoContent with default headers values +func NewV1SpectroClustersUIDHybridSettingsNoContent() *V1SpectroClustersUIDHybridSettingsNoContent { + return &V1SpectroClustersUIDHybridSettingsNoContent{} +} + +/* +V1SpectroClustersUIDHybridSettingsNoContent handles this case with default header values. + +Ok response without content +*/ +type V1SpectroClustersUIDHybridSettingsNoContent struct { + /*Audit uid for the request + */ + AuditUID string +} + +func (o *V1SpectroClustersUIDHybridSettingsNoContent) Error() string { + return fmt.Sprintf("[PATCH /v1/spectroclusters/{uid}/hybridSettings][%d] v1SpectroClustersUidHybridSettingsNoContent ", 204) +} + +func (o *V1SpectroClustersUIDHybridSettingsNoContent) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + // response header AuditUid + o.AuditUID = response.GetHeader("AuditUid") + + return nil +} diff --git a/api/client/v1/v1_spectro_clusters_uid_token_kube_config_delete_parameters.go b/api/client/v1/v1_spectro_clusters_uid_token_kube_config_delete_parameters.go new file mode 100644 index 00000000..7078a97f --- /dev/null +++ b/api/client/v1/v1_spectro_clusters_uid_token_kube_config_delete_parameters.go @@ -0,0 +1,136 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package v1 + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" +) + +// NewV1SpectroClustersUIDTokenKubeConfigDeleteParams creates a new V1SpectroClustersUIDTokenKubeConfigDeleteParams object +// with the default values initialized. +func NewV1SpectroClustersUIDTokenKubeConfigDeleteParams() *V1SpectroClustersUIDTokenKubeConfigDeleteParams { + var () + return &V1SpectroClustersUIDTokenKubeConfigDeleteParams{ + + timeout: cr.DefaultTimeout, + } +} + +// NewV1SpectroClustersUIDTokenKubeConfigDeleteParamsWithTimeout creates a new V1SpectroClustersUIDTokenKubeConfigDeleteParams object +// with the default values initialized, and the ability to set a timeout on a request +func NewV1SpectroClustersUIDTokenKubeConfigDeleteParamsWithTimeout(timeout time.Duration) *V1SpectroClustersUIDTokenKubeConfigDeleteParams { + var () + return &V1SpectroClustersUIDTokenKubeConfigDeleteParams{ + + timeout: timeout, + } +} + +// NewV1SpectroClustersUIDTokenKubeConfigDeleteParamsWithContext creates a new V1SpectroClustersUIDTokenKubeConfigDeleteParams object +// with the default values initialized, and the ability to set a context for a request +func NewV1SpectroClustersUIDTokenKubeConfigDeleteParamsWithContext(ctx context.Context) *V1SpectroClustersUIDTokenKubeConfigDeleteParams { + var () + return &V1SpectroClustersUIDTokenKubeConfigDeleteParams{ + + Context: ctx, + } +} + +// NewV1SpectroClustersUIDTokenKubeConfigDeleteParamsWithHTTPClient creates a new V1SpectroClustersUIDTokenKubeConfigDeleteParams object +// with the default values initialized, and the ability to set a custom HTTPClient for a request +func NewV1SpectroClustersUIDTokenKubeConfigDeleteParamsWithHTTPClient(client *http.Client) *V1SpectroClustersUIDTokenKubeConfigDeleteParams { + var () + return &V1SpectroClustersUIDTokenKubeConfigDeleteParams{ + HTTPClient: client, + } +} + +/* +V1SpectroClustersUIDTokenKubeConfigDeleteParams contains all the parameters to send to the API endpoint +for the v1 spectro clusters Uid token kube config delete operation typically these are written to a http.Request +*/ +type V1SpectroClustersUIDTokenKubeConfigDeleteParams struct { + + /*UID + Cluster uid + + */ + UID string + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithTimeout adds the timeout to the v1 spectro clusters Uid token kube config delete params +func (o *V1SpectroClustersUIDTokenKubeConfigDeleteParams) WithTimeout(timeout time.Duration) *V1SpectroClustersUIDTokenKubeConfigDeleteParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the v1 spectro clusters Uid token kube config delete params +func (o *V1SpectroClustersUIDTokenKubeConfigDeleteParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the v1 spectro clusters Uid token kube config delete params +func (o *V1SpectroClustersUIDTokenKubeConfigDeleteParams) WithContext(ctx context.Context) *V1SpectroClustersUIDTokenKubeConfigDeleteParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the v1 spectro clusters Uid token kube config delete params +func (o *V1SpectroClustersUIDTokenKubeConfigDeleteParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the v1 spectro clusters Uid token kube config delete params +func (o *V1SpectroClustersUIDTokenKubeConfigDeleteParams) WithHTTPClient(client *http.Client) *V1SpectroClustersUIDTokenKubeConfigDeleteParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the v1 spectro clusters Uid token kube config delete params +func (o *V1SpectroClustersUIDTokenKubeConfigDeleteParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithUID adds the uid to the v1 spectro clusters Uid token kube config delete params +func (o *V1SpectroClustersUIDTokenKubeConfigDeleteParams) WithUID(uid string) *V1SpectroClustersUIDTokenKubeConfigDeleteParams { + o.SetUID(uid) + return o +} + +// SetUID adds the uid to the v1 spectro clusters Uid token kube config delete params +func (o *V1SpectroClustersUIDTokenKubeConfigDeleteParams) SetUID(uid string) { + o.UID = uid +} + +// WriteToRequest writes these params to a swagger request +func (o *V1SpectroClustersUIDTokenKubeConfigDeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + // path param uid + if err := r.SetPathParam("uid", o.UID); err != nil { + return err + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/client/v1/v1_spectro_clusters_uid_token_kube_config_delete_responses.go b/api/client/v1/v1_spectro_clusters_uid_token_kube_config_delete_responses.go new file mode 100644 index 00000000..a5d895d7 --- /dev/null +++ b/api/client/v1/v1_spectro_clusters_uid_token_kube_config_delete_responses.go @@ -0,0 +1,55 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package v1 + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// V1SpectroClustersUIDTokenKubeConfigDeleteReader is a Reader for the V1SpectroClustersUIDTokenKubeConfigDelete structure. +type V1SpectroClustersUIDTokenKubeConfigDeleteReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *V1SpectroClustersUIDTokenKubeConfigDeleteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 204: + result := NewV1SpectroClustersUIDTokenKubeConfigDeleteNoContent() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewV1SpectroClustersUIDTokenKubeConfigDeleteNoContent creates a V1SpectroClustersUIDTokenKubeConfigDeleteNoContent with default headers values +func NewV1SpectroClustersUIDTokenKubeConfigDeleteNoContent() *V1SpectroClustersUIDTokenKubeConfigDeleteNoContent { + return &V1SpectroClustersUIDTokenKubeConfigDeleteNoContent{} +} + +/* +V1SpectroClustersUIDTokenKubeConfigDeleteNoContent handles this case with default header values. + +The resource was deleted successfully +*/ +type V1SpectroClustersUIDTokenKubeConfigDeleteNoContent struct { +} + +func (o *V1SpectroClustersUIDTokenKubeConfigDeleteNoContent) Error() string { + return fmt.Sprintf("[DELETE /v1/spectroclusters/{uid}/assets/adminTokenKubeconfig][%d] v1SpectroClustersUidTokenKubeConfigDeleteNoContent ", 204) +} + +func (o *V1SpectroClustersUIDTokenKubeConfigDeleteNoContent) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} diff --git a/api/client/v1/v1_spectro_clusters_uid_token_kube_config_get_parameters.go b/api/client/v1/v1_spectro_clusters_uid_token_kube_config_get_parameters.go new file mode 100644 index 00000000..4b0f0025 --- /dev/null +++ b/api/client/v1/v1_spectro_clusters_uid_token_kube_config_get_parameters.go @@ -0,0 +1,136 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package v1 + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" +) + +// NewV1SpectroClustersUIDTokenKubeConfigGetParams creates a new V1SpectroClustersUIDTokenKubeConfigGetParams object +// with the default values initialized. +func NewV1SpectroClustersUIDTokenKubeConfigGetParams() *V1SpectroClustersUIDTokenKubeConfigGetParams { + var () + return &V1SpectroClustersUIDTokenKubeConfigGetParams{ + + timeout: cr.DefaultTimeout, + } +} + +// NewV1SpectroClustersUIDTokenKubeConfigGetParamsWithTimeout creates a new V1SpectroClustersUIDTokenKubeConfigGetParams object +// with the default values initialized, and the ability to set a timeout on a request +func NewV1SpectroClustersUIDTokenKubeConfigGetParamsWithTimeout(timeout time.Duration) *V1SpectroClustersUIDTokenKubeConfigGetParams { + var () + return &V1SpectroClustersUIDTokenKubeConfigGetParams{ + + timeout: timeout, + } +} + +// NewV1SpectroClustersUIDTokenKubeConfigGetParamsWithContext creates a new V1SpectroClustersUIDTokenKubeConfigGetParams object +// with the default values initialized, and the ability to set a context for a request +func NewV1SpectroClustersUIDTokenKubeConfigGetParamsWithContext(ctx context.Context) *V1SpectroClustersUIDTokenKubeConfigGetParams { + var () + return &V1SpectroClustersUIDTokenKubeConfigGetParams{ + + Context: ctx, + } +} + +// NewV1SpectroClustersUIDTokenKubeConfigGetParamsWithHTTPClient creates a new V1SpectroClustersUIDTokenKubeConfigGetParams object +// with the default values initialized, and the ability to set a custom HTTPClient for a request +func NewV1SpectroClustersUIDTokenKubeConfigGetParamsWithHTTPClient(client *http.Client) *V1SpectroClustersUIDTokenKubeConfigGetParams { + var () + return &V1SpectroClustersUIDTokenKubeConfigGetParams{ + HTTPClient: client, + } +} + +/* +V1SpectroClustersUIDTokenKubeConfigGetParams contains all the parameters to send to the API endpoint +for the v1 spectro clusters Uid token kube config get operation typically these are written to a http.Request +*/ +type V1SpectroClustersUIDTokenKubeConfigGetParams struct { + + /*UID + Cluster uid + + */ + UID string + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithTimeout adds the timeout to the v1 spectro clusters Uid token kube config get params +func (o *V1SpectroClustersUIDTokenKubeConfigGetParams) WithTimeout(timeout time.Duration) *V1SpectroClustersUIDTokenKubeConfigGetParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the v1 spectro clusters Uid token kube config get params +func (o *V1SpectroClustersUIDTokenKubeConfigGetParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the v1 spectro clusters Uid token kube config get params +func (o *V1SpectroClustersUIDTokenKubeConfigGetParams) WithContext(ctx context.Context) *V1SpectroClustersUIDTokenKubeConfigGetParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the v1 spectro clusters Uid token kube config get params +func (o *V1SpectroClustersUIDTokenKubeConfigGetParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the v1 spectro clusters Uid token kube config get params +func (o *V1SpectroClustersUIDTokenKubeConfigGetParams) WithHTTPClient(client *http.Client) *V1SpectroClustersUIDTokenKubeConfigGetParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the v1 spectro clusters Uid token kube config get params +func (o *V1SpectroClustersUIDTokenKubeConfigGetParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithUID adds the uid to the v1 spectro clusters Uid token kube config get params +func (o *V1SpectroClustersUIDTokenKubeConfigGetParams) WithUID(uid string) *V1SpectroClustersUIDTokenKubeConfigGetParams { + o.SetUID(uid) + return o +} + +// SetUID adds the uid to the v1 spectro clusters Uid token kube config get params +func (o *V1SpectroClustersUIDTokenKubeConfigGetParams) SetUID(uid string) { + o.UID = uid +} + +// WriteToRequest writes these params to a swagger request +func (o *V1SpectroClustersUIDTokenKubeConfigGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + // path param uid + if err := r.SetPathParam("uid", o.UID); err != nil { + return err + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/client/v1/v1_spectro_clusters_uid_token_kube_config_get_responses.go b/api/client/v1/v1_spectro_clusters_uid_token_kube_config_get_responses.go new file mode 100644 index 00000000..b091d168 --- /dev/null +++ b/api/client/v1/v1_spectro_clusters_uid_token_kube_config_get_responses.go @@ -0,0 +1,74 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package v1 + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + "io" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// V1SpectroClustersUIDTokenKubeConfigGetReader is a Reader for the V1SpectroClustersUIDTokenKubeConfigGet structure. +type V1SpectroClustersUIDTokenKubeConfigGetReader struct { + formats strfmt.Registry + writer io.Writer +} + +// ReadResponse reads a server response into the received o. +func (o *V1SpectroClustersUIDTokenKubeConfigGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewV1SpectroClustersUIDTokenKubeConfigGetOK(o.writer) + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewV1SpectroClustersUIDTokenKubeConfigGetOK creates a V1SpectroClustersUIDTokenKubeConfigGetOK with default headers values +func NewV1SpectroClustersUIDTokenKubeConfigGetOK(writer io.Writer) *V1SpectroClustersUIDTokenKubeConfigGetOK { + return &V1SpectroClustersUIDTokenKubeConfigGetOK{ + Payload: writer, + } +} + +/* +V1SpectroClustersUIDTokenKubeConfigGetOK handles this case with default header values. + +download file +*/ +type V1SpectroClustersUIDTokenKubeConfigGetOK struct { + ContentDisposition string + + Payload io.Writer +} + +func (o *V1SpectroClustersUIDTokenKubeConfigGetOK) Error() string { + return fmt.Sprintf("[GET /v1/spectroclusters/{uid}/assets/adminTokenKubeconfig][%d] v1SpectroClustersUidTokenKubeConfigGetOK %+v", 200, o.Payload) +} + +func (o *V1SpectroClustersUIDTokenKubeConfigGetOK) GetPayload() io.Writer { + return o.Payload +} + +func (o *V1SpectroClustersUIDTokenKubeConfigGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + // response header Content-Disposition + o.ContentDisposition = response.GetHeader("Content-Disposition") + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/api/client/v1/v1_spectro_clusters_uid_token_kube_config_update_parameters.go b/api/client/v1/v1_spectro_clusters_uid_token_kube_config_update_parameters.go new file mode 100644 index 00000000..5102aa4b --- /dev/null +++ b/api/client/v1/v1_spectro_clusters_uid_token_kube_config_update_parameters.go @@ -0,0 +1,157 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package v1 + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" + + "github.com/spectrocloud/palette-sdk-go/api/models" +) + +// NewV1SpectroClustersUIDTokenKubeConfigUpdateParams creates a new V1SpectroClustersUIDTokenKubeConfigUpdateParams object +// with the default values initialized. +func NewV1SpectroClustersUIDTokenKubeConfigUpdateParams() *V1SpectroClustersUIDTokenKubeConfigUpdateParams { + var () + return &V1SpectroClustersUIDTokenKubeConfigUpdateParams{ + + timeout: cr.DefaultTimeout, + } +} + +// NewV1SpectroClustersUIDTokenKubeConfigUpdateParamsWithTimeout creates a new V1SpectroClustersUIDTokenKubeConfigUpdateParams object +// with the default values initialized, and the ability to set a timeout on a request +func NewV1SpectroClustersUIDTokenKubeConfigUpdateParamsWithTimeout(timeout time.Duration) *V1SpectroClustersUIDTokenKubeConfigUpdateParams { + var () + return &V1SpectroClustersUIDTokenKubeConfigUpdateParams{ + + timeout: timeout, + } +} + +// NewV1SpectroClustersUIDTokenKubeConfigUpdateParamsWithContext creates a new V1SpectroClustersUIDTokenKubeConfigUpdateParams object +// with the default values initialized, and the ability to set a context for a request +func NewV1SpectroClustersUIDTokenKubeConfigUpdateParamsWithContext(ctx context.Context) *V1SpectroClustersUIDTokenKubeConfigUpdateParams { + var () + return &V1SpectroClustersUIDTokenKubeConfigUpdateParams{ + + Context: ctx, + } +} + +// NewV1SpectroClustersUIDTokenKubeConfigUpdateParamsWithHTTPClient creates a new V1SpectroClustersUIDTokenKubeConfigUpdateParams object +// with the default values initialized, and the ability to set a custom HTTPClient for a request +func NewV1SpectroClustersUIDTokenKubeConfigUpdateParamsWithHTTPClient(client *http.Client) *V1SpectroClustersUIDTokenKubeConfigUpdateParams { + var () + return &V1SpectroClustersUIDTokenKubeConfigUpdateParams{ + HTTPClient: client, + } +} + +/* +V1SpectroClustersUIDTokenKubeConfigUpdateParams contains all the parameters to send to the API endpoint +for the v1 spectro clusters Uid token kube config update operation typically these are written to a http.Request +*/ +type V1SpectroClustersUIDTokenKubeConfigUpdateParams struct { + + /*Body*/ + Body *models.V1SpectroClusterAssetTokenKubeConfig + /*UID + Cluster uid + + */ + UID string + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithTimeout adds the timeout to the v1 spectro clusters Uid token kube config update params +func (o *V1SpectroClustersUIDTokenKubeConfigUpdateParams) WithTimeout(timeout time.Duration) *V1SpectroClustersUIDTokenKubeConfigUpdateParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the v1 spectro clusters Uid token kube config update params +func (o *V1SpectroClustersUIDTokenKubeConfigUpdateParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the v1 spectro clusters Uid token kube config update params +func (o *V1SpectroClustersUIDTokenKubeConfigUpdateParams) WithContext(ctx context.Context) *V1SpectroClustersUIDTokenKubeConfigUpdateParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the v1 spectro clusters Uid token kube config update params +func (o *V1SpectroClustersUIDTokenKubeConfigUpdateParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the v1 spectro clusters Uid token kube config update params +func (o *V1SpectroClustersUIDTokenKubeConfigUpdateParams) WithHTTPClient(client *http.Client) *V1SpectroClustersUIDTokenKubeConfigUpdateParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the v1 spectro clusters Uid token kube config update params +func (o *V1SpectroClustersUIDTokenKubeConfigUpdateParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithBody adds the body to the v1 spectro clusters Uid token kube config update params +func (o *V1SpectroClustersUIDTokenKubeConfigUpdateParams) WithBody(body *models.V1SpectroClusterAssetTokenKubeConfig) *V1SpectroClustersUIDTokenKubeConfigUpdateParams { + o.SetBody(body) + return o +} + +// SetBody adds the body to the v1 spectro clusters Uid token kube config update params +func (o *V1SpectroClustersUIDTokenKubeConfigUpdateParams) SetBody(body *models.V1SpectroClusterAssetTokenKubeConfig) { + o.Body = body +} + +// WithUID adds the uid to the v1 spectro clusters Uid token kube config update params +func (o *V1SpectroClustersUIDTokenKubeConfigUpdateParams) WithUID(uid string) *V1SpectroClustersUIDTokenKubeConfigUpdateParams { + o.SetUID(uid) + return o +} + +// SetUID adds the uid to the v1 spectro clusters Uid token kube config update params +func (o *V1SpectroClustersUIDTokenKubeConfigUpdateParams) SetUID(uid string) { + o.UID = uid +} + +// WriteToRequest writes these params to a swagger request +func (o *V1SpectroClustersUIDTokenKubeConfigUpdateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + if o.Body != nil { + if err := r.SetBodyParam(o.Body); err != nil { + return err + } + } + + // path param uid + if err := r.SetPathParam("uid", o.UID); err != nil { + return err + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/client/v1/v1_spectro_clusters_uid_token_kube_config_update_responses.go b/api/client/v1/v1_spectro_clusters_uid_token_kube_config_update_responses.go new file mode 100644 index 00000000..36de6da2 --- /dev/null +++ b/api/client/v1/v1_spectro_clusters_uid_token_kube_config_update_responses.go @@ -0,0 +1,55 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package v1 + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// V1SpectroClustersUIDTokenKubeConfigUpdateReader is a Reader for the V1SpectroClustersUIDTokenKubeConfigUpdate structure. +type V1SpectroClustersUIDTokenKubeConfigUpdateReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *V1SpectroClustersUIDTokenKubeConfigUpdateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 204: + result := NewV1SpectroClustersUIDTokenKubeConfigUpdateNoContent() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewV1SpectroClustersUIDTokenKubeConfigUpdateNoContent creates a V1SpectroClustersUIDTokenKubeConfigUpdateNoContent with default headers values +func NewV1SpectroClustersUIDTokenKubeConfigUpdateNoContent() *V1SpectroClustersUIDTokenKubeConfigUpdateNoContent { + return &V1SpectroClustersUIDTokenKubeConfigUpdateNoContent{} +} + +/* +V1SpectroClustersUIDTokenKubeConfigUpdateNoContent handles this case with default header values. + +The resource was updated successfully +*/ +type V1SpectroClustersUIDTokenKubeConfigUpdateNoContent struct { +} + +func (o *V1SpectroClustersUIDTokenKubeConfigUpdateNoContent) Error() string { + return fmt.Sprintf("[PUT /v1/spectroclusters/{uid}/assets/adminTokenKubeconfig][%d] v1SpectroClustersUidTokenKubeConfigUpdateNoContent ", 204) +} + +func (o *V1SpectroClustersUIDTokenKubeConfigUpdateNoContent) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} diff --git a/api/generate.sh b/api/generate.sh index 8002c3ce..1daefaa5 100755 --- a/api/generate.sh +++ b/api/generate.sh @@ -12,7 +12,7 @@ service="palette-api" serviceDir="${currentDir}" apiDir="${serviceDir}" commonDir="${apiDir}/common" -templateDir="${apiDir}swagger/templates" +templateDir="${apiDir}/swagger/templates" # Fetch the latest hapi spec rm -rf hapi && git clone https://github.com/spectrocloud/hapi diff --git a/api/models/v1_aws_cloud_config_spec.go b/api/models/v1_aws_cloud_config_spec.go index d01f9606..b810c97b 100644 --- a/api/models/v1_aws_cloud_config_spec.go +++ b/api/models/v1_aws_cloud_config_spec.go @@ -24,6 +24,9 @@ type V1AwsCloudConfigSpec struct { // cluster config ClusterConfig *V1AwsClusterConfig `json:"clusterConfig,omitempty"` + // hybrid machine pools + HybridMachinePools []*V1EksHybridMachinePool `json:"hybridMachinePools"` + // machine pool config MachinePoolConfig []*V1AwsMachinePoolConfig `json:"machinePoolConfig"` } @@ -40,6 +43,10 @@ func (m *V1AwsCloudConfigSpec) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateHybridMachinePools(formats); err != nil { + res = append(res, err) + } + if err := m.validateMachinePoolConfig(formats); err != nil { res = append(res, err) } @@ -86,6 +93,31 @@ func (m *V1AwsCloudConfigSpec) validateClusterConfig(formats strfmt.Registry) er return nil } +func (m *V1AwsCloudConfigSpec) validateHybridMachinePools(formats strfmt.Registry) error { + + if swag.IsZero(m.HybridMachinePools) { // not required + return nil + } + + for i := 0; i < len(m.HybridMachinePools); i++ { + if swag.IsZero(m.HybridMachinePools[i]) { // not required + continue + } + + if m.HybridMachinePools[i] != nil { + if err := m.HybridMachinePools[i].Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("hybridMachinePools" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + func (m *V1AwsCloudConfigSpec) validateMachinePoolConfig(formats strfmt.Registry) error { if swag.IsZero(m.MachinePoolConfig) { // not required diff --git a/api/models/v1_aws_cloud_hybrid_config_entity.go b/api/models/v1_aws_cloud_hybrid_config_entity.go new file mode 100644 index 00000000..48a49420 --- /dev/null +++ b/api/models/v1_aws_cloud_hybrid_config_entity.go @@ -0,0 +1,71 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// V1AwsCloudHybridConfigEntity AWS cloud hybrid config entity +// +// swagger:model v1AwsCloudHybridConfigEntity +type V1AwsCloudHybridConfigEntity struct { + + // hybrid config + HybridConfig *V1AwsHybridConfig `json:"hybridConfig,omitempty"` +} + +// Validate validates this v1 aws cloud hybrid config entity +func (m *V1AwsCloudHybridConfigEntity) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateHybridConfig(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *V1AwsCloudHybridConfigEntity) validateHybridConfig(formats strfmt.Registry) error { + + if swag.IsZero(m.HybridConfig) { // not required + return nil + } + + if m.HybridConfig != nil { + if err := m.HybridConfig.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("hybridConfig") + } + return err + } + } + + return nil +} + +// MarshalBinary interface implementation +func (m *V1AwsCloudHybridConfigEntity) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *V1AwsCloudHybridConfigEntity) UnmarshalBinary(b []byte) error { + var res V1AwsCloudHybridConfigEntity + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/api/models/v1_aws_cluster_config.go b/api/models/v1_aws_cluster_config.go index 11093657..3000a6cc 100644 --- a/api/models/v1_aws_cluster_config.go +++ b/api/models/v1_aws_cluster_config.go @@ -23,6 +23,9 @@ type V1AwsClusterConfig struct { // ControlPlaneLoadBalancer specifies how API server elb will be configured, this field is optional, not provided, "", default => "Internet-facing" "Internet-facing" => "Internet-facing" "internal" => "internal" For spectro saas setup we require to talk to the apiserver from our cluster so ControlPlaneLoadBalancer should be "", not provided or "Internet-facing" ControlPlaneLoadBalancer string `json:"controlPlaneLoadBalancer,omitempty"` + // AWS hybrid cluster config + HybridConfig *V1AwsHybridConfig `json:"hybridConfig,omitempty"` + // region // Required: true Region *string `json:"region"` @@ -38,6 +41,10 @@ type V1AwsClusterConfig struct { func (m *V1AwsClusterConfig) Validate(formats strfmt.Registry) error { var res []error + if err := m.validateHybridConfig(formats); err != nil { + res = append(res, err) + } + if err := m.validateRegion(formats); err != nil { res = append(res, err) } @@ -48,6 +55,24 @@ func (m *V1AwsClusterConfig) Validate(formats strfmt.Registry) error { return nil } +func (m *V1AwsClusterConfig) validateHybridConfig(formats strfmt.Registry) error { + + if swag.IsZero(m.HybridConfig) { // not required + return nil + } + + if m.HybridConfig != nil { + if err := m.HybridConfig.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("hybridConfig") + } + return err + } + } + + return nil +} + func (m *V1AwsClusterConfig) validateRegion(formats strfmt.Registry) error { if err := validate.Required("region", "body", m.Region); err != nil { diff --git a/api/models/v1_aws_hybrid_config.go b/api/models/v1_aws_hybrid_config.go new file mode 100644 index 00000000..8cbd55ec --- /dev/null +++ b/api/models/v1_aws_hybrid_config.go @@ -0,0 +1,105 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// V1AwsHybridConfig AwsHybridConfig specifies the AWS Hybrid configuration for the cluster +// +// swagger:model v1AwsHybridConfig +type V1AwsHybridConfig struct { + + // AWS VPC CIDR is the CIDR of the AWS/EKS cluster's VPC + AwsVpcCidr string `json:"awsVpcCidr,omitempty"` + + // IamRolesAnywhere specifies the IAM Roles Anywhere configuration for the AWS/EKS cluster + IamRolesAnywhere *V1IamRolesAnywhere `json:"iamRolesAnywhere,omitempty"` + + // RemoteNodeCIDRs specifies the Node CIDRs of all remote nodes + RemoteNodeCidrs []string `json:"remoteNodeCidrs"` + + // RemotePodCIDRs specifies the Pod CIDRs of all remote pods + RemotePodCidrs []string `json:"remotePodCidrs"` + + // SystemsManager specifies the Systems Manager configuration for the AWS/EKS cluster + SystemsManager *V1SystemsManager `json:"systemsManager,omitempty"` +} + +// Validate validates this v1 aws hybrid config +func (m *V1AwsHybridConfig) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateIamRolesAnywhere(formats); err != nil { + res = append(res, err) + } + + if err := m.validateSystemsManager(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *V1AwsHybridConfig) validateIamRolesAnywhere(formats strfmt.Registry) error { + + if swag.IsZero(m.IamRolesAnywhere) { // not required + return nil + } + + if m.IamRolesAnywhere != nil { + if err := m.IamRolesAnywhere.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("iamRolesAnywhere") + } + return err + } + } + + return nil +} + +func (m *V1AwsHybridConfig) validateSystemsManager(formats strfmt.Registry) error { + + if swag.IsZero(m.SystemsManager) { // not required + return nil + } + + if m.SystemsManager != nil { + if err := m.SystemsManager.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("systemsManager") + } + return err + } + } + + return nil +} + +// MarshalBinary interface implementation +func (m *V1AwsHybridConfig) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *V1AwsHybridConfig) UnmarshalBinary(b []byte) error { + var res V1AwsHybridConfig + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/api/models/v1_basic_oci_registry.go b/api/models/v1_basic_oci_registry.go index 68ad5f4f..471636d1 100644 --- a/api/models/v1_basic_oci_registry.go +++ b/api/models/v1_basic_oci_registry.go @@ -24,6 +24,9 @@ type V1BasicOciRegistry struct { // spec Spec *V1BasicOciRegistrySpec `json:"spec,omitempty"` + + // status + Status *V1OciRegistryStatus `json:"status,omitempty"` } // Validate validates this v1 basic oci registry @@ -38,6 +41,10 @@ func (m *V1BasicOciRegistry) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateStatus(formats); err != nil { + res = append(res, err) + } + if len(res) > 0 { return errors.CompositeValidationError(res...) } @@ -80,6 +87,24 @@ func (m *V1BasicOciRegistry) validateSpec(formats strfmt.Registry) error { return nil } +func (m *V1BasicOciRegistry) validateStatus(formats strfmt.Registry) error { + + if swag.IsZero(m.Status) { // not required + return nil + } + + if m.Status != nil { + if err := m.Status.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("status") + } + return err + } + } + + return nil +} + // MarshalBinary interface implementation func (m *V1BasicOciRegistry) MarshalBinary() ([]byte, error) { if m == nil { diff --git a/api/models/v1_basic_oci_registry_spec.go b/api/models/v1_basic_oci_registry_spec.go index a6c8b073..f1aa1a0f 100644 --- a/api/models/v1_basic_oci_registry_spec.go +++ b/api/models/v1_basic_oci_registry_spec.go @@ -29,10 +29,16 @@ type V1BasicOciRegistrySpec struct { // OCI registry api base path BasePath string `json:"basePath,omitempty"` + // contains spectro manifest + ContainsSpectroManifest bool `json:"containsSpectroManifest"` + // OCI registry endpoint // Required: true Endpoint *string `json:"endpoint"` + // is sync supported + IsSyncSupported bool `json:"isSyncSupported,omitempty"` + // provider type // Enum: [helm zarf pack] ProviderType *string `json:"providerType,omitempty"` diff --git a/api/models/v1_cluster_config.go b/api/models/v1_cluster_config.go index 3cf5b7b1..bdf29f11 100644 --- a/api/models/v1_cluster_config.go +++ b/api/models/v1_cluster_config.go @@ -33,6 +33,9 @@ type V1ClusterConfig struct { // HostClusterConfiguration defines the configuration of host clusters, where virtual clusters be deployed HostClusterConfig *V1HostClusterConfig `json:"hostClusterConfig,omitempty"` + // HybridClusterConfiguration defines the configuration of hybrid clusters and clusters deployed through hybrid clusters + HybridClusterConfig *V1HybridClusterConfig `json:"hybridClusterConfig,omitempty"` + // lifecycle config LifecycleConfig *V1LifecycleConfig `json:"lifecycleConfig,omitempty"` @@ -62,6 +65,10 @@ func (m *V1ClusterConfig) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateHybridClusterConfig(formats); err != nil { + res = append(res, err) + } + if err := m.validateLifecycleConfig(formats); err != nil { res = append(res, err) } @@ -141,6 +148,24 @@ func (m *V1ClusterConfig) validateHostClusterConfig(formats strfmt.Registry) err return nil } +func (m *V1ClusterConfig) validateHybridClusterConfig(formats strfmt.Registry) error { + + if swag.IsZero(m.HybridClusterConfig) { // not required + return nil + } + + if m.HybridClusterConfig != nil { + if err := m.HybridClusterConfig.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("hybridClusterConfig") + } + return err + } + } + + return nil +} + func (m *V1ClusterConfig) validateLifecycleConfig(formats strfmt.Registry) error { if swag.IsZero(m.LifecycleConfig) { // not required diff --git a/api/models/v1_cluster_hybrid_settings_entity.go b/api/models/v1_cluster_hybrid_settings_entity.go new file mode 100644 index 00000000..c8176fec --- /dev/null +++ b/api/models/v1_cluster_hybrid_settings_entity.go @@ -0,0 +1,43 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// V1ClusterHybridSettingsEntity v1 cluster hybrid settings entity +// +// swagger:model v1ClusterHybridSettingsEntity +type V1ClusterHybridSettingsEntity struct { + + // Property which is used to enable a cluster to perform hybrid operations + Enable bool `json:"enable,omitempty"` +} + +// Validate validates this v1 cluster hybrid settings entity +func (m *V1ClusterHybridSettingsEntity) Validate(formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *V1ClusterHybridSettingsEntity) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *V1ClusterHybridSettingsEntity) UnmarshalBinary(b []byte) error { + var res V1ClusterHybridSettingsEntity + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/api/models/v1_ecr_registry.go b/api/models/v1_ecr_registry.go index 7d7cd3d0..2480ea9e 100644 --- a/api/models/v1_ecr_registry.go +++ b/api/models/v1_ecr_registry.go @@ -24,6 +24,9 @@ type V1EcrRegistry struct { // spec Spec *V1EcrRegistrySpec `json:"spec,omitempty"` + + // status + Status *V1OciRegistryStatus `json:"status,omitempty"` } // Validate validates this v1 ecr registry @@ -38,6 +41,10 @@ func (m *V1EcrRegistry) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateStatus(formats); err != nil { + res = append(res, err) + } + if len(res) > 0 { return errors.CompositeValidationError(res...) } @@ -80,6 +87,24 @@ func (m *V1EcrRegistry) validateSpec(formats strfmt.Registry) error { return nil } +func (m *V1EcrRegistry) validateStatus(formats strfmt.Registry) error { + + if swag.IsZero(m.Status) { // not required + return nil + } + + if m.Status != nil { + if err := m.Status.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("status") + } + return err + } + } + + return nil +} + // MarshalBinary interface implementation func (m *V1EcrRegistry) MarshalBinary() ([]byte, error) { if m == nil { diff --git a/api/models/v1_ecr_registry_spec.go b/api/models/v1_ecr_registry_spec.go index da8ea925..9f3c86c7 100644 --- a/api/models/v1_ecr_registry_spec.go +++ b/api/models/v1_ecr_registry_spec.go @@ -22,6 +22,9 @@ type V1EcrRegistrySpec struct { // OCI ecr registry content base path BaseContentPath string `json:"baseContentPath,omitempty"` + // contains spectro manifest + ContainsSpectroManifest bool `json:"containsSpectroManifest"` + // credentials Credentials *V1AwsCloudAccount `json:"credentials,omitempty"` @@ -36,6 +39,9 @@ type V1EcrRegistrySpec struct { // Required: true IsPrivate *bool `json:"isPrivate"` + // is sync supported + IsSyncSupported bool `json:"isSyncSupported,omitempty"` + // provider type // Enum: [helm pack] ProviderType *string `json:"providerType,omitempty"` diff --git a/api/models/v1_edge_native_control_plane_end_point.go b/api/models/v1_edge_native_control_plane_end_point.go index 83d5a321..d1ee2723 100644 --- a/api/models/v1_edge_native_control_plane_end_point.go +++ b/api/models/v1_edge_native_control_plane_end_point.go @@ -6,8 +6,12 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" + + "github.com/go-openapi/errors" "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" + "github.com/go-openapi/validate" ) // V1EdgeNativeControlPlaneEndPoint v1 edge native control plane end point @@ -22,11 +26,70 @@ type V1EdgeNativeControlPlaneEndPoint struct { Host string `json:"host,omitempty"` // Type indicates DDNS or VIP + // Enum: [VIP External DDNS IP] Type string `json:"type,omitempty"` } // Validate validates this v1 edge native control plane end point func (m *V1EdgeNativeControlPlaneEndPoint) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateType(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +var v1EdgeNativeControlPlaneEndPointTypeTypePropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["VIP","External","DDNS","IP"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + v1EdgeNativeControlPlaneEndPointTypeTypePropEnum = append(v1EdgeNativeControlPlaneEndPointTypeTypePropEnum, v) + } +} + +const ( + + // V1EdgeNativeControlPlaneEndPointTypeVIP captures enum value "VIP" + V1EdgeNativeControlPlaneEndPointTypeVIP string = "VIP" + + // V1EdgeNativeControlPlaneEndPointTypeExternal captures enum value "External" + V1EdgeNativeControlPlaneEndPointTypeExternal string = "External" + + // V1EdgeNativeControlPlaneEndPointTypeDDNS captures enum value "DDNS" + V1EdgeNativeControlPlaneEndPointTypeDDNS string = "DDNS" + + // V1EdgeNativeControlPlaneEndPointTypeIP captures enum value "IP" + V1EdgeNativeControlPlaneEndPointTypeIP string = "IP" +) + +// prop value enum +func (m *V1EdgeNativeControlPlaneEndPoint) validateTypeEnum(path, location string, value string) error { + if err := validate.EnumCase(path, location, value, v1EdgeNativeControlPlaneEndPointTypeTypePropEnum, true); err != nil { + return err + } + return nil +} + +func (m *V1EdgeNativeControlPlaneEndPoint) validateType(formats strfmt.Registry) error { + + if swag.IsZero(m.Type) { // not required + return nil + } + + // value enum + if err := m.validateTypeEnum("type", "body", m.Type); err != nil { + return err + } + return nil } diff --git a/api/models/v1_edge_native_hybrid_cluster_config.go b/api/models/v1_edge_native_hybrid_cluster_config.go new file mode 100644 index 00000000..279b0dc9 --- /dev/null +++ b/api/models/v1_edge_native_hybrid_cluster_config.go @@ -0,0 +1,77 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// V1EdgeNativeHybridClusterConfig EdgeNativeHybridClusterConfig defines Edge Native Cluster specific specification +// +// swagger:model v1EdgeNativeHybridClusterConfig +type V1EdgeNativeHybridClusterConfig struct { + + // ControlPlaneEndpoint is the control plane endpoint, which can be an IP or FQDN + ControlPlaneEndpoint *V1EdgeNativeControlPlaneEndPoint `json:"controlPlaneEndpoint,omitempty"` + + // NTPServers is a list of NTP servers to use instead of the machine image's default NTP server list + NtpServers []string `json:"ntpServers"` + + // SSHKeys specifies a list of ssh authorized keys to access the vms as a 'spectro' user + SSHKeys []string `json:"sshKeys"` +} + +// Validate validates this v1 edge native hybrid cluster config +func (m *V1EdgeNativeHybridClusterConfig) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateControlPlaneEndpoint(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *V1EdgeNativeHybridClusterConfig) validateControlPlaneEndpoint(formats strfmt.Registry) error { + + if swag.IsZero(m.ControlPlaneEndpoint) { // not required + return nil + } + + if m.ControlPlaneEndpoint != nil { + if err := m.ControlPlaneEndpoint.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("controlPlaneEndpoint") + } + return err + } + } + + return nil +} + +// MarshalBinary interface implementation +func (m *V1EdgeNativeHybridClusterConfig) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *V1EdgeNativeHybridClusterConfig) UnmarshalBinary(b []byte) error { + var res V1EdgeNativeHybridClusterConfig + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/api/models/v1_edge_native_hybrid_config_entity.go b/api/models/v1_edge_native_hybrid_config_entity.go new file mode 100644 index 00000000..771a83ff --- /dev/null +++ b/api/models/v1_edge_native_hybrid_config_entity.go @@ -0,0 +1,130 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "strconv" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// V1EdgeNativeHybridConfigEntity EdgeNativeHybridMachineConfigEntity defines Edge Native machine configuration +// +// swagger:model v1EdgeNativeHybridConfigEntity +type V1EdgeNativeHybridConfigEntity struct { + + // Edge-Native cluster configurations + ClusterConfig *V1EdgeNativeHybridClusterConfig `json:"clusterConfig,omitempty"` + + // Edge-Native machine cluster configurations + MachineCloudConfig *V1EdgeNativeHybridMachineConfigEntity `json:"machineCloudConfig,omitempty"` + + // Cluster profile templates for edge-native machine pool + Profiles []*V1SpectroClusterProfileEntity `json:"profiles"` +} + +// Validate validates this v1 edge native hybrid config entity +func (m *V1EdgeNativeHybridConfigEntity) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateClusterConfig(formats); err != nil { + res = append(res, err) + } + + if err := m.validateMachineCloudConfig(formats); err != nil { + res = append(res, err) + } + + if err := m.validateProfiles(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *V1EdgeNativeHybridConfigEntity) validateClusterConfig(formats strfmt.Registry) error { + + if swag.IsZero(m.ClusterConfig) { // not required + return nil + } + + if m.ClusterConfig != nil { + if err := m.ClusterConfig.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("clusterConfig") + } + return err + } + } + + return nil +} + +func (m *V1EdgeNativeHybridConfigEntity) validateMachineCloudConfig(formats strfmt.Registry) error { + + if swag.IsZero(m.MachineCloudConfig) { // not required + return nil + } + + if m.MachineCloudConfig != nil { + if err := m.MachineCloudConfig.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("machineCloudConfig") + } + return err + } + } + + return nil +} + +func (m *V1EdgeNativeHybridConfigEntity) validateProfiles(formats strfmt.Registry) error { + + if swag.IsZero(m.Profiles) { // not required + return nil + } + + for i := 0; i < len(m.Profiles); i++ { + if swag.IsZero(m.Profiles[i]) { // not required + continue + } + + if m.Profiles[i] != nil { + if err := m.Profiles[i].Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("profiles" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// MarshalBinary interface implementation +func (m *V1EdgeNativeHybridConfigEntity) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *V1EdgeNativeHybridConfigEntity) UnmarshalBinary(b []byte) error { + var res V1EdgeNativeHybridConfigEntity + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/api/models/v1_edge_native_hybrid_machine_config_entity.go b/api/models/v1_edge_native_hybrid_machine_config_entity.go new file mode 100644 index 00000000..67b9de08 --- /dev/null +++ b/api/models/v1_edge_native_hybrid_machine_config_entity.go @@ -0,0 +1,102 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "strconv" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" + "github.com/go-openapi/validate" +) + +// V1EdgeNativeHybridMachineConfigEntity EdgeNativeHybridMachineConfigEntity defines Edge Native machine configuration +// +// swagger:model v1EdgeNativeHybridMachineConfigEntity +type V1EdgeNativeHybridMachineConfigEntity struct { + + // Architecture type of the edge hosts + // Required: true + ArchType V1ArchType `json:"archType"` + + // Edge hosts configurations + // Required: true + EdgeHosts []*V1EdgeNativeHybridMachinePoolHost `json:"edgeHosts"` +} + +// Validate validates this v1 edge native hybrid machine config entity +func (m *V1EdgeNativeHybridMachineConfigEntity) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateArchType(formats); err != nil { + res = append(res, err) + } + + if err := m.validateEdgeHosts(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *V1EdgeNativeHybridMachineConfigEntity) validateArchType(formats strfmt.Registry) error { + + if err := m.ArchType.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("archType") + } + return err + } + + return nil +} + +func (m *V1EdgeNativeHybridMachineConfigEntity) validateEdgeHosts(formats strfmt.Registry) error { + + if err := validate.Required("edgeHosts", "body", m.EdgeHosts); err != nil { + return err + } + + for i := 0; i < len(m.EdgeHosts); i++ { + if swag.IsZero(m.EdgeHosts[i]) { // not required + continue + } + + if m.EdgeHosts[i] != nil { + if err := m.EdgeHosts[i].Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("edgeHosts" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// MarshalBinary interface implementation +func (m *V1EdgeNativeHybridMachineConfigEntity) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *V1EdgeNativeHybridMachineConfigEntity) UnmarshalBinary(b []byte) error { + var res V1EdgeNativeHybridMachineConfigEntity + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/api/models/v1_edge_native_hybrid_machine_pool_host.go b/api/models/v1_edge_native_hybrid_machine_pool_host.go new file mode 100644 index 00000000..ea97cf12 --- /dev/null +++ b/api/models/v1_edge_native_hybrid_machine_pool_host.go @@ -0,0 +1,148 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "encoding/json" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" + "github.com/go-openapi/validate" +) + +// V1EdgeNativeHybridMachinePoolHost v1EdgeNativeHybridMachinePoolHostEntity defines Edge Native machine pool's host configuration +// +// swagger:model v1EdgeNativeHybridMachinePoolHost +type V1EdgeNativeHybridMachinePoolHost struct { + + // Edge host name + HostName string `json:"hostName,omitempty"` + + // Edge host id + // Required: true + HostUID *string `json:"hostUid"` + + // Edge native nic + Nic *V1Nic `json:"nic,omitempty"` + + // Set the Edge Host candidate priority as primary or secondary, if the Edge Host is nominated as two node candidate + // Enum: [primary secondary] + TwoNodeCandidatePriority string `json:"twoNodeCandidatePriority,omitempty"` + + // Vpn server IP + VpnServerIP string `json:"vpnServerIp,omitempty"` +} + +// Validate validates this v1 edge native hybrid machine pool host +func (m *V1EdgeNativeHybridMachinePoolHost) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateHostUID(formats); err != nil { + res = append(res, err) + } + + if err := m.validateNic(formats); err != nil { + res = append(res, err) + } + + if err := m.validateTwoNodeCandidatePriority(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *V1EdgeNativeHybridMachinePoolHost) validateHostUID(formats strfmt.Registry) error { + + if err := validate.Required("hostUid", "body", m.HostUID); err != nil { + return err + } + + return nil +} + +func (m *V1EdgeNativeHybridMachinePoolHost) validateNic(formats strfmt.Registry) error { + + if swag.IsZero(m.Nic) { // not required + return nil + } + + if m.Nic != nil { + if err := m.Nic.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("nic") + } + return err + } + } + + return nil +} + +var v1EdgeNativeHybridMachinePoolHostTypeTwoNodeCandidatePriorityPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["primary","secondary"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + v1EdgeNativeHybridMachinePoolHostTypeTwoNodeCandidatePriorityPropEnum = append(v1EdgeNativeHybridMachinePoolHostTypeTwoNodeCandidatePriorityPropEnum, v) + } +} + +const ( + + // V1EdgeNativeHybridMachinePoolHostTwoNodeCandidatePriorityPrimary captures enum value "primary" + V1EdgeNativeHybridMachinePoolHostTwoNodeCandidatePriorityPrimary string = "primary" + + // V1EdgeNativeHybridMachinePoolHostTwoNodeCandidatePrioritySecondary captures enum value "secondary" + V1EdgeNativeHybridMachinePoolHostTwoNodeCandidatePrioritySecondary string = "secondary" +) + +// prop value enum +func (m *V1EdgeNativeHybridMachinePoolHost) validateTwoNodeCandidatePriorityEnum(path, location string, value string) error { + if err := validate.EnumCase(path, location, value, v1EdgeNativeHybridMachinePoolHostTypeTwoNodeCandidatePriorityPropEnum, true); err != nil { + return err + } + return nil +} + +func (m *V1EdgeNativeHybridMachinePoolHost) validateTwoNodeCandidatePriority(formats strfmt.Registry) error { + + if swag.IsZero(m.TwoNodeCandidatePriority) { // not required + return nil + } + + // value enum + if err := m.validateTwoNodeCandidatePriorityEnum("twoNodeCandidatePriority", "body", m.TwoNodeCandidatePriority); err != nil { + return err + } + + return nil +} + +// MarshalBinary interface implementation +func (m *V1EdgeNativeHybridMachinePoolHost) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *V1EdgeNativeHybridMachinePoolHost) UnmarshalBinary(b []byte) error { + var res V1EdgeNativeHybridMachinePoolHost + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/api/models/v1_eks_hybrid_machine_pool.go b/api/models/v1_eks_hybrid_machine_pool.go new file mode 100644 index 00000000..f604f82c --- /dev/null +++ b/api/models/v1_eks_hybrid_machine_pool.go @@ -0,0 +1,75 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// V1EksHybridMachinePool Machine pool reference of cloud config of cluster deployed by hybrid EKS cluster +// +// swagger:model v1EksHybridMachinePool +type V1EksHybridMachinePool struct { + + // pool cloud type + PoolCloudType V1HybridPoolClusterCloudType `json:"poolCloudType,omitempty"` + + // Machine pool name + PoolName string `json:"poolName,omitempty"` + + // Machine pool uid + PoolUID string `json:"poolUid,omitempty"` +} + +// Validate validates this v1 eks hybrid machine pool +func (m *V1EksHybridMachinePool) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validatePoolCloudType(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *V1EksHybridMachinePool) validatePoolCloudType(formats strfmt.Registry) error { + + if swag.IsZero(m.PoolCloudType) { // not required + return nil + } + + if err := m.PoolCloudType.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("poolCloudType") + } + return err + } + + return nil +} + +// MarshalBinary interface implementation +func (m *V1EksHybridMachinePool) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *V1EksHybridMachinePool) UnmarshalBinary(b []byte) error { + var res V1EksHybridMachinePool + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/api/models/v1_hybrid_cluster.go b/api/models/v1_hybrid_cluster.go new file mode 100644 index 00000000..600cd5f5 --- /dev/null +++ b/api/models/v1_hybrid_cluster.go @@ -0,0 +1,49 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// V1HybridCluster v1 hybrid cluster +// +// swagger:model v1HybridCluster +type V1HybridCluster struct { + + // Cloud config uid + CloudConfigUID string `json:"cloudConfigUid,omitempty"` + + // Cluster name + Name string `json:"name,omitempty"` + + // Cluster uid + UID string `json:"uid,omitempty"` +} + +// Validate validates this v1 hybrid cluster +func (m *V1HybridCluster) Validate(formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *V1HybridCluster) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *V1HybridCluster) UnmarshalBinary(b []byte) error { + var res V1HybridCluster + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/api/models/v1_hybrid_cluster_config.go b/api/models/v1_hybrid_cluster_config.go new file mode 100644 index 00000000..b8d5f438 --- /dev/null +++ b/api/models/v1_hybrid_cluster_config.go @@ -0,0 +1,86 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "strconv" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// V1HybridClusterConfig v1 hybrid cluster config +// +// swagger:model v1HybridClusterConfig +type V1HybridClusterConfig struct { + + // Parent cluster uid. Provided for hybrid (child) clusters only. + ClusterUID string `json:"clusterUid,omitempty"` + + // Flag differentiating if the cluster is an hybrid cluster or not. True for a cluster with hybrid mode enabled, false for the actual hybrid (child) clusters + Enable bool `json:"enable,omitempty"` + + // References to hybrid (child) clusters deployed within the hybrid cluster + HybridMachinePoolClusterRefs []*V1HybridPoolClusterRef `json:"hybridMachinePoolClusterRefs"` +} + +// Validate validates this v1 hybrid cluster config +func (m *V1HybridClusterConfig) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateHybridMachinePoolClusterRefs(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *V1HybridClusterConfig) validateHybridMachinePoolClusterRefs(formats strfmt.Registry) error { + + if swag.IsZero(m.HybridMachinePoolClusterRefs) { // not required + return nil + } + + for i := 0; i < len(m.HybridMachinePoolClusterRefs); i++ { + if swag.IsZero(m.HybridMachinePoolClusterRefs[i]) { // not required + continue + } + + if m.HybridMachinePoolClusterRefs[i] != nil { + if err := m.HybridMachinePoolClusterRefs[i].Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("hybridMachinePoolClusterRefs" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// MarshalBinary interface implementation +func (m *V1HybridClusterConfig) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *V1HybridClusterConfig) UnmarshalBinary(b []byte) error { + var res V1HybridClusterConfig + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/api/models/v1_hybrid_edge_native_cluster_config_entity.go b/api/models/v1_hybrid_edge_native_cluster_config_entity.go new file mode 100644 index 00000000..2c6527ec --- /dev/null +++ b/api/models/v1_hybrid_edge_native_cluster_config_entity.go @@ -0,0 +1,71 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// V1HybridEdgeNativeClusterConfigEntity Hybrid Edge-Native cluster's configuration request payload +// +// swagger:model v1HybridEdgeNativeClusterConfigEntity +type V1HybridEdgeNativeClusterConfigEntity struct { + + // cluster config + ClusterConfig *V1EdgeNativeHybridClusterConfig `json:"clusterConfig,omitempty"` +} + +// Validate validates this v1 hybrid edge native cluster config entity +func (m *V1HybridEdgeNativeClusterConfigEntity) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateClusterConfig(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *V1HybridEdgeNativeClusterConfigEntity) validateClusterConfig(formats strfmt.Registry) error { + + if swag.IsZero(m.ClusterConfig) { // not required + return nil + } + + if m.ClusterConfig != nil { + if err := m.ClusterConfig.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("clusterConfig") + } + return err + } + } + + return nil +} + +// MarshalBinary interface implementation +func (m *V1HybridEdgeNativeClusterConfigEntity) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *V1HybridEdgeNativeClusterConfigEntity) UnmarshalBinary(b []byte) error { + var res V1HybridEdgeNativeClusterConfigEntity + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/api/models/v1_hybrid_edge_native_machine_cloud_config.go b/api/models/v1_hybrid_edge_native_machine_cloud_config.go new file mode 100644 index 00000000..b977abbe --- /dev/null +++ b/api/models/v1_hybrid_edge_native_machine_cloud_config.go @@ -0,0 +1,127 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "strconv" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" + "github.com/go-openapi/validate" +) + +// V1HybridEdgeNativeMachineCloudConfig HybridEdgeNativeMachineCloudConfig defines hybrid Edge-Native cluster's machine configurations +// +// swagger:model v1HybridEdgeNativeMachineCloudConfig +type V1HybridEdgeNativeMachineCloudConfig struct { + + // Architecture type of the edge hosts + // Required: true + ArchType V1ArchType `json:"archType"` + + // Edge host's configuration + // Required: true + EdgeHosts []*V1EdgeNativeHybridMachinePoolHost `json:"edgeHosts"` + + // Hybrid cluster reference + HybridCluster *V1HybridCluster `json:"hybridCluster,omitempty"` +} + +// Validate validates this v1 hybrid edge native machine cloud config +func (m *V1HybridEdgeNativeMachineCloudConfig) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateArchType(formats); err != nil { + res = append(res, err) + } + + if err := m.validateEdgeHosts(formats); err != nil { + res = append(res, err) + } + + if err := m.validateHybridCluster(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *V1HybridEdgeNativeMachineCloudConfig) validateArchType(formats strfmt.Registry) error { + + if err := m.ArchType.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("archType") + } + return err + } + + return nil +} + +func (m *V1HybridEdgeNativeMachineCloudConfig) validateEdgeHosts(formats strfmt.Registry) error { + + if err := validate.Required("edgeHosts", "body", m.EdgeHosts); err != nil { + return err + } + + for i := 0; i < len(m.EdgeHosts); i++ { + if swag.IsZero(m.EdgeHosts[i]) { // not required + continue + } + + if m.EdgeHosts[i] != nil { + if err := m.EdgeHosts[i].Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("edgeHosts" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +func (m *V1HybridEdgeNativeMachineCloudConfig) validateHybridCluster(formats strfmt.Registry) error { + + if swag.IsZero(m.HybridCluster) { // not required + return nil + } + + if m.HybridCluster != nil { + if err := m.HybridCluster.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("hybridCluster") + } + return err + } + } + + return nil +} + +// MarshalBinary interface implementation +func (m *V1HybridEdgeNativeMachineCloudConfig) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *V1HybridEdgeNativeMachineCloudConfig) UnmarshalBinary(b []byte) error { + var res V1HybridEdgeNativeMachineCloudConfig + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/api/models/v1_hybrid_edge_native_machine_pool_config.go b/api/models/v1_hybrid_edge_native_machine_pool_config.go new file mode 100644 index 00000000..00fbf17d --- /dev/null +++ b/api/models/v1_hybrid_edge_native_machine_pool_config.go @@ -0,0 +1,96 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// V1HybridEdgeNativeMachinePoolConfig HybridEdgeNativeMachinePoolConfig defines hybrid Edge-Native cluster's machine-pool configurations +// +// swagger:model v1HybridEdgeNativeMachinePoolConfig +type V1HybridEdgeNativeMachinePoolConfig struct { + + // cloud config + CloudConfig *V1HybridEdgeNativeMachineCloudConfig `json:"cloudConfig,omitempty"` + + // pool config + PoolConfig *V1MachinePoolConfigEntity `json:"poolConfig,omitempty"` +} + +// Validate validates this v1 hybrid edge native machine pool config +func (m *V1HybridEdgeNativeMachinePoolConfig) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateCloudConfig(formats); err != nil { + res = append(res, err) + } + + if err := m.validatePoolConfig(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *V1HybridEdgeNativeMachinePoolConfig) validateCloudConfig(formats strfmt.Registry) error { + + if swag.IsZero(m.CloudConfig) { // not required + return nil + } + + if m.CloudConfig != nil { + if err := m.CloudConfig.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("cloudConfig") + } + return err + } + } + + return nil +} + +func (m *V1HybridEdgeNativeMachinePoolConfig) validatePoolConfig(formats strfmt.Registry) error { + + if swag.IsZero(m.PoolConfig) { // not required + return nil + } + + if m.PoolConfig != nil { + if err := m.PoolConfig.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("poolConfig") + } + return err + } + } + + return nil +} + +// MarshalBinary interface implementation +func (m *V1HybridEdgeNativeMachinePoolConfig) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *V1HybridEdgeNativeMachinePoolConfig) UnmarshalBinary(b []byte) error { + var res V1HybridEdgeNativeMachinePoolConfig + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/api/models/v1_hybrid_edge_native_machine_pool_config_entity.go b/api/models/v1_hybrid_edge_native_machine_pool_config_entity.go new file mode 100644 index 00000000..bf86c27c --- /dev/null +++ b/api/models/v1_hybrid_edge_native_machine_pool_config_entity.go @@ -0,0 +1,96 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// V1HybridEdgeNativeMachinePoolConfigEntity Hybrid Edge-Native cluster's machine-pool configuration request payload +// +// swagger:model v1HybridEdgeNativeMachinePoolConfigEntity +type V1HybridEdgeNativeMachinePoolConfigEntity struct { + + // cloud config + CloudConfig *V1EdgeNativeHybridConfigEntity `json:"cloudConfig,omitempty"` + + // pool config + PoolConfig *V1MachinePoolConfigEntity `json:"poolConfig,omitempty"` +} + +// Validate validates this v1 hybrid edge native machine pool config entity +func (m *V1HybridEdgeNativeMachinePoolConfigEntity) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateCloudConfig(formats); err != nil { + res = append(res, err) + } + + if err := m.validatePoolConfig(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *V1HybridEdgeNativeMachinePoolConfigEntity) validateCloudConfig(formats strfmt.Registry) error { + + if swag.IsZero(m.CloudConfig) { // not required + return nil + } + + if m.CloudConfig != nil { + if err := m.CloudConfig.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("cloudConfig") + } + return err + } + } + + return nil +} + +func (m *V1HybridEdgeNativeMachinePoolConfigEntity) validatePoolConfig(formats strfmt.Registry) error { + + if swag.IsZero(m.PoolConfig) { // not required + return nil + } + + if m.PoolConfig != nil { + if err := m.PoolConfig.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("poolConfig") + } + return err + } + } + + return nil +} + +// MarshalBinary interface implementation +func (m *V1HybridEdgeNativeMachinePoolConfigEntity) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *V1HybridEdgeNativeMachinePoolConfigEntity) UnmarshalBinary(b []byte) error { + var res V1HybridEdgeNativeMachinePoolConfigEntity + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/api/models/v1_hybrid_edge_native_machine_pool_config_update_entity.go b/api/models/v1_hybrid_edge_native_machine_pool_config_update_entity.go new file mode 100644 index 00000000..5bb8d4e5 --- /dev/null +++ b/api/models/v1_hybrid_edge_native_machine_pool_config_update_entity.go @@ -0,0 +1,96 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// V1HybridEdgeNativeMachinePoolConfigUpdateEntity Hybrid Edge-Native cluster's machine-pool configuration update request payload +// +// swagger:model v1HybridEdgeNativeMachinePoolConfigUpdateEntity +type V1HybridEdgeNativeMachinePoolConfigUpdateEntity struct { + + // cloud config + CloudConfig *V1EdgeNativeHybridMachineConfigEntity `json:"cloudConfig,omitempty"` + + // pool config + PoolConfig *V1MachinePoolConfigEntity `json:"poolConfig,omitempty"` +} + +// Validate validates this v1 hybrid edge native machine pool config update entity +func (m *V1HybridEdgeNativeMachinePoolConfigUpdateEntity) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateCloudConfig(formats); err != nil { + res = append(res, err) + } + + if err := m.validatePoolConfig(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *V1HybridEdgeNativeMachinePoolConfigUpdateEntity) validateCloudConfig(formats strfmt.Registry) error { + + if swag.IsZero(m.CloudConfig) { // not required + return nil + } + + if m.CloudConfig != nil { + if err := m.CloudConfig.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("cloudConfig") + } + return err + } + } + + return nil +} + +func (m *V1HybridEdgeNativeMachinePoolConfigUpdateEntity) validatePoolConfig(formats strfmt.Registry) error { + + if swag.IsZero(m.PoolConfig) { // not required + return nil + } + + if m.PoolConfig != nil { + if err := m.PoolConfig.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("poolConfig") + } + return err + } + } + + return nil +} + +// MarshalBinary interface implementation +func (m *V1HybridEdgeNativeMachinePoolConfigUpdateEntity) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *V1HybridEdgeNativeMachinePoolConfigUpdateEntity) UnmarshalBinary(b []byte) error { + var res V1HybridEdgeNativeMachinePoolConfigUpdateEntity + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/api/models/v1_hybrid_pool_cluster_cloud_type.go b/api/models/v1_hybrid_pool_cluster_cloud_type.go new file mode 100644 index 00000000..1ca094e8 --- /dev/null +++ b/api/models/v1_hybrid_pool_cluster_cloud_type.go @@ -0,0 +1,60 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "encoding/json" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/validate" +) + +// V1HybridPoolClusterCloudType Flag to indicate whether the pool is deployed in any cloud or an edge environment +// +// swagger:model v1HybridPoolClusterCloudType +type V1HybridPoolClusterCloudType string + +const ( + + // V1HybridPoolClusterCloudTypeEdgeNative captures enum value "edge-native" + V1HybridPoolClusterCloudTypeEdgeNative V1HybridPoolClusterCloudType = "edge-native" +) + +// for schema +var v1HybridPoolClusterCloudTypeEnum []interface{} + +func init() { + var res []V1HybridPoolClusterCloudType + if err := json.Unmarshal([]byte(`["edge-native"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + v1HybridPoolClusterCloudTypeEnum = append(v1HybridPoolClusterCloudTypeEnum, v) + } +} + +func (m V1HybridPoolClusterCloudType) validateV1HybridPoolClusterCloudTypeEnum(path, location string, value V1HybridPoolClusterCloudType) error { + if err := validate.EnumCase(path, location, value, v1HybridPoolClusterCloudTypeEnum, true); err != nil { + return err + } + return nil +} + +// Validate validates this v1 hybrid pool cluster cloud type +func (m V1HybridPoolClusterCloudType) Validate(formats strfmt.Registry) error { + var res []error + + // value enum + if err := m.validateV1HybridPoolClusterCloudTypeEnum("", "body", m); err != nil { + return err + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/models/v1_hybrid_pool_cluster_ref.go b/api/models/v1_hybrid_pool_cluster_ref.go new file mode 100644 index 00000000..1115c633 --- /dev/null +++ b/api/models/v1_hybrid_pool_cluster_ref.go @@ -0,0 +1,72 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// V1HybridPoolClusterRef v1 hybrid pool cluster ref +// +// swagger:model v1HybridPoolClusterRef +type V1HybridPoolClusterRef struct { + + // cloud type + CloudType V1HybridPoolClusterCloudType `json:"cloudType,omitempty"` + + // Cluster uid + UID string `json:"uid,omitempty"` +} + +// Validate validates this v1 hybrid pool cluster ref +func (m *V1HybridPoolClusterRef) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateCloudType(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *V1HybridPoolClusterRef) validateCloudType(formats strfmt.Registry) error { + + if swag.IsZero(m.CloudType) { // not required + return nil + } + + if err := m.CloudType.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("cloudType") + } + return err + } + + return nil +} + +// MarshalBinary interface implementation +func (m *V1HybridPoolClusterRef) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *V1HybridPoolClusterRef) UnmarshalBinary(b []byte) error { + var res V1HybridPoolClusterRef + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/api/models/v1_iam_roles_anywhere.go b/api/models/v1_iam_roles_anywhere.go new file mode 100644 index 00000000..cc2ca854 --- /dev/null +++ b/api/models/v1_iam_roles_anywhere.go @@ -0,0 +1,58 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// V1IamRolesAnywhere IamRolesAnywhere specifies the IAM Roles Anywhere configuration for the AWS/EKS cluster +// +// swagger:model v1IamRolesAnywhere +type V1IamRolesAnywhere struct { + + // AssumeRoleARN specifies the IAM role ARN to assume + AssumeRoleArn string `json:"assumeRoleArn,omitempty"` + + // ProfileARN specifies the IAM profile ARN + ProfileArn string `json:"profileArn,omitempty"` + + // RoleARN specifies the IAM role ARN to use + RoleArn string `json:"roleArn,omitempty"` + + // RootCACertificate specifies the root CA certificate + RootCaCertificate string `json:"rootCaCertificate,omitempty"` + + // RootCAPrivateKey specifies the root CA private key + RootCaPrivateKey string `json:"rootCaPrivateKey,omitempty"` + + // TrustAnchorARN specifies the trust anchor ARN + TrustAnchorArn string `json:"trustAnchorArn,omitempty"` +} + +// Validate validates this v1 iam roles anywhere +func (m *V1IamRolesAnywhere) Validate(formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *V1IamRolesAnywhere) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *V1IamRolesAnywhere) UnmarshalBinary(b []byte) error { + var res V1IamRolesAnywhere + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/api/models/v1_k8_machine_certificate.go b/api/models/v1_k8_machine_certificate.go new file mode 100644 index 00000000..b76e1298 --- /dev/null +++ b/api/models/v1_k8_machine_certificate.go @@ -0,0 +1,83 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "strconv" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// V1K8MachineCertificate K8 Certificates for control plane nodes +// +// swagger:model v1K8MachineCertificate +type V1K8MachineCertificate struct { + + // Applicable certificate authorities + CertificateAuthorities []*V1k8CertificateAuthority `json:"certificateAuthorities"` + + // name + Name string `json:"name,omitempty"` +} + +// Validate validates this v1 k8 machine certificate +func (m *V1K8MachineCertificate) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateCertificateAuthorities(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *V1K8MachineCertificate) validateCertificateAuthorities(formats strfmt.Registry) error { + + if swag.IsZero(m.CertificateAuthorities) { // not required + return nil + } + + for i := 0; i < len(m.CertificateAuthorities); i++ { + if swag.IsZero(m.CertificateAuthorities[i]) { // not required + continue + } + + if m.CertificateAuthorities[i] != nil { + if err := m.CertificateAuthorities[i].Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("certificateAuthorities" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// MarshalBinary interface implementation +func (m *V1K8MachineCertificate) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *V1K8MachineCertificate) UnmarshalBinary(b []byte) error { + var res V1K8MachineCertificate + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/api/models/v1_oci_registry_spec.go b/api/models/v1_oci_registry_spec.go index 55a76ff0..529155d7 100644 --- a/api/models/v1_oci_registry_spec.go +++ b/api/models/v1_oci_registry_spec.go @@ -15,6 +15,9 @@ import ( // swagger:model v1OciRegistrySpec type V1OciRegistrySpec struct { + // contains spectro manifest + ContainsSpectroManifest bool `json:"containsSpectroManifest"` + // default region DefaultRegion string `json:"defaultRegion,omitempty"` diff --git a/api/models/v1_oci_registry_status.go b/api/models/v1_oci_registry_status.go new file mode 100644 index 00000000..e8a80e02 --- /dev/null +++ b/api/models/v1_oci_registry_status.go @@ -0,0 +1,71 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// V1OciRegistryStatus Status of the oci registry +// +// swagger:model v1OciRegistryStatus +type V1OciRegistryStatus struct { + + // sync status + SyncStatus *V1RegistrySyncStatus `json:"syncStatus,omitempty"` +} + +// Validate validates this v1 oci registry status +func (m *V1OciRegistryStatus) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateSyncStatus(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *V1OciRegistryStatus) validateSyncStatus(formats strfmt.Registry) error { + + if swag.IsZero(m.SyncStatus) { // not required + return nil + } + + if m.SyncStatus != nil { + if err := m.SyncStatus.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("syncStatus") + } + return err + } + } + + return nil +} + +// MarshalBinary interface implementation +func (m *V1OciRegistryStatus) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *V1OciRegistryStatus) UnmarshalBinary(b []byte) error { + var res V1OciRegistryStatus + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/api/models/v1_oidc_user_info.go b/api/models/v1_oidc_user_info.go new file mode 100644 index 00000000..46b50340 --- /dev/null +++ b/api/models/v1_oidc_user_info.go @@ -0,0 +1,74 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// V1OidcUserInfo v1 oidc user info +// +// swagger:model v1OidcUserInfo +type V1OidcUserInfo struct { + + // claims + Claims *V1TenantOidcClaims `json:"claims,omitempty"` + + // use user info + UseUserInfo *bool `json:"useUserInfo"` +} + +// Validate validates this v1 oidc user info +func (m *V1OidcUserInfo) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateClaims(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *V1OidcUserInfo) validateClaims(formats strfmt.Registry) error { + + if swag.IsZero(m.Claims) { // not required + return nil + } + + if m.Claims != nil { + if err := m.Claims.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("claims") + } + return err + } + } + + return nil +} + +// MarshalBinary interface implementation +func (m *V1OidcUserInfo) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *V1OidcUserInfo) UnmarshalBinary(b []byte) error { + var res V1OidcUserInfo + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/api/models/v1_pack_registry_metadata.go b/api/models/v1_pack_registry_metadata.go index d79c3668..b9ea0519 100644 --- a/api/models/v1_pack_registry_metadata.go +++ b/api/models/v1_pack_registry_metadata.go @@ -15,9 +15,12 @@ import ( // swagger:model v1PackRegistryMetadata type V1PackRegistryMetadata struct { - // If true then pack registry is private and is not accessible for the pack sync + // If true then helm registry is private and is not accessible for the content sync IsPrivate bool `json:"isPrivate"` + // If true the registry sync is supported + IsSyncSupported bool `json:"isSyncSupported"` + // Pack registry kind [ "pack", "helm", "oci" ] Kind string `json:"kind,omitempty"` diff --git a/api/models/v1_registry_sync_status.go b/api/models/v1_registry_sync_status.go index 095ff980..ca6ef85d 100644 --- a/api/models/v1_registry_sync_status.go +++ b/api/models/v1_registry_sync_status.go @@ -16,6 +16,9 @@ import ( // swagger:model v1RegistrySyncStatus type V1RegistrySyncStatus struct { + // is sync supported + IsSyncSupported bool `json:"isSyncSupported"` + // last run time // Format: date-time LastRunTime V1Time `json:"lastRunTime,omitempty"` diff --git a/api/models/v1_spectro_cluster_asset_entity.go b/api/models/v1_spectro_cluster_asset_entity.go index 5c267d09..7832fa31 100644 --- a/api/models/v1_spectro_cluster_asset_entity.go +++ b/api/models/v1_spectro_cluster_asset_entity.go @@ -86,6 +86,9 @@ type V1SpectroClusterAssetEntitySpec struct { // manifest Manifest string `json:"manifest,omitempty"` + + // tokenkubeconfig + Tokenkubeconfig string `json:"tokenkubeconfig,omitempty"` } // Validate validates this v1 spectro cluster asset entity spec diff --git a/api/models/v1_spectro_cluster_asset_token_kube_config.go b/api/models/v1_spectro_cluster_asset_token_kube_config.go new file mode 100644 index 00000000..14f14e32 --- /dev/null +++ b/api/models/v1_spectro_cluster_asset_token_kube_config.go @@ -0,0 +1,43 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// V1SpectroClusterAssetTokenKubeConfig Cluster asset admin token Kube Config +// +// swagger:model v1SpectroClusterAssetTokenKubeConfig +type V1SpectroClusterAssetTokenKubeConfig struct { + + // tokenkubeconfig + Tokenkubeconfig string `json:"tokenkubeconfig,omitempty"` +} + +// Validate validates this v1 spectro cluster asset token kube config +func (m *V1SpectroClusterAssetTokenKubeConfig) Validate(formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *V1SpectroClusterAssetTokenKubeConfig) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *V1SpectroClusterAssetTokenKubeConfig) UnmarshalBinary(b []byte) error { + var res V1SpectroClusterAssetTokenKubeConfig + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/api/models/v1_spectro_cluster_heartbeat.go b/api/models/v1_spectro_cluster_heartbeat.go new file mode 100644 index 00000000..bbe4a1ca --- /dev/null +++ b/api/models/v1_spectro_cluster_heartbeat.go @@ -0,0 +1,67 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" + "github.com/go-openapi/validate" +) + +// V1SpectroClusterHeartbeat Cluster heartbeat message +// +// swagger:model v1SpectroClusterHeartbeat +type V1SpectroClusterHeartbeat struct { + + // Version of the agent + // Required: true + AgentVersion *string `json:"agentVersion"` + + // Heartbeat message + Message string `json:"message,omitempty"` +} + +// Validate validates this v1 spectro cluster heartbeat +func (m *V1SpectroClusterHeartbeat) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateAgentVersion(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *V1SpectroClusterHeartbeat) validateAgentVersion(formats strfmt.Registry) error { + + if err := validate.Required("agentVersion", "body", m.AgentVersion); err != nil { + return err + } + + return nil +} + +// MarshalBinary interface implementation +func (m *V1SpectroClusterHeartbeat) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *V1SpectroClusterHeartbeat) UnmarshalBinary(b []byte) error { + var res V1SpectroClusterHeartbeat + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/api/models/v1_spectro_cluster_k8s_certificate.go b/api/models/v1_spectro_cluster_k8s_certificate.go new file mode 100644 index 00000000..15d2e95e --- /dev/null +++ b/api/models/v1_spectro_cluster_k8s_certificate.go @@ -0,0 +1,80 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "strconv" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// V1SpectroClusterK8sCertificate K8 Certificates for all the cluster's control plane nodes +// +// swagger:model v1SpectroClusterK8sCertificate +type V1SpectroClusterK8sCertificate struct { + + // machine certificates + MachineCertificates []*V1K8MachineCertificate `json:"machineCertificates"` +} + +// Validate validates this v1 spectro cluster k8s certificate +func (m *V1SpectroClusterK8sCertificate) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateMachineCertificates(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *V1SpectroClusterK8sCertificate) validateMachineCertificates(formats strfmt.Registry) error { + + if swag.IsZero(m.MachineCertificates) { // not required + return nil + } + + for i := 0; i < len(m.MachineCertificates); i++ { + if swag.IsZero(m.MachineCertificates[i]) { // not required + continue + } + + if m.MachineCertificates[i] != nil { + if err := m.MachineCertificates[i].Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("machineCertificates" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// MarshalBinary interface implementation +func (m *V1SpectroClusterK8sCertificate) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *V1SpectroClusterK8sCertificate) UnmarshalBinary(b []byte) error { + var res V1SpectroClusterK8sCertificate + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/api/models/v1_systems_manager.go b/api/models/v1_systems_manager.go new file mode 100644 index 00000000..348d7da2 --- /dev/null +++ b/api/models/v1_systems_manager.go @@ -0,0 +1,46 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// V1SystemsManager SystemsManager specifies the Systems Manager configuration for the AWS/EKS cluster +// +// swagger:model v1SystemsManager +type V1SystemsManager struct { + + // ActivationCode specifies the Systems Manager activation code + ActivationCode string `json:"activationCode,omitempty"` + + // ActivationID specifies the Systems Manager activation ID + ActivationID string `json:"activationId,omitempty"` +} + +// Validate validates this v1 systems manager +func (m *V1SystemsManager) Validate(formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *V1SystemsManager) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *V1SystemsManager) UnmarshalBinary(b []byte) error { + var res V1SystemsManager + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/api/models/v1_tenant_oidc_client_spec.go b/api/models/v1_tenant_oidc_client_spec.go index 2bf035ce..5b174861 100644 --- a/api/models/v1_tenant_oidc_client_spec.go +++ b/api/models/v1_tenant_oidc_client_spec.go @@ -51,6 +51,9 @@ type V1TenantOidcClientSpec struct { // sync sso teams SyncSsoTeams bool `json:"syncSsoTeams"` + + // user info + UserInfo *V1OidcUserInfo `json:"userInfo,omitempty"` } // Validate validates this v1 tenant oidc client spec @@ -65,6 +68,10 @@ func (m *V1TenantOidcClientSpec) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateUserInfo(formats); err != nil { + res = append(res, err) + } + if len(res) > 0 { return errors.CompositeValidationError(res...) } @@ -107,6 +114,24 @@ func (m *V1TenantOidcClientSpec) validateRequiredClaims(formats strfmt.Registry) return nil } +func (m *V1TenantOidcClientSpec) validateUserInfo(formats strfmt.Registry) error { + + if swag.IsZero(m.UserInfo) { // not required + return nil + } + + if m.UserInfo != nil { + if err := m.UserInfo.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("userInfo") + } + return err + } + } + + return nil +} + // MarshalBinary interface implementation func (m *V1TenantOidcClientSpec) MarshalBinary() ([]byte, error) { if m == nil { diff --git a/api/models/v1k8_certificate_authority.go b/api/models/v1k8_certificate_authority.go new file mode 100644 index 00000000..4deb1fe0 --- /dev/null +++ b/api/models/v1k8_certificate_authority.go @@ -0,0 +1,107 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "strconv" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// V1k8CertificateAuthority K8 Certificate Authority +// +// swagger:model v1k8CertificateAuthority +type V1k8CertificateAuthority struct { + + // certificates + Certificates []*V1Certificate `json:"certificates"` + + // Certificate expiry time + // Format: date-time + Expiry V1Time `json:"expiry,omitempty"` + + // name + Name string `json:"name,omitempty"` +} + +// Validate validates this v1k8 certificate authority +func (m *V1k8CertificateAuthority) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateCertificates(formats); err != nil { + res = append(res, err) + } + + if err := m.validateExpiry(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *V1k8CertificateAuthority) validateCertificates(formats strfmt.Registry) error { + + if swag.IsZero(m.Certificates) { // not required + return nil + } + + for i := 0; i < len(m.Certificates); i++ { + if swag.IsZero(m.Certificates[i]) { // not required + continue + } + + if m.Certificates[i] != nil { + if err := m.Certificates[i].Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("certificates" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +func (m *V1k8CertificateAuthority) validateExpiry(formats strfmt.Registry) error { + + if swag.IsZero(m.Expiry) { // not required + return nil + } + + if err := m.Expiry.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("expiry") + } + return err + } + + return nil +} + +// MarshalBinary interface implementation +func (m *V1k8CertificateAuthority) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *V1k8CertificateAuthority) UnmarshalBinary(b []byte) error { + var res V1k8CertificateAuthority + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/api/spec/palette-apis-spec.json b/api/spec/palette-apis-spec.json index 19b50c10..d2e31bf9 100644 --- a/api/spec/palette-apis-spec.json +++ b/api/spec/palette-apis-spec.json @@ -3917,6 +3917,184 @@ } ] }, + "/v1/cloudconfigs/aws/{configUid}/clusterConfig/hybridConfig": { + "put": { + "tags": [ + "v1" + ], + "summary": "Updates the hybrid configuration information of AWS cluster", + "operationId": "v1AwsCloudConfigsUidHybridConfig", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1AwsCloudHybridConfigEntity" + } + } + ], + "responses": { + "204": { + "description": "The resource was updated successfully" + } + } + }, + "parameters": [ + { + "type": "string", + "description": "AWS Cluster's Hybrid Configuration", + "name": "configUid", + "in": "path", + "required": true + } + ] + }, + "/v1/cloudconfigs/aws/{configUid}/edge-native/machinePools": { + "post": { + "tags": [ + "v1" + ], + "summary": "Creates an Hybrid AWS cloud config's Edge-Native machine pool", + "operationId": "V1AwsCloudConfigsEdgeNativeUidMachinePoolCreate", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1HybridEdgeNativeMachinePoolConfigEntity" + } + } + ], + "responses": { + "201": { + "description": "Created successfully", + "schema": { + "$ref": "#/definitions/v1Uid" + }, + "headers": { + "AuditUid": { + "type": "string", + "description": "Audit uid for the request" + } + } + } + } + }, + "parameters": [ + { + "type": "string", + "description": "Hybrid AWS cluster's cloud config uid", + "name": "configUid", + "in": "path", + "required": true + } + ] + }, + "/v1/cloudconfigs/aws/{configUid}/edge-native/machinePools/{machinePoolName}": { + "get": { + "tags": [ + "v1" + ], + "summary": "Returns the specified AWS Cluster's Edge-Native machine pool configuration", + "operationId": "v1AwsCloudConfigsEdgeNativeMachinePoolGet", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1HybridEdgeNativeMachinePoolConfig" + } + } + } + }, + "put": { + "tags": [ + "v1" + ], + "summary": "Updates the specified Hybrid AWS cluster cloud config's Edge-Native machine pool", + "operationId": "v1AwsCloudConfigsEdgeNativeMachinePoolUpdate", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1HybridEdgeNativeMachinePoolConfigUpdateEntity" + } + } + ], + "responses": { + "204": { + "description": "The resource was updated successfully" + } + } + }, + "delete": { + "tags": [ + "v1" + ], + "summary": "Deletes the specified Edge-Native machine pool of hybrid AWS cluster", + "operationId": "v1AwsCloudConfigsEdgeNativeMachinePoolDelete", + "responses": { + "204": { + "description": "The resource was deleted successfully" + } + } + }, + "parameters": [ + { + "type": "string", + "description": "AWS Cluster's cloud config uid", + "name": "configUid", + "in": "path", + "required": true + }, + { + "type": "string", + "description": "Edge-native machine pool name", + "name": "machinePoolName", + "in": "path", + "required": true + } + ] + }, + "/v1/cloudconfigs/aws/{configUid}/edge-native/machinePools/{machinePoolName}/clusterConfig": { + "put": { + "tags": [ + "v1" + ], + "summary": "Updates the cluster configuration information of Edge-Native cluster deployed through Hybrid AWS cluster", + "operationId": "v1AwsCloudConfigsEdgeNativeUidClusterConfig", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1HybridEdgeNativeClusterConfigEntity" + } + } + ], + "responses": { + "204": { + "description": "The resource was updated successfully" + } + } + }, + "parameters": [ + { + "type": "string", + "description": "Hybrid AWS Cluster's cloud config uid", + "name": "configUid", + "in": "path", + "required": true + }, + { + "type": "string", + "description": "Edge-Native machine pool name", + "name": "machinePoolName", + "in": "path", + "required": true + } + ] + }, "/v1/cloudconfigs/aws/{configUid}/machinePools": { "post": { "tags": [ @@ -17613,29 +17791,6 @@ } } } - }, - "delete": { - "tags": [ - "v1" - ], - "summary": "Deletes the packs", - "operationId": "v1PacksSummaryDelete", - "parameters": [ - { - "type": "string", - "description": "Filters can be combined with AND, OR operators with field path name. Eg: metadata.name=TestServiceANDspec.cloudType=aws\n\nServer will be restricted to certain fields based on the indexed data for each resource.", - "name": "filters", - "in": "query" - } - ], - "responses": { - "200": { - "description": "(empty)", - "schema": { - "$ref": "#/definitions/v1DeleteMeta" - } - } - } } }, "/v1/packs/search": { @@ -21990,6 +22145,74 @@ } ] }, + "/v1/spectroclusters/{uid}/assets/adminTokenKubeconfig": { + "get": { + "produces": [ + "application/octet-stream" + ], + "tags": [ + "v1" + ], + "summary": "Returns the specified cluster's token kube config file", + "operationId": "v1SpectroClustersUidTokenKubeConfigGet", + "responses": { + "200": { + "description": "download file", + "schema": { + "type": "string", + "format": "binary" + }, + "headers": { + "Content-Disposition": { + "type": "string" + } + } + } + } + }, + "put": { + "tags": [ + "v1" + ], + "summary": "Updates the cluster's token kube config data", + "operationId": "v1SpectroClustersUidTokenKubeConfigUpdate", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1SpectroClusterAssetTokenKubeConfig" + } + } + ], + "responses": { + "204": { + "description": "The resource was updated successfully" + } + } + }, + "delete": { + "tags": [ + "v1" + ], + "summary": "Deletes the cluster's token kube config data", + "operationId": "v1SpectroClustersUidTokenKubeConfigDelete", + "responses": { + "204": { + "description": "The resource was deleted successfully" + } + } + }, + "parameters": [ + { + "type": "string", + "description": "Cluster uid", + "name": "uid", + "in": "path", + "required": true + } + ] + }, "/v1/spectroclusters/{uid}/assets/frpKubeconfig": { "get": { "produces": [ @@ -23553,6 +23776,76 @@ } ] }, + "/v1/spectroclusters/{uid}/heartbeat": { + "put": { + "tags": [ + "v1" + ], + "summary": "Update specific cluster heartbeat", + "operationId": "v1SpectroClustersUidHeartbeatUpdate", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1SpectroClusterHeartbeat" + } + } + ], + "responses": { + "204": { + "description": "The resource was updated successfully" + } + } + }, + "parameters": [ + { + "type": "string", + "description": "Cluster uid", + "name": "uid", + "in": "path", + "required": true + } + ] + }, + "/v1/spectroclusters/{uid}/hybridSettings": { + "patch": { + "tags": [ + "v1" + ], + "summary": "Update specific cluster hybrid settings", + "operationId": "v1SpectroClustersUidHybridSettings", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1ClusterHybridSettingsEntity" + } + } + ], + "responses": { + "204": { + "description": "Ok response without content", + "headers": { + "AuditUid": { + "type": "string", + "description": "Audit uid for the request" + } + } + } + } + }, + "parameters": [ + { + "type": "string", + "description": "Cluster uid", + "name": "uid", + "in": "path", + "required": true + } + ] + }, "/v1/spectroclusters/{uid}/import/manifest": { "get": { "produces": [ @@ -31648,6 +31941,12 @@ "clusterConfig": { "$ref": "#/definitions/v1AwsClusterConfig" }, + "hybridMachinePools": { + "type": "array", + "items": { + "$ref": "#/definitions/v1EksHybridMachinePool" + } + }, "machinePoolConfig": { "type": "array", "items": { @@ -31779,6 +32078,15 @@ } } }, + "v1AwsCloudHybridConfigEntity": { + "description": "AWS cloud hybrid config entity", + "type": "object", + "properties": { + "hybridConfig": { + "$ref": "#/definitions/v1AwsHybridConfig" + } + } + }, "v1AwsClusterConfig": { "description": "Cluster level configuration for aws cloud and applicable for all the machine pools", "type": "object", @@ -31794,6 +32102,10 @@ "description": "ControlPlaneLoadBalancer specifies how API server elb will be configured, this field is optional, not provided, \"\", default =\u003e \"Internet-facing\" \"Internet-facing\" =\u003e \"Internet-facing\" \"internal\" =\u003e \"internal\" For spectro saas setup we require to talk to the apiserver from our cluster so ControlPlaneLoadBalancer should be \"\", not provided or \"Internet-facing\"", "type": "string" }, + "hybridConfig": { + "description": "AWS hybrid cluster config", + "$ref": "#/definitions/v1AwsHybridConfig" + }, "region": { "type": "string" }, @@ -31840,6 +32152,38 @@ } } }, + "v1AwsHybridConfig": { + "description": "AwsHybridConfig specifies the AWS Hybrid configuration for the cluster", + "type": "object", + "properties": { + "awsVpcCidr": { + "description": "AWS VPC CIDR is the CIDR of the AWS/EKS cluster's VPC", + "type": "string" + }, + "iamRolesAnywhere": { + "description": "IamRolesAnywhere specifies the IAM Roles Anywhere configuration for the AWS/EKS cluster", + "$ref": "#/definitions/v1IamRolesAnywhere" + }, + "remoteNodeCidrs": { + "description": "RemoteNodeCIDRs specifies the Node CIDRs of all remote nodes", + "type": "array", + "items": { + "type": "string" + } + }, + "remotePodCidrs": { + "description": "RemotePodCIDRs specifies the Pod CIDRs of all remote pods", + "type": "array", + "items": { + "type": "string" + } + }, + "systemsManager": { + "description": "SystemsManager specifies the Systems Manager configuration for the AWS/EKS cluster", + "$ref": "#/definitions/v1SystemsManager" + } + } + }, "v1AwsIamPolicy": { "description": "Aws policy", "type": "object", @@ -33635,6 +33979,9 @@ }, "spec": { "$ref": "#/definitions/v1BasicOciRegistrySpec" + }, + "status": { + "$ref": "#/definitions/v1OciRegistryStatus" } } }, @@ -33657,10 +34004,17 @@ "description": "OCI registry api base path", "type": "string" }, + "containsSpectroManifest": { + "type": "boolean", + "x-omitempty": false + }, "endpoint": { "description": "OCI registry endpoint", "type": "string" }, + "isSyncSupported": { + "type": "boolean" + }, "providerType": { "type": "string", "default": "helm", @@ -34514,6 +34868,10 @@ "description": "HostClusterConfiguration defines the configuration of host clusters, where virtual clusters be deployed", "$ref": "#/definitions/v1HostClusterConfig" }, + "hybridClusterConfig": { + "description": "HybridClusterConfiguration defines the configuration of hybrid clusters and clusters deployed through hybrid clusters", + "$ref": "#/definitions/v1HybridClusterConfig" + }, "lifecycleConfig": { "$ref": "#/definitions/v1LifecycleConfig" }, @@ -35017,6 +35375,14 @@ } } }, + "v1ClusterHybridSettingsEntity": { + "properties": { + "enable": { + "description": "Property which is used to enable a cluster to perform hybrid operations", + "type": "boolean" + } + } + }, "v1ClusterImport": { "type": "object", "properties": { @@ -38478,21 +38844,6 @@ } } }, - "v1DeleteMeta": { - "description": "Properties to send back after deletion operation", - "properties": { - "count": { - "type": "integer", - "format": "int64" - }, - "items": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - } - }, "v1DeletedMsg": { "description": "Deleted response with message", "properties": { @@ -38606,6 +38957,9 @@ }, "spec": { "$ref": "#/definitions/v1EcrRegistrySpec" + }, + "status": { + "$ref": "#/definitions/v1OciRegistryStatus" } } }, @@ -38621,6 +38975,10 @@ "description": "OCI ecr registry content base path", "type": "string" }, + "containsSpectroManifest": { + "type": "boolean", + "x-omitempty": false + }, "credentials": { "$ref": "#/definitions/v1AwsCloudAccount" }, @@ -38633,6 +38991,9 @@ "isPrivate": { "type": "boolean" }, + "isSyncSupported": { + "type": "boolean" + }, "providerType": { "type": "string", "default": "helm", @@ -39307,7 +39668,13 @@ }, "type": { "description": "Type indicates DDNS or VIP", - "type": "string" + "type": "string", + "enum": [ + "VIP", + "External", + "DDNS", + "IP" + ] } } }, @@ -39366,6 +39733,105 @@ } } }, + "v1EdgeNativeHybridClusterConfig": { + "description": "EdgeNativeHybridClusterConfig defines Edge Native Cluster specific specification", + "type": "object", + "properties": { + "controlPlaneEndpoint": { + "description": "ControlPlaneEndpoint is the control plane endpoint, which can be an IP or FQDN", + "$ref": "#/definitions/v1EdgeNativeControlPlaneEndPoint" + }, + "ntpServers": { + "description": "NTPServers is a list of NTP servers to use instead of the machine image's default NTP server list", + "type": "array", + "items": { + "type": "string", + "default": "" + } + }, + "sshKeys": { + "description": "SSHKeys specifies a list of ssh authorized keys to access the vms as a 'spectro' user", + "type": "array", + "items": { + "type": "string", + "default": "" + } + } + } + }, + "v1EdgeNativeHybridConfigEntity": { + "description": "EdgeNativeHybridMachineConfigEntity defines Edge Native machine configuration", + "properties": { + "clusterConfig": { + "description": "Edge-Native cluster configurations", + "$ref": "#/definitions/v1EdgeNativeHybridClusterConfig" + }, + "machineCloudConfig": { + "description": "Edge-Native machine cluster configurations", + "$ref": "#/definitions/v1EdgeNativeHybridMachineConfigEntity" + }, + "profiles": { + "description": "Cluster profile templates for edge-native machine pool", + "type": "array", + "items": { + "$ref": "#/definitions/v1SpectroClusterProfileEntity" + } + } + } + }, + "v1EdgeNativeHybridMachineConfigEntity": { + "description": "EdgeNativeHybridMachineConfigEntity defines Edge Native machine configuration", + "required": [ + "archType", + "edgeHosts" + ], + "properties": { + "archType": { + "description": "Architecture type of the edge hosts", + "x-omitempty": false, + "$ref": "#/definitions/v1ArchType" + }, + "edgeHosts": { + "description": "Edge hosts configurations", + "type": "array", + "items": { + "$ref": "#/definitions/v1EdgeNativeHybridMachinePoolHost" + } + } + } + }, + "v1EdgeNativeHybridMachinePoolHost": { + "description": "v1EdgeNativeHybridMachinePoolHostEntity defines Edge Native machine pool's host configuration", + "required": [ + "hostUid" + ], + "properties": { + "hostName": { + "description": "Edge host name", + "type": "string" + }, + "hostUid": { + "description": "Edge host id", + "type": "string" + }, + "nic": { + "description": "Edge native nic", + "$ref": "#/definitions/v1Nic" + }, + "twoNodeCandidatePriority": { + "description": "Set the Edge Host candidate priority as primary or secondary, if the Edge Host is nominated as two node candidate", + "type": "string", + "enum": [ + "primary", + "secondary" + ] + }, + "vpnServerIp": { + "description": "Vpn server IP", + "type": "string" + } + } + }, "v1EdgeNativeInstanceType": { "description": "EdgeNativeInstanceType defines the instance configuration for a docker container node", "type": "object", @@ -39926,6 +40392,23 @@ } } }, + "v1EksHybridMachinePool": { + "description": "Machine pool reference of cloud config of cluster deployed by hybrid EKS cluster", + "type": "object", + "properties": { + "poolCloudType": { + "$ref": "#/definitions/v1HybridPoolClusterCloudType" + }, + "poolName": { + "description": "Machine pool name", + "type": "string" + }, + "poolUid": { + "description": "Machine pool uid", + "type": "string" + } + } + }, "v1EksMachineCloudConfigEntity": { "properties": { "awsLaunchTemplate": { @@ -41839,6 +42322,126 @@ } } }, + "v1HybridCluster": { + "properties": { + "cloudConfigUid": { + "description": "Cloud config uid", + "type": "string" + }, + "name": { + "description": "Cluster name", + "type": "string" + }, + "uid": { + "description": "Cluster uid", + "type": "string" + } + } + }, + "v1HybridClusterConfig": { + "properties": { + "clusterUid": { + "description": "Parent cluster uid. Provided for hybrid (child) clusters only.", + "type": "string" + }, + "enable": { + "description": "Flag differentiating if the cluster is an hybrid cluster or not. True for a cluster with hybrid mode enabled, false for the actual hybrid (child) clusters", + "type": "boolean" + }, + "hybridMachinePoolClusterRefs": { + "description": "References to hybrid (child) clusters deployed within the hybrid cluster", + "type": "array", + "items": { + "$ref": "#/definitions/v1HybridPoolClusterRef" + } + } + } + }, + "v1HybridEdgeNativeClusterConfigEntity": { + "description": "Hybrid Edge-Native cluster's configuration request payload", + "properties": { + "clusterConfig": { + "$ref": "#/definitions/v1EdgeNativeHybridClusterConfig" + } + } + }, + "v1HybridEdgeNativeMachineCloudConfig": { + "description": "HybridEdgeNativeMachineCloudConfig defines hybrid Edge-Native cluster's machine configurations", + "required": [ + "archType", + "edgeHosts" + ], + "properties": { + "archType": { + "description": "Architecture type of the edge hosts", + "x-omitempty": false, + "$ref": "#/definitions/v1ArchType" + }, + "edgeHosts": { + "description": "Edge host's configuration", + "type": "array", + "items": { + "$ref": "#/definitions/v1EdgeNativeHybridMachinePoolHost" + } + }, + "hybridCluster": { + "description": "Hybrid cluster reference", + "$ref": "#/definitions/v1HybridCluster" + } + } + }, + "v1HybridEdgeNativeMachinePoolConfig": { + "description": "HybridEdgeNativeMachinePoolConfig defines hybrid Edge-Native cluster's machine-pool configurations", + "properties": { + "cloudConfig": { + "$ref": "#/definitions/v1HybridEdgeNativeMachineCloudConfig" + }, + "poolConfig": { + "$ref": "#/definitions/v1MachinePoolConfigEntity" + } + } + }, + "v1HybridEdgeNativeMachinePoolConfigEntity": { + "description": "Hybrid Edge-Native cluster's machine-pool configuration request payload", + "properties": { + "cloudConfig": { + "$ref": "#/definitions/v1EdgeNativeHybridConfigEntity" + }, + "poolConfig": { + "$ref": "#/definitions/v1MachinePoolConfigEntity" + } + } + }, + "v1HybridEdgeNativeMachinePoolConfigUpdateEntity": { + "description": "Hybrid Edge-Native cluster's machine-pool configuration update request payload", + "properties": { + "cloudConfig": { + "$ref": "#/definitions/v1EdgeNativeHybridMachineConfigEntity" + }, + "poolConfig": { + "$ref": "#/definitions/v1MachinePoolConfigEntity" + } + } + }, + "v1HybridPoolClusterCloudType": { + "description": "Flag to indicate whether the pool is deployed in any cloud or an edge environment", + "type": "string", + "default": "edge-native", + "enum": [ + "edge-native" + ] + }, + "v1HybridPoolClusterRef": { + "properties": { + "cloudType": { + "$ref": "#/definitions/v1HybridPoolClusterCloudType" + }, + "uid": { + "description": "Cluster uid", + "type": "string" + } + } + }, "v1IPPool": { "description": "IPPool defines static IPs available. Gateway, Prefix, Nameserver, if defined, will be default values for all Pools", "type": "object", @@ -41869,6 +42472,36 @@ } } }, + "v1IamRolesAnywhere": { + "description": "IamRolesAnywhere specifies the IAM Roles Anywhere configuration for the AWS/EKS cluster", + "type": "object", + "properties": { + "assumeRoleArn": { + "description": "AssumeRoleARN specifies the IAM role ARN to assume", + "type": "string" + }, + "profileArn": { + "description": "ProfileARN specifies the IAM profile ARN", + "type": "string" + }, + "roleArn": { + "description": "RoleARN specifies the IAM role ARN to use", + "type": "string" + }, + "rootCaCertificate": { + "description": "RootCACertificate specifies the root CA certificate", + "type": "string" + }, + "rootCaPrivateKey": { + "description": "RootCAPrivateKey specifies the root CA private key", + "type": "string" + }, + "trustAnchorArn": { + "description": "TrustAnchorARN specifies the trust anchor ARN", + "type": "string" + } + } + }, "v1IdentityProvider": { "description": "Describes a predefined Identity Provider (IDP)", "type": "object", @@ -44686,6 +45319,10 @@ "description": "Image registry spec", "type": "object", "properties": { + "containsSpectroManifest": { + "type": "boolean", + "x-omitempty": false + }, "defaultRegion": { "type": "string" }, @@ -44706,6 +45343,15 @@ } } }, + "v1OciRegistryStatus": { + "description": "Status of the oci registry", + "type": "object", + "properties": { + "syncStatus": { + "$ref": "#/definitions/v1RegistrySyncStatus" + } + } + }, "v1OciRegistryStatusSummary": { "description": "OCI registry status summary", "properties": { @@ -44728,6 +45374,19 @@ } } }, + "v1OidcUserInfo": { + "type": "object", + "properties": { + "claims": { + "$ref": "#/definitions/v1TenantOidcClaims" + }, + "useUserInfo": { + "type": "boolean", + "default": false, + "x-omitempty": false + } + } + }, "v1OpenStackAccount": { "description": "OpenStack account information", "type": "object", @@ -46710,7 +47369,12 @@ "type": "object", "properties": { "isPrivate": { - "description": "If true then pack registry is private and is not accessible for the pack sync", + "description": "If true then helm registry is private and is not accessible for the content sync", + "type": "boolean", + "x-omitempty": false + }, + "isSyncSupported": { + "description": "If true the registry sync is supported", "type": "boolean", "x-omitempty": false }, @@ -48333,6 +48997,10 @@ "description": "Status of the registry sync", "type": "object", "properties": { + "isSyncSupported": { + "type": "boolean", + "x-omitempty": false + }, "lastRunTime": { "$ref": "#/definitions/v1Time" }, @@ -50213,6 +50881,9 @@ }, "manifest": { "type": "string" + }, + "tokenkubeconfig": { + "type": "string" } } } @@ -50254,6 +50925,15 @@ } } }, + "v1SpectroClusterAssetTokenKubeConfig": { + "description": "Cluster asset admin token Kube Config", + "type": "object", + "properties": { + "tokenkubeconfig": { + "type": "string" + } + } + }, "v1SpectroClusterCloudCost": { "description": "Spectro cluster cloud cost information", "type": "object", @@ -50407,6 +51087,23 @@ } } }, + "v1SpectroClusterHeartbeat": { + "description": "Cluster heartbeat message", + "type": "object", + "required": [ + "agentVersion" + ], + "properties": { + "agentVersion": { + "description": "Version of the agent", + "type": "string" + }, + "message": { + "description": "Heartbeat message", + "type": "string" + } + } + }, "v1SpectroClusterK8sCertificate": { "description": "K8 Certificates for all the cluster's control plane nodes", "type": "object", @@ -52776,6 +53473,20 @@ } } }, + "v1SystemsManager": { + "description": "SystemsManager specifies the Systems Manager configuration for the AWS/EKS cluster", + "type": "object", + "properties": { + "activationCode": { + "description": "ActivationCode specifies the Systems Manager activation code", + "type": "string" + }, + "activationId": { + "description": "ActivationID specifies the Systems Manager activation ID", + "type": "string" + } + } + }, "v1TagFilter": { "description": "Tag Filter create spec", "type": "object", @@ -53272,6 +53983,9 @@ "syncSsoTeams": { "type": "boolean", "x-omitempty": false + }, + "userInfo": { + "$ref": "#/definitions/v1OidcUserInfo" } } }, diff --git a/api/spec/palette.json b/api/spec/palette.json index 0945133a..d15e85b9 100644 --- a/api/spec/palette.json +++ b/api/spec/palette.json @@ -3917,6 +3917,184 @@ } ] }, + "/v1/cloudconfigs/aws/{configUid}/clusterConfig/hybridConfig": { + "put": { + "tags": [ + "v1" + ], + "summary": "Updates the hybrid configuration information of AWS cluster", + "operationId": "v1AwsCloudConfigsUidHybridConfig", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1AwsCloudHybridConfigEntity" + } + } + ], + "responses": { + "204": { + "description": "The resource was updated successfully" + } + } + }, + "parameters": [ + { + "type": "string", + "description": "AWS Cluster's Hybrid Configuration", + "name": "configUid", + "in": "path", + "required": true + } + ] + }, + "/v1/cloudconfigs/aws/{configUid}/edge-native/machinePools": { + "post": { + "tags": [ + "v1" + ], + "summary": "Creates an Hybrid AWS cloud config's Edge-Native machine pool", + "operationId": "V1AwsCloudConfigsEdgeNativeUidMachinePoolCreate", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1HybridEdgeNativeMachinePoolConfigEntity" + } + } + ], + "responses": { + "201": { + "description": "Created successfully", + "schema": { + "$ref": "#/definitions/v1Uid" + }, + "headers": { + "AuditUid": { + "type": "string", + "description": "Audit uid for the request" + } + } + } + } + }, + "parameters": [ + { + "type": "string", + "description": "Hybrid AWS cluster's cloud config uid", + "name": "configUid", + "in": "path", + "required": true + } + ] + }, + "/v1/cloudconfigs/aws/{configUid}/edge-native/machinePools/{machinePoolName}": { + "get": { + "tags": [ + "v1" + ], + "summary": "Returns the specified AWS Cluster's Edge-Native machine pool configuration", + "operationId": "v1AwsCloudConfigsEdgeNativeMachinePoolGet", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1HybridEdgeNativeMachinePoolConfig" + } + } + } + }, + "put": { + "tags": [ + "v1" + ], + "summary": "Updates the specified Hybrid AWS cluster cloud config's Edge-Native machine pool", + "operationId": "v1AwsCloudConfigsEdgeNativeMachinePoolUpdate", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1HybridEdgeNativeMachinePoolConfigUpdateEntity" + } + } + ], + "responses": { + "204": { + "description": "The resource was updated successfully" + } + } + }, + "delete": { + "tags": [ + "v1" + ], + "summary": "Deletes the specified Edge-Native machine pool of hybrid AWS cluster", + "operationId": "v1AwsCloudConfigsEdgeNativeMachinePoolDelete", + "responses": { + "204": { + "description": "The resource was deleted successfully" + } + } + }, + "parameters": [ + { + "type": "string", + "description": "AWS Cluster's cloud config uid", + "name": "configUid", + "in": "path", + "required": true + }, + { + "type": "string", + "description": "Edge-native machine pool name", + "name": "machinePoolName", + "in": "path", + "required": true + } + ] + }, + "/v1/cloudconfigs/aws/{configUid}/edge-native/machinePools/{machinePoolName}/clusterConfig": { + "put": { + "tags": [ + "v1" + ], + "summary": "Updates the cluster configuration information of Edge-Native cluster deployed through Hybrid AWS cluster", + "operationId": "v1AwsCloudConfigsEdgeNativeUidClusterConfig", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1HybridEdgeNativeClusterConfigEntity" + } + } + ], + "responses": { + "204": { + "description": "The resource was updated successfully" + } + } + }, + "parameters": [ + { + "type": "string", + "description": "Hybrid AWS Cluster's cloud config uid", + "name": "configUid", + "in": "path", + "required": true + }, + { + "type": "string", + "description": "Edge-Native machine pool name", + "name": "machinePoolName", + "in": "path", + "required": true + } + ] + }, "/v1/cloudconfigs/aws/{configUid}/machinePools": { "post": { "tags": [ @@ -17613,29 +17791,6 @@ } } } - }, - "delete": { - "tags": [ - "v1" - ], - "summary": "Deletes the packs", - "operationId": "v1PacksSummaryDelete", - "parameters": [ - { - "type": "string", - "description": "Filters can be combined with AND, OR operators with field path name. Eg: metadata.name=TestServiceANDspec.cloudType=aws\n\nServer will be restricted to certain fields based on the indexed data for each resource.", - "name": "filters", - "in": "query" - } - ], - "responses": { - "200": { - "description": "(empty)", - "schema": { - "$ref": "#/definitions/v1DeleteMeta" - } - } - } } }, "/v1/packs/search": { @@ -21990,6 +22145,74 @@ } ] }, + "/v1/spectroclusters/{uid}/assets/adminTokenKubeconfig": { + "get": { + "produces": [ + "application/octet-stream" + ], + "tags": [ + "v1" + ], + "summary": "Returns the specified cluster's token kube config file", + "operationId": "v1SpectroClustersUidTokenKubeConfigGet", + "responses": { + "200": { + "description": "download file", + "schema": { + "type": "string", + "format": "binary" + }, + "headers": { + "Content-Disposition": { + "type": "string" + } + } + } + } + }, + "put": { + "tags": [ + "v1" + ], + "summary": "Updates the cluster's token kube config data", + "operationId": "v1SpectroClustersUidTokenKubeConfigUpdate", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1SpectroClusterAssetTokenKubeConfig" + } + } + ], + "responses": { + "204": { + "description": "The resource was updated successfully" + } + } + }, + "delete": { + "tags": [ + "v1" + ], + "summary": "Deletes the cluster's token kube config data", + "operationId": "v1SpectroClustersUidTokenKubeConfigDelete", + "responses": { + "204": { + "description": "The resource was deleted successfully" + } + } + }, + "parameters": [ + { + "type": "string", + "description": "Cluster uid", + "name": "uid", + "in": "path", + "required": true + } + ] + }, "/v1/spectroclusters/{uid}/assets/frpKubeconfig": { "get": { "produces": [ @@ -23553,6 +23776,76 @@ } ] }, + "/v1/spectroclusters/{uid}/heartbeat": { + "put": { + "tags": [ + "v1" + ], + "summary": "Update specific cluster heartbeat", + "operationId": "v1SpectroClustersUidHeartbeatUpdate", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1SpectroClusterHeartbeat" + } + } + ], + "responses": { + "204": { + "description": "The resource was updated successfully" + } + } + }, + "parameters": [ + { + "type": "string", + "description": "Cluster uid", + "name": "uid", + "in": "path", + "required": true + } + ] + }, + "/v1/spectroclusters/{uid}/hybridSettings": { + "patch": { + "tags": [ + "v1" + ], + "summary": "Update specific cluster hybrid settings", + "operationId": "v1SpectroClustersUidHybridSettings", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1ClusterHybridSettingsEntity" + } + } + ], + "responses": { + "204": { + "description": "Ok response without content", + "headers": { + "AuditUid": { + "type": "string", + "description": "Audit uid for the request" + } + } + } + } + }, + "parameters": [ + { + "type": "string", + "description": "Cluster uid", + "name": "uid", + "in": "path", + "required": true + } + ] + }, "/v1/spectroclusters/{uid}/import/manifest": { "get": { "produces": [ @@ -31665,6 +31958,12 @@ "clusterConfig": { "$ref": "#/definitions/v1AwsClusterConfig" }, + "hybridMachinePools": { + "type": "array", + "items": { + "$ref": "#/definitions/v1EksHybridMachinePool" + } + }, "machinePoolConfig": { "type": "array", "items": { @@ -31796,6 +32095,15 @@ } } }, + "v1AwsCloudHybridConfigEntity": { + "description": "AWS cloud hybrid config entity", + "type": "object", + "properties": { + "hybridConfig": { + "$ref": "#/definitions/v1AwsHybridConfig" + } + } + }, "v1AwsClusterConfig": { "description": "Cluster level configuration for aws cloud and applicable for all the machine pools", "type": "object", @@ -31811,6 +32119,10 @@ "description": "ControlPlaneLoadBalancer specifies how API server elb will be configured, this field is optional, not provided, \"\", default =\u003e \"Internet-facing\" \"Internet-facing\" =\u003e \"Internet-facing\" \"internal\" =\u003e \"internal\" For spectro saas setup we require to talk to the apiserver from our cluster so ControlPlaneLoadBalancer should be \"\", not provided or \"Internet-facing\"", "type": "string" }, + "hybridConfig": { + "description": "AWS hybrid cluster config", + "$ref": "#/definitions/v1AwsHybridConfig" + }, "region": { "type": "string" }, @@ -31857,6 +32169,38 @@ } } }, + "v1AwsHybridConfig": { + "description": "AwsHybridConfig specifies the AWS Hybrid configuration for the cluster", + "type": "object", + "properties": { + "awsVpcCidr": { + "description": "AWS VPC CIDR is the CIDR of the AWS/EKS cluster's VPC", + "type": "string" + }, + "iamRolesAnywhere": { + "description": "IamRolesAnywhere specifies the IAM Roles Anywhere configuration for the AWS/EKS cluster", + "$ref": "#/definitions/v1IamRolesAnywhere" + }, + "remoteNodeCidrs": { + "description": "RemoteNodeCIDRs specifies the Node CIDRs of all remote nodes", + "type": "array", + "items": { + "type": "string" + } + }, + "remotePodCidrs": { + "description": "RemotePodCIDRs specifies the Pod CIDRs of all remote pods", + "type": "array", + "items": { + "type": "string" + } + }, + "systemsManager": { + "description": "SystemsManager specifies the Systems Manager configuration for the AWS/EKS cluster", + "$ref": "#/definitions/v1SystemsManager" + } + } + }, "v1AwsIamPolicy": { "description": "Aws policy", "type": "object", @@ -33652,6 +33996,9 @@ }, "spec": { "$ref": "#/definitions/v1BasicOciRegistrySpec" + }, + "status": { + "$ref": "#/definitions/v1OciRegistryStatus" } } }, @@ -33674,10 +34021,17 @@ "description": "OCI registry api base path", "type": "string" }, + "containsSpectroManifest": { + "type": "boolean", + "x-omitempty": false + }, "endpoint": { "description": "OCI registry endpoint", "type": "string" }, + "isSyncSupported": { + "type": "boolean" + }, "providerType": { "type": "string", "default": "helm", @@ -34531,6 +34885,10 @@ "description": "HostClusterConfiguration defines the configuration of host clusters, where virtual clusters be deployed", "$ref": "#/definitions/v1HostClusterConfig" }, + "hybridClusterConfig": { + "description": "HybridClusterConfiguration defines the configuration of hybrid clusters and clusters deployed through hybrid clusters", + "$ref": "#/definitions/v1HybridClusterConfig" + }, "lifecycleConfig": { "$ref": "#/definitions/v1LifecycleConfig" }, @@ -35034,6 +35392,14 @@ } } }, + "v1ClusterHybridSettingsEntity": { + "properties": { + "enable": { + "description": "Property which is used to enable a cluster to perform hybrid operations", + "type": "boolean" + } + } + }, "v1ClusterImport": { "type": "object", "properties": { @@ -38495,21 +38861,6 @@ } } }, - "v1DeleteMeta": { - "description": "Properties to send back after deletion operation", - "properties": { - "count": { - "type": "integer", - "format": "int64" - }, - "items": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - } - }, "v1DeletedMsg": { "description": "Deleted response with message", "properties": { @@ -38623,6 +38974,9 @@ }, "spec": { "$ref": "#/definitions/v1EcrRegistrySpec" + }, + "status": { + "$ref": "#/definitions/v1OciRegistryStatus" } } }, @@ -38638,6 +38992,10 @@ "description": "OCI ecr registry content base path", "type": "string" }, + "containsSpectroManifest": { + "type": "boolean", + "x-omitempty": false + }, "credentials": { "$ref": "#/definitions/v1AwsCloudAccount" }, @@ -38650,6 +39008,9 @@ "isPrivate": { "type": "boolean" }, + "isSyncSupported": { + "type": "boolean" + }, "providerType": { "type": "string", "default": "helm", @@ -39324,7 +39685,13 @@ }, "type": { "description": "Type indicates DDNS or VIP", - "type": "string" + "type": "string", + "enum": [ + "VIP", + "External", + "DDNS", + "IP" + ] } } }, @@ -39383,6 +39750,105 @@ } } }, + "v1EdgeNativeHybridClusterConfig": { + "description": "EdgeNativeHybridClusterConfig defines Edge Native Cluster specific specification", + "type": "object", + "properties": { + "controlPlaneEndpoint": { + "description": "ControlPlaneEndpoint is the control plane endpoint, which can be an IP or FQDN", + "$ref": "#/definitions/v1EdgeNativeControlPlaneEndPoint" + }, + "ntpServers": { + "description": "NTPServers is a list of NTP servers to use instead of the machine image's default NTP server list", + "type": "array", + "items": { + "type": "string", + "default": "" + } + }, + "sshKeys": { + "description": "SSHKeys specifies a list of ssh authorized keys to access the vms as a 'spectro' user", + "type": "array", + "items": { + "type": "string", + "default": "" + } + } + } + }, + "v1EdgeNativeHybridConfigEntity": { + "description": "EdgeNativeHybridMachineConfigEntity defines Edge Native machine configuration", + "properties": { + "clusterConfig": { + "description": "Edge-Native cluster configurations", + "$ref": "#/definitions/v1EdgeNativeHybridClusterConfig" + }, + "machineCloudConfig": { + "description": "Edge-Native machine cluster configurations", + "$ref": "#/definitions/v1EdgeNativeHybridMachineConfigEntity" + }, + "profiles": { + "description": "Cluster profile templates for edge-native machine pool", + "type": "array", + "items": { + "$ref": "#/definitions/v1SpectroClusterProfileEntity" + } + } + } + }, + "v1EdgeNativeHybridMachineConfigEntity": { + "description": "EdgeNativeHybridMachineConfigEntity defines Edge Native machine configuration", + "required": [ + "archType", + "edgeHosts" + ], + "properties": { + "archType": { + "description": "Architecture type of the edge hosts", + "x-omitempty": false, + "$ref": "#/definitions/v1ArchType" + }, + "edgeHosts": { + "description": "Edge hosts configurations", + "type": "array", + "items": { + "$ref": "#/definitions/v1EdgeNativeHybridMachinePoolHost" + } + } + } + }, + "v1EdgeNativeHybridMachinePoolHost": { + "description": "v1EdgeNativeHybridMachinePoolHostEntity defines Edge Native machine pool's host configuration", + "required": [ + "hostUid" + ], + "properties": { + "hostName": { + "description": "Edge host name", + "type": "string" + }, + "hostUid": { + "description": "Edge host id", + "type": "string" + }, + "nic": { + "description": "Edge native nic", + "$ref": "#/definitions/v1Nic" + }, + "twoNodeCandidatePriority": { + "description": "Set the Edge Host candidate priority as primary or secondary, if the Edge Host is nominated as two node candidate", + "type": "string", + "enum": [ + "primary", + "secondary" + ] + }, + "vpnServerIp": { + "description": "Vpn server IP", + "type": "string" + } + } + }, "v1EdgeNativeInstanceType": { "description": "EdgeNativeInstanceType defines the instance configuration for a docker container node", "type": "object", @@ -39943,6 +40409,23 @@ } } }, + "v1EksHybridMachinePool": { + "description": "Machine pool reference of cloud config of cluster deployed by hybrid EKS cluster", + "type": "object", + "properties": { + "poolCloudType": { + "$ref": "#/definitions/v1HybridPoolClusterCloudType" + }, + "poolName": { + "description": "Machine pool name", + "type": "string" + }, + "poolUid": { + "description": "Machine pool uid", + "type": "string" + } + } + }, "v1EksMachineCloudConfigEntity": { "properties": { "awsLaunchTemplate": { @@ -41856,6 +42339,126 @@ } } }, + "v1HybridCluster": { + "properties": { + "cloudConfigUid": { + "description": "Cloud config uid", + "type": "string" + }, + "name": { + "description": "Cluster name", + "type": "string" + }, + "uid": { + "description": "Cluster uid", + "type": "string" + } + } + }, + "v1HybridClusterConfig": { + "properties": { + "clusterUid": { + "description": "Parent cluster uid. Provided for hybrid (child) clusters only.", + "type": "string" + }, + "enable": { + "description": "Flag differentiating if the cluster is an hybrid cluster or not. True for a cluster with hybrid mode enabled, false for the actual hybrid (child) clusters", + "type": "boolean" + }, + "hybridMachinePoolClusterRefs": { + "description": "References to hybrid (child) clusters deployed within the hybrid cluster", + "type": "array", + "items": { + "$ref": "#/definitions/v1HybridPoolClusterRef" + } + } + } + }, + "v1HybridEdgeNativeClusterConfigEntity": { + "description": "Hybrid Edge-Native cluster's configuration request payload", + "properties": { + "clusterConfig": { + "$ref": "#/definitions/v1EdgeNativeHybridClusterConfig" + } + } + }, + "v1HybridEdgeNativeMachineCloudConfig": { + "description": "HybridEdgeNativeMachineCloudConfig defines hybrid Edge-Native cluster's machine configurations", + "required": [ + "archType", + "edgeHosts" + ], + "properties": { + "archType": { + "description": "Architecture type of the edge hosts", + "x-omitempty": false, + "$ref": "#/definitions/v1ArchType" + }, + "edgeHosts": { + "description": "Edge host's configuration", + "type": "array", + "items": { + "$ref": "#/definitions/v1EdgeNativeHybridMachinePoolHost" + } + }, + "hybridCluster": { + "description": "Hybrid cluster reference", + "$ref": "#/definitions/v1HybridCluster" + } + } + }, + "v1HybridEdgeNativeMachinePoolConfig": { + "description": "HybridEdgeNativeMachinePoolConfig defines hybrid Edge-Native cluster's machine-pool configurations", + "properties": { + "cloudConfig": { + "$ref": "#/definitions/v1HybridEdgeNativeMachineCloudConfig" + }, + "poolConfig": { + "$ref": "#/definitions/v1MachinePoolConfigEntity" + } + } + }, + "v1HybridEdgeNativeMachinePoolConfigEntity": { + "description": "Hybrid Edge-Native cluster's machine-pool configuration request payload", + "properties": { + "cloudConfig": { + "$ref": "#/definitions/v1EdgeNativeHybridConfigEntity" + }, + "poolConfig": { + "$ref": "#/definitions/v1MachinePoolConfigEntity" + } + } + }, + "v1HybridEdgeNativeMachinePoolConfigUpdateEntity": { + "description": "Hybrid Edge-Native cluster's machine-pool configuration update request payload", + "properties": { + "cloudConfig": { + "$ref": "#/definitions/v1EdgeNativeHybridMachineConfigEntity" + }, + "poolConfig": { + "$ref": "#/definitions/v1MachinePoolConfigEntity" + } + } + }, + "v1HybridPoolClusterCloudType": { + "description": "Flag to indicate whether the pool is deployed in any cloud or an edge environment", + "type": "string", + "default": "edge-native", + "enum": [ + "edge-native" + ] + }, + "v1HybridPoolClusterRef": { + "properties": { + "cloudType": { + "$ref": "#/definitions/v1HybridPoolClusterCloudType" + }, + "uid": { + "description": "Cluster uid", + "type": "string" + } + } + }, "v1IPPool": { "description": "IPPool defines static IPs available. Gateway, Prefix, Nameserver, if defined, will be default values for all Pools", "type": "object", @@ -41886,6 +42489,36 @@ } } }, + "v1IamRolesAnywhere": { + "description": "IamRolesAnywhere specifies the IAM Roles Anywhere configuration for the AWS/EKS cluster", + "type": "object", + "properties": { + "assumeRoleArn": { + "description": "AssumeRoleARN specifies the IAM role ARN to assume", + "type": "string" + }, + "profileArn": { + "description": "ProfileARN specifies the IAM profile ARN", + "type": "string" + }, + "roleArn": { + "description": "RoleARN specifies the IAM role ARN to use", + "type": "string" + }, + "rootCaCertificate": { + "description": "RootCACertificate specifies the root CA certificate", + "type": "string" + }, + "rootCaPrivateKey": { + "description": "RootCAPrivateKey specifies the root CA private key", + "type": "string" + }, + "trustAnchorArn": { + "description": "TrustAnchorARN specifies the trust anchor ARN", + "type": "string" + } + } + }, "v1IdentityProvider": { "description": "Describes a predefined Identity Provider (IDP)", "type": "object", @@ -44703,6 +45336,10 @@ "description": "Image registry spec", "type": "object", "properties": { + "containsSpectroManifest": { + "type": "boolean", + "x-omitempty": false + }, "defaultRegion": { "type": "string" }, @@ -44723,6 +45360,15 @@ } } }, + "v1OciRegistryStatus": { + "description": "Status of the oci registry", + "type": "object", + "properties": { + "syncStatus": { + "$ref": "#/definitions/v1RegistrySyncStatus" + } + } + }, "v1OciRegistryStatusSummary": { "description": "OCI registry status summary", "properties": { @@ -44745,6 +45391,19 @@ } } }, + "v1OidcUserInfo": { + "type": "object", + "properties": { + "claims": { + "$ref": "#/definitions/v1TenantOidcClaims" + }, + "useUserInfo": { + "type": "boolean", + "default": false, + "x-omitempty": false + } + } + }, "v1OpenStackAccount": { "description": "OpenStack account information", "type": "object", @@ -46727,7 +47386,12 @@ "type": "object", "properties": { "isPrivate": { - "description": "If true then pack registry is private and is not accessible for the pack sync", + "description": "If true then helm registry is private and is not accessible for the content sync", + "type": "boolean", + "x-omitempty": false + }, + "isSyncSupported": { + "description": "If true the registry sync is supported", "type": "boolean", "x-omitempty": false }, @@ -48350,6 +49014,10 @@ "description": "Status of the registry sync", "type": "object", "properties": { + "isSyncSupported": { + "type": "boolean", + "x-omitempty": false + }, "lastRunTime": { "$ref": "#/definitions/v1Time" }, @@ -50230,6 +50898,9 @@ }, "manifest": { "type": "string" + }, + "tokenkubeconfig": { + "type": "string" } } } @@ -50271,6 +50942,15 @@ } } }, + "v1SpectroClusterAssetTokenKubeConfig": { + "description": "Cluster asset admin token Kube Config", + "type": "object", + "properties": { + "tokenkubeconfig": { + "type": "string" + } + } + }, "v1SpectroClusterCloudCost": { "description": "Spectro cluster cloud cost information", "type": "object", @@ -50424,6 +51104,23 @@ } } }, + "v1SpectroClusterHeartbeat": { + "description": "Cluster heartbeat message", + "type": "object", + "required": [ + "agentVersion" + ], + "properties": { + "agentVersion": { + "description": "Version of the agent", + "type": "string" + }, + "message": { + "description": "Heartbeat message", + "type": "string" + } + } + }, "v1SpectroClusterK8sCertificate": { "description": "K8 Certificates for all the cluster's control plane nodes", "type": "object", @@ -52793,6 +53490,20 @@ } } }, + "v1SystemsManager": { + "description": "SystemsManager specifies the Systems Manager configuration for the AWS/EKS cluster", + "type": "object", + "properties": { + "activationCode": { + "description": "ActivationCode specifies the Systems Manager activation code", + "type": "string" + }, + "activationId": { + "description": "ActivationID specifies the Systems Manager activation ID", + "type": "string" + } + } + }, "v1TagFilter": { "description": "Tag Filter create spec", "type": "object", @@ -53289,6 +54000,9 @@ "syncSsoTeams": { "type": "boolean", "x-omitempty": false + }, + "userInfo": { + "$ref": "#/definitions/v1OidcUserInfo" } } },