app_configs

package
v2.0.3+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 18, 2019 License: Apache-2.0 Imports: 10 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client for app configs API

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client

New creates a new app configs API client.

func (*Client) CreateClusterAppConfig

func (a *Client) CreateClusterAppConfig(params *CreateClusterAppConfigParams, authInfo runtime.ClientAuthInfoWriter) (*CreateClusterAppConfigOK, error)

CreateClusterAppConfig creates app config

This operation allows you to create a values configmap for a specific app. The app does not have to exist before hand.

If the app does exist, this endpoint will ensure that the App CR gets it's user_config field set correctly.

However, if the app exists and the user_config is already set to something, then this request will fail. You will in that case most likely want to update the config using the `PATCH /v4/clusters/{cluster_id}/apps/{app_name}/config/` endpoint.

### Example POST request ```json

{
  "agent": {
    "key": "secret-key-here",
    "endpointHost": "saas-eu-west-1.instana.io",
    "endpointPort": "443",
  },
  "zone": {
    "name": "giantswarm-cluster"
  }
}

```

func (*Client) DeleteClusterAppConfig

func (a *Client) DeleteClusterAppConfig(params *DeleteClusterAppConfigParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteClusterAppConfigOK, error)

DeleteClusterAppConfig deletes an app config

This operation allows a user to delete an app's user config if it has been named according to the convention of {app-name}-user-values and stored in the cluster ID namespace.

Calling this endpoint will delete the ConfigMap, but it does not remove the reference to the ConfigMap in the (spec.user_config.configmap field) from the app.

Do make sure you also update the app and remove the reference.

The preferred order is to first remove the reference to the configmap by updating the app, and only then delete the configmap using this endpoint.

func (*Client) GetClusterAppConfig

func (a *Client) GetClusterAppConfig(params *GetClusterAppConfigParams, authInfo runtime.ClientAuthInfoWriter) (*GetClusterAppConfigOK, error)

GetClusterAppConfig gets app config

This operation allows you to fetch the user values configmap associated with an app.

func (*Client) ModifyClusterAppConfig

func (a *Client) ModifyClusterAppConfig(params *ModifyClusterAppConfigParams, authInfo runtime.ClientAuthInfoWriter) (*ModifyClusterAppConfigOK, error)

ModifyClusterAppConfig modifies app config

This operation allows you to modify the values configmap for a specific app. It's only possible to modify app configs that have been named according to the convention of {app-name}-user-values and stored in the cluster ID namespace.

The full values key of the configmap will be replaced by the JSON body of your request.

### Example PATCH request ```json

{
  "agent": {
    "key": "a-new-key-here",
  }
}

```

If the configmap contained content like:

```json

{
  "agent": {
    "key": "an-old-key-here",
    "admin": true,
  },
  "server": {
    "url": "giantswarm.io",
  }
}

```

Then the "server" and "admin" keys will be removed.

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type CreateClusterAppConfigBadRequest

type CreateClusterAppConfigBadRequest struct {
	Payload *models.V4GenericResponse
}

CreateClusterAppConfigBadRequest handles this case with default header values.

Invalid input

func NewCreateClusterAppConfigBadRequest

func NewCreateClusterAppConfigBadRequest() *CreateClusterAppConfigBadRequest

NewCreateClusterAppConfigBadRequest creates a CreateClusterAppConfigBadRequest with default headers values

func (*CreateClusterAppConfigBadRequest) Error

type CreateClusterAppConfigConflict

type CreateClusterAppConfigConflict struct {
	Payload *models.V4GenericResponse
}

CreateClusterAppConfigConflict handles this case with default header values.

App config already exists

func NewCreateClusterAppConfigConflict

func NewCreateClusterAppConfigConflict() *CreateClusterAppConfigConflict

NewCreateClusterAppConfigConflict creates a CreateClusterAppConfigConflict with default headers values

func (*CreateClusterAppConfigConflict) Error

type CreateClusterAppConfigDefault

type CreateClusterAppConfigDefault struct {
	Payload *models.V4GenericResponse
	// contains filtered or unexported fields
}

CreateClusterAppConfigDefault handles this case with default header values.

Error

func NewCreateClusterAppConfigDefault

func NewCreateClusterAppConfigDefault(code int) *CreateClusterAppConfigDefault

NewCreateClusterAppConfigDefault creates a CreateClusterAppConfigDefault with default headers values

func (*CreateClusterAppConfigDefault) Code

Code gets the status code for the create cluster app config default response

func (*CreateClusterAppConfigDefault) Error

type CreateClusterAppConfigOK

type CreateClusterAppConfigOK struct {
	Payload *models.V4GenericResponse
}

CreateClusterAppConfigOK handles this case with default header values.

Success

func NewCreateClusterAppConfigOK

func NewCreateClusterAppConfigOK() *CreateClusterAppConfigOK

NewCreateClusterAppConfigOK creates a CreateClusterAppConfigOK with default headers values

func (*CreateClusterAppConfigOK) Error

func (o *CreateClusterAppConfigOK) Error() string

type CreateClusterAppConfigParams

type CreateClusterAppConfigParams struct {

	/*XGiantSwarmActivity
	  Name of an activity to track, like "list-clusters". This allows to
	analyze several API requests sent in context and gives an idea on
	the purpose.


	*/
	XGiantSwarmActivity *string
	/*XGiantSwarmCmdLine
	  If activity has been issued by a CLI, this header can contain the
	command line


	*/
	XGiantSwarmCmdLine *string
	/*XRequestID
	  A randomly generated key that can be used to track a request throughout
	services of Giant Swarm.


	*/
	XRequestID *string
	/*AppName
	  App Name

	*/
	AppName string
	/*Body*/
	Body models.V4CreateAppConfigRequest
	/*ClusterID
	  Cluster ID

	*/
	ClusterID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

CreateClusterAppConfigParams contains all the parameters to send to the API endpoint for the create cluster app config operation typically these are written to a http.Request

func NewCreateClusterAppConfigParams

func NewCreateClusterAppConfigParams() *CreateClusterAppConfigParams

NewCreateClusterAppConfigParams creates a new CreateClusterAppConfigParams object with the default values initialized.

func NewCreateClusterAppConfigParamsWithContext

func NewCreateClusterAppConfigParamsWithContext(ctx context.Context) *CreateClusterAppConfigParams

NewCreateClusterAppConfigParamsWithContext creates a new CreateClusterAppConfigParams object with the default values initialized, and the ability to set a context for a request

func NewCreateClusterAppConfigParamsWithHTTPClient

func NewCreateClusterAppConfigParamsWithHTTPClient(client *http.Client) *CreateClusterAppConfigParams

NewCreateClusterAppConfigParamsWithHTTPClient creates a new CreateClusterAppConfigParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewCreateClusterAppConfigParamsWithTimeout

func NewCreateClusterAppConfigParamsWithTimeout(timeout time.Duration) *CreateClusterAppConfigParams

NewCreateClusterAppConfigParamsWithTimeout creates a new CreateClusterAppConfigParams object with the default values initialized, and the ability to set a timeout on a request

func (*CreateClusterAppConfigParams) SetAppName

func (o *CreateClusterAppConfigParams) SetAppName(appName string)

SetAppName adds the appName to the create cluster app config params

func (*CreateClusterAppConfigParams) SetBody

SetBody adds the body to the create cluster app config params

func (*CreateClusterAppConfigParams) SetClusterID

func (o *CreateClusterAppConfigParams) SetClusterID(clusterID string)

SetClusterID adds the clusterId to the create cluster app config params

func (*CreateClusterAppConfigParams) SetContext

func (o *CreateClusterAppConfigParams) SetContext(ctx context.Context)

SetContext adds the context to the create cluster app config params

func (*CreateClusterAppConfigParams) SetHTTPClient

func (o *CreateClusterAppConfigParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the create cluster app config params

func (*CreateClusterAppConfigParams) SetTimeout

func (o *CreateClusterAppConfigParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the create cluster app config params

func (*CreateClusterAppConfigParams) SetXGiantSwarmActivity

func (o *CreateClusterAppConfigParams) SetXGiantSwarmActivity(xGiantSwarmActivity *string)

SetXGiantSwarmActivity adds the xGiantSwarmActivity to the create cluster app config params

func (*CreateClusterAppConfigParams) SetXGiantSwarmCmdLine

func (o *CreateClusterAppConfigParams) SetXGiantSwarmCmdLine(xGiantSwarmCmdLine *string)

SetXGiantSwarmCmdLine adds the xGiantSwarmCmdLine to the create cluster app config params

func (*CreateClusterAppConfigParams) SetXRequestID

func (o *CreateClusterAppConfigParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the create cluster app config params

func (*CreateClusterAppConfigParams) WithAppName

WithAppName adds the appName to the create cluster app config params

func (*CreateClusterAppConfigParams) WithBody

WithBody adds the body to the create cluster app config params

func (*CreateClusterAppConfigParams) WithClusterID

WithClusterID adds the clusterID to the create cluster app config params

func (*CreateClusterAppConfigParams) WithContext

WithContext adds the context to the create cluster app config params

func (*CreateClusterAppConfigParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the create cluster app config params

func (*CreateClusterAppConfigParams) WithTimeout

WithTimeout adds the timeout to the create cluster app config params

func (*CreateClusterAppConfigParams) WithXGiantSwarmActivity

func (o *CreateClusterAppConfigParams) WithXGiantSwarmActivity(xGiantSwarmActivity *string) *CreateClusterAppConfigParams

WithXGiantSwarmActivity adds the xGiantSwarmActivity to the create cluster app config params

func (*CreateClusterAppConfigParams) WithXGiantSwarmCmdLine

func (o *CreateClusterAppConfigParams) WithXGiantSwarmCmdLine(xGiantSwarmCmdLine *string) *CreateClusterAppConfigParams

WithXGiantSwarmCmdLine adds the xGiantSwarmCmdLine to the create cluster app config params

func (*CreateClusterAppConfigParams) WithXRequestID

func (o *CreateClusterAppConfigParams) WithXRequestID(xRequestID *string) *CreateClusterAppConfigParams

WithXRequestID adds the xRequestID to the create cluster app config params

func (*CreateClusterAppConfigParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateClusterAppConfigReader

type CreateClusterAppConfigReader struct {
	// contains filtered or unexported fields
}

CreateClusterAppConfigReader is a Reader for the CreateClusterAppConfig structure.

func (*CreateClusterAppConfigReader) ReadResponse

func (o *CreateClusterAppConfigReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type CreateClusterAppConfigUnauthorized

type CreateClusterAppConfigUnauthorized struct {
	Payload *models.V4GenericResponse
}

CreateClusterAppConfigUnauthorized handles this case with default header values.

Permission denied

func NewCreateClusterAppConfigUnauthorized

func NewCreateClusterAppConfigUnauthorized() *CreateClusterAppConfigUnauthorized

NewCreateClusterAppConfigUnauthorized creates a CreateClusterAppConfigUnauthorized with default headers values

func (*CreateClusterAppConfigUnauthorized) Error

type DeleteClusterAppConfigDefault

type DeleteClusterAppConfigDefault struct {
	Payload *models.V4GenericResponse
	// contains filtered or unexported fields
}

DeleteClusterAppConfigDefault handles this case with default header values.

Error

func NewDeleteClusterAppConfigDefault

func NewDeleteClusterAppConfigDefault(code int) *DeleteClusterAppConfigDefault

NewDeleteClusterAppConfigDefault creates a DeleteClusterAppConfigDefault with default headers values

func (*DeleteClusterAppConfigDefault) Code

Code gets the status code for the delete cluster app config default response

func (*DeleteClusterAppConfigDefault) Error

type DeleteClusterAppConfigNotFound

type DeleteClusterAppConfigNotFound struct {
	Payload *models.V4GenericResponse
}

DeleteClusterAppConfigNotFound handles this case with default header values.

App Config not found

func NewDeleteClusterAppConfigNotFound

func NewDeleteClusterAppConfigNotFound() *DeleteClusterAppConfigNotFound

NewDeleteClusterAppConfigNotFound creates a DeleteClusterAppConfigNotFound with default headers values

func (*DeleteClusterAppConfigNotFound) Error

type DeleteClusterAppConfigOK

type DeleteClusterAppConfigOK struct {
	Payload *models.V4GenericResponse
}

DeleteClusterAppConfigOK handles this case with default header values.

App Config deleted

func NewDeleteClusterAppConfigOK

func NewDeleteClusterAppConfigOK() *DeleteClusterAppConfigOK

NewDeleteClusterAppConfigOK creates a DeleteClusterAppConfigOK with default headers values

func (*DeleteClusterAppConfigOK) Error

func (o *DeleteClusterAppConfigOK) Error() string

type DeleteClusterAppConfigParams

type DeleteClusterAppConfigParams struct {

	/*XGiantSwarmActivity
	  Name of an activity to track, like "list-clusters". This allows to
	analyze several API requests sent in context and gives an idea on
	the purpose.


	*/
	XGiantSwarmActivity *string
	/*XGiantSwarmCmdLine
	  If activity has been issued by a CLI, this header can contain the
	command line


	*/
	XGiantSwarmCmdLine *string
	/*XRequestID
	  A randomly generated key that can be used to track a request throughout
	services of Giant Swarm.


	*/
	XRequestID *string
	/*AppName
	  App Name

	*/
	AppName string
	/*ClusterID
	  Cluster ID

	*/
	ClusterID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

DeleteClusterAppConfigParams contains all the parameters to send to the API endpoint for the delete cluster app config operation typically these are written to a http.Request

func NewDeleteClusterAppConfigParams

func NewDeleteClusterAppConfigParams() *DeleteClusterAppConfigParams

NewDeleteClusterAppConfigParams creates a new DeleteClusterAppConfigParams object with the default values initialized.

func NewDeleteClusterAppConfigParamsWithContext

func NewDeleteClusterAppConfigParamsWithContext(ctx context.Context) *DeleteClusterAppConfigParams

NewDeleteClusterAppConfigParamsWithContext creates a new DeleteClusterAppConfigParams object with the default values initialized, and the ability to set a context for a request

func NewDeleteClusterAppConfigParamsWithHTTPClient

func NewDeleteClusterAppConfigParamsWithHTTPClient(client *http.Client) *DeleteClusterAppConfigParams

NewDeleteClusterAppConfigParamsWithHTTPClient creates a new DeleteClusterAppConfigParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewDeleteClusterAppConfigParamsWithTimeout

func NewDeleteClusterAppConfigParamsWithTimeout(timeout time.Duration) *DeleteClusterAppConfigParams

NewDeleteClusterAppConfigParamsWithTimeout creates a new DeleteClusterAppConfigParams object with the default values initialized, and the ability to set a timeout on a request

func (*DeleteClusterAppConfigParams) SetAppName

func (o *DeleteClusterAppConfigParams) SetAppName(appName string)

SetAppName adds the appName to the delete cluster app config params

func (*DeleteClusterAppConfigParams) SetClusterID

func (o *DeleteClusterAppConfigParams) SetClusterID(clusterID string)

SetClusterID adds the clusterId to the delete cluster app config params

func (*DeleteClusterAppConfigParams) SetContext

func (o *DeleteClusterAppConfigParams) SetContext(ctx context.Context)

SetContext adds the context to the delete cluster app config params

func (*DeleteClusterAppConfigParams) SetHTTPClient

func (o *DeleteClusterAppConfigParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the delete cluster app config params

func (*DeleteClusterAppConfigParams) SetTimeout

func (o *DeleteClusterAppConfigParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the delete cluster app config params

func (*DeleteClusterAppConfigParams) SetXGiantSwarmActivity

func (o *DeleteClusterAppConfigParams) SetXGiantSwarmActivity(xGiantSwarmActivity *string)

SetXGiantSwarmActivity adds the xGiantSwarmActivity to the delete cluster app config params

func (*DeleteClusterAppConfigParams) SetXGiantSwarmCmdLine

func (o *DeleteClusterAppConfigParams) SetXGiantSwarmCmdLine(xGiantSwarmCmdLine *string)

SetXGiantSwarmCmdLine adds the xGiantSwarmCmdLine to the delete cluster app config params

func (*DeleteClusterAppConfigParams) SetXRequestID

func (o *DeleteClusterAppConfigParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the delete cluster app config params

func (*DeleteClusterAppConfigParams) WithAppName

WithAppName adds the appName to the delete cluster app config params

func (*DeleteClusterAppConfigParams) WithClusterID

WithClusterID adds the clusterID to the delete cluster app config params

func (*DeleteClusterAppConfigParams) WithContext

WithContext adds the context to the delete cluster app config params

func (*DeleteClusterAppConfigParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the delete cluster app config params

func (*DeleteClusterAppConfigParams) WithTimeout

WithTimeout adds the timeout to the delete cluster app config params

func (*DeleteClusterAppConfigParams) WithXGiantSwarmActivity

func (o *DeleteClusterAppConfigParams) WithXGiantSwarmActivity(xGiantSwarmActivity *string) *DeleteClusterAppConfigParams

WithXGiantSwarmActivity adds the xGiantSwarmActivity to the delete cluster app config params

func (*DeleteClusterAppConfigParams) WithXGiantSwarmCmdLine

func (o *DeleteClusterAppConfigParams) WithXGiantSwarmCmdLine(xGiantSwarmCmdLine *string) *DeleteClusterAppConfigParams

WithXGiantSwarmCmdLine adds the xGiantSwarmCmdLine to the delete cluster app config params

func (*DeleteClusterAppConfigParams) WithXRequestID

func (o *DeleteClusterAppConfigParams) WithXRequestID(xRequestID *string) *DeleteClusterAppConfigParams

WithXRequestID adds the xRequestID to the delete cluster app config params

func (*DeleteClusterAppConfigParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteClusterAppConfigReader

type DeleteClusterAppConfigReader struct {
	// contains filtered or unexported fields
}

DeleteClusterAppConfigReader is a Reader for the DeleteClusterAppConfig structure.

func (*DeleteClusterAppConfigReader) ReadResponse

func (o *DeleteClusterAppConfigReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type DeleteClusterAppConfigUnauthorized

type DeleteClusterAppConfigUnauthorized struct {
	Payload *models.V4GenericResponse
}

DeleteClusterAppConfigUnauthorized handles this case with default header values.

Permission denied

func NewDeleteClusterAppConfigUnauthorized

func NewDeleteClusterAppConfigUnauthorized() *DeleteClusterAppConfigUnauthorized

NewDeleteClusterAppConfigUnauthorized creates a DeleteClusterAppConfigUnauthorized with default headers values

func (*DeleteClusterAppConfigUnauthorized) Error

type GetClusterAppConfigNotFound

type GetClusterAppConfigNotFound struct {
	Payload *models.V4GenericResponse
}

GetClusterAppConfigNotFound handles this case with default header values.

App Config not found

func NewGetClusterAppConfigNotFound

func NewGetClusterAppConfigNotFound() *GetClusterAppConfigNotFound

NewGetClusterAppConfigNotFound creates a GetClusterAppConfigNotFound with default headers values

func (*GetClusterAppConfigNotFound) Error

type GetClusterAppConfigOK

type GetClusterAppConfigOK struct {
	Payload models.V4GetClusterAppConfigResponse
}

GetClusterAppConfigOK handles this case with default header values.

Success

func NewGetClusterAppConfigOK

func NewGetClusterAppConfigOK() *GetClusterAppConfigOK

NewGetClusterAppConfigOK creates a GetClusterAppConfigOK with default headers values

func (*GetClusterAppConfigOK) Error

func (o *GetClusterAppConfigOK) Error() string

type GetClusterAppConfigParams

type GetClusterAppConfigParams struct {

	/*XGiantSwarmActivity
	  Name of an activity to track, like "list-clusters". This allows to
	analyze several API requests sent in context and gives an idea on
	the purpose.


	*/
	XGiantSwarmActivity *string
	/*XGiantSwarmCmdLine
	  If activity has been issued by a CLI, this header can contain the
	command line


	*/
	XGiantSwarmCmdLine *string
	/*XRequestID
	  A randomly generated key that can be used to track a request throughout
	services of Giant Swarm.


	*/
	XRequestID *string
	/*AppName
	  App Name

	*/
	AppName string
	/*ClusterID
	  Cluster ID

	*/
	ClusterID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetClusterAppConfigParams contains all the parameters to send to the API endpoint for the get cluster app config operation typically these are written to a http.Request

func NewGetClusterAppConfigParams

func NewGetClusterAppConfigParams() *GetClusterAppConfigParams

NewGetClusterAppConfigParams creates a new GetClusterAppConfigParams object with the default values initialized.

func NewGetClusterAppConfigParamsWithContext

func NewGetClusterAppConfigParamsWithContext(ctx context.Context) *GetClusterAppConfigParams

NewGetClusterAppConfigParamsWithContext creates a new GetClusterAppConfigParams object with the default values initialized, and the ability to set a context for a request

func NewGetClusterAppConfigParamsWithHTTPClient

func NewGetClusterAppConfigParamsWithHTTPClient(client *http.Client) *GetClusterAppConfigParams

NewGetClusterAppConfigParamsWithHTTPClient creates a new GetClusterAppConfigParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetClusterAppConfigParamsWithTimeout

func NewGetClusterAppConfigParamsWithTimeout(timeout time.Duration) *GetClusterAppConfigParams

NewGetClusterAppConfigParamsWithTimeout creates a new GetClusterAppConfigParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetClusterAppConfigParams) SetAppName

func (o *GetClusterAppConfigParams) SetAppName(appName string)

SetAppName adds the appName to the get cluster app config params

func (*GetClusterAppConfigParams) SetClusterID

func (o *GetClusterAppConfigParams) SetClusterID(clusterID string)

SetClusterID adds the clusterId to the get cluster app config params

func (*GetClusterAppConfigParams) SetContext

func (o *GetClusterAppConfigParams) SetContext(ctx context.Context)

SetContext adds the context to the get cluster app config params

func (*GetClusterAppConfigParams) SetHTTPClient

func (o *GetClusterAppConfigParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get cluster app config params

func (*GetClusterAppConfigParams) SetTimeout

func (o *GetClusterAppConfigParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get cluster app config params

func (*GetClusterAppConfigParams) SetXGiantSwarmActivity

func (o *GetClusterAppConfigParams) SetXGiantSwarmActivity(xGiantSwarmActivity *string)

SetXGiantSwarmActivity adds the xGiantSwarmActivity to the get cluster app config params

func (*GetClusterAppConfigParams) SetXGiantSwarmCmdLine

func (o *GetClusterAppConfigParams) SetXGiantSwarmCmdLine(xGiantSwarmCmdLine *string)

SetXGiantSwarmCmdLine adds the xGiantSwarmCmdLine to the get cluster app config params

func (*GetClusterAppConfigParams) SetXRequestID

func (o *GetClusterAppConfigParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the get cluster app config params

func (*GetClusterAppConfigParams) WithAppName

WithAppName adds the appName to the get cluster app config params

func (*GetClusterAppConfigParams) WithClusterID

func (o *GetClusterAppConfigParams) WithClusterID(clusterID string) *GetClusterAppConfigParams

WithClusterID adds the clusterID to the get cluster app config params

func (*GetClusterAppConfigParams) WithContext

WithContext adds the context to the get cluster app config params

func (*GetClusterAppConfigParams) WithHTTPClient

func (o *GetClusterAppConfigParams) WithHTTPClient(client *http.Client) *GetClusterAppConfigParams

WithHTTPClient adds the HTTPClient to the get cluster app config params

func (*GetClusterAppConfigParams) WithTimeout

WithTimeout adds the timeout to the get cluster app config params

func (*GetClusterAppConfigParams) WithXGiantSwarmActivity

func (o *GetClusterAppConfigParams) WithXGiantSwarmActivity(xGiantSwarmActivity *string) *GetClusterAppConfigParams

WithXGiantSwarmActivity adds the xGiantSwarmActivity to the get cluster app config params

func (*GetClusterAppConfigParams) WithXGiantSwarmCmdLine

func (o *GetClusterAppConfigParams) WithXGiantSwarmCmdLine(xGiantSwarmCmdLine *string) *GetClusterAppConfigParams

WithXGiantSwarmCmdLine adds the xGiantSwarmCmdLine to the get cluster app config params

func (*GetClusterAppConfigParams) WithXRequestID

func (o *GetClusterAppConfigParams) WithXRequestID(xRequestID *string) *GetClusterAppConfigParams

WithXRequestID adds the xRequestID to the get cluster app config params

func (*GetClusterAppConfigParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetClusterAppConfigReader

type GetClusterAppConfigReader struct {
	// contains filtered or unexported fields
}

GetClusterAppConfigReader is a Reader for the GetClusterAppConfig structure.

func (*GetClusterAppConfigReader) ReadResponse

func (o *GetClusterAppConfigReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetClusterAppConfigUnauthorized

type GetClusterAppConfigUnauthorized struct {
	Payload *models.V4GenericResponse
}

GetClusterAppConfigUnauthorized handles this case with default header values.

Permission denied

func NewGetClusterAppConfigUnauthorized

func NewGetClusterAppConfigUnauthorized() *GetClusterAppConfigUnauthorized

NewGetClusterAppConfigUnauthorized creates a GetClusterAppConfigUnauthorized with default headers values

func (*GetClusterAppConfigUnauthorized) Error

type ModifyClusterAppConfigBadRequest

type ModifyClusterAppConfigBadRequest struct {
	Payload *models.V4GenericResponse
}

ModifyClusterAppConfigBadRequest handles this case with default header values.

Invalid input

func NewModifyClusterAppConfigBadRequest

func NewModifyClusterAppConfigBadRequest() *ModifyClusterAppConfigBadRequest

NewModifyClusterAppConfigBadRequest creates a ModifyClusterAppConfigBadRequest with default headers values

func (*ModifyClusterAppConfigBadRequest) Error

type ModifyClusterAppConfigDefault

type ModifyClusterAppConfigDefault struct {
	Payload *models.V4GenericResponse
	// contains filtered or unexported fields
}

ModifyClusterAppConfigDefault handles this case with default header values.

Error

func NewModifyClusterAppConfigDefault

func NewModifyClusterAppConfigDefault(code int) *ModifyClusterAppConfigDefault

NewModifyClusterAppConfigDefault creates a ModifyClusterAppConfigDefault with default headers values

func (*ModifyClusterAppConfigDefault) Code

Code gets the status code for the modify cluster app config default response

func (*ModifyClusterAppConfigDefault) Error

type ModifyClusterAppConfigOK

type ModifyClusterAppConfigOK struct {
	Payload *models.V4GenericResponse
}

ModifyClusterAppConfigOK handles this case with default header values.

Success

func NewModifyClusterAppConfigOK

func NewModifyClusterAppConfigOK() *ModifyClusterAppConfigOK

NewModifyClusterAppConfigOK creates a ModifyClusterAppConfigOK with default headers values

func (*ModifyClusterAppConfigOK) Error

func (o *ModifyClusterAppConfigOK) Error() string

type ModifyClusterAppConfigParams

type ModifyClusterAppConfigParams struct {

	/*XGiantSwarmActivity
	  Name of an activity to track, like "list-clusters". This allows to
	analyze several API requests sent in context and gives an idea on
	the purpose.


	*/
	XGiantSwarmActivity *string
	/*XGiantSwarmCmdLine
	  If activity has been issued by a CLI, this header can contain the
	command line


	*/
	XGiantSwarmCmdLine *string
	/*XRequestID
	  A randomly generated key that can be used to track a request throughout
	services of Giant Swarm.


	*/
	XRequestID *string
	/*AppName
	  App Name

	*/
	AppName string
	/*Body*/
	Body models.V4CreateAppConfigRequest
	/*ClusterID
	  Cluster ID

	*/
	ClusterID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ModifyClusterAppConfigParams contains all the parameters to send to the API endpoint for the modify cluster app config operation typically these are written to a http.Request

func NewModifyClusterAppConfigParams

func NewModifyClusterAppConfigParams() *ModifyClusterAppConfigParams

NewModifyClusterAppConfigParams creates a new ModifyClusterAppConfigParams object with the default values initialized.

func NewModifyClusterAppConfigParamsWithContext

func NewModifyClusterAppConfigParamsWithContext(ctx context.Context) *ModifyClusterAppConfigParams

NewModifyClusterAppConfigParamsWithContext creates a new ModifyClusterAppConfigParams object with the default values initialized, and the ability to set a context for a request

func NewModifyClusterAppConfigParamsWithHTTPClient

func NewModifyClusterAppConfigParamsWithHTTPClient(client *http.Client) *ModifyClusterAppConfigParams

NewModifyClusterAppConfigParamsWithHTTPClient creates a new ModifyClusterAppConfigParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewModifyClusterAppConfigParamsWithTimeout

func NewModifyClusterAppConfigParamsWithTimeout(timeout time.Duration) *ModifyClusterAppConfigParams

NewModifyClusterAppConfigParamsWithTimeout creates a new ModifyClusterAppConfigParams object with the default values initialized, and the ability to set a timeout on a request

func (*ModifyClusterAppConfigParams) SetAppName

func (o *ModifyClusterAppConfigParams) SetAppName(appName string)

SetAppName adds the appName to the modify cluster app config params

func (*ModifyClusterAppConfigParams) SetBody

SetBody adds the body to the modify cluster app config params

func (*ModifyClusterAppConfigParams) SetClusterID

func (o *ModifyClusterAppConfigParams) SetClusterID(clusterID string)

SetClusterID adds the clusterId to the modify cluster app config params

func (*ModifyClusterAppConfigParams) SetContext

func (o *ModifyClusterAppConfigParams) SetContext(ctx context.Context)

SetContext adds the context to the modify cluster app config params

func (*ModifyClusterAppConfigParams) SetHTTPClient

func (o *ModifyClusterAppConfigParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the modify cluster app config params

func (*ModifyClusterAppConfigParams) SetTimeout

func (o *ModifyClusterAppConfigParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the modify cluster app config params

func (*ModifyClusterAppConfigParams) SetXGiantSwarmActivity

func (o *ModifyClusterAppConfigParams) SetXGiantSwarmActivity(xGiantSwarmActivity *string)

SetXGiantSwarmActivity adds the xGiantSwarmActivity to the modify cluster app config params

func (*ModifyClusterAppConfigParams) SetXGiantSwarmCmdLine

func (o *ModifyClusterAppConfigParams) SetXGiantSwarmCmdLine(xGiantSwarmCmdLine *string)

SetXGiantSwarmCmdLine adds the xGiantSwarmCmdLine to the modify cluster app config params

func (*ModifyClusterAppConfigParams) SetXRequestID

func (o *ModifyClusterAppConfigParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the modify cluster app config params

func (*ModifyClusterAppConfigParams) WithAppName

WithAppName adds the appName to the modify cluster app config params

func (*ModifyClusterAppConfigParams) WithBody

WithBody adds the body to the modify cluster app config params

func (*ModifyClusterAppConfigParams) WithClusterID

WithClusterID adds the clusterID to the modify cluster app config params

func (*ModifyClusterAppConfigParams) WithContext

WithContext adds the context to the modify cluster app config params

func (*ModifyClusterAppConfigParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the modify cluster app config params

func (*ModifyClusterAppConfigParams) WithTimeout

WithTimeout adds the timeout to the modify cluster app config params

func (*ModifyClusterAppConfigParams) WithXGiantSwarmActivity

func (o *ModifyClusterAppConfigParams) WithXGiantSwarmActivity(xGiantSwarmActivity *string) *ModifyClusterAppConfigParams

WithXGiantSwarmActivity adds the xGiantSwarmActivity to the modify cluster app config params

func (*ModifyClusterAppConfigParams) WithXGiantSwarmCmdLine

func (o *ModifyClusterAppConfigParams) WithXGiantSwarmCmdLine(xGiantSwarmCmdLine *string) *ModifyClusterAppConfigParams

WithXGiantSwarmCmdLine adds the xGiantSwarmCmdLine to the modify cluster app config params

func (*ModifyClusterAppConfigParams) WithXRequestID

func (o *ModifyClusterAppConfigParams) WithXRequestID(xRequestID *string) *ModifyClusterAppConfigParams

WithXRequestID adds the xRequestID to the modify cluster app config params

func (*ModifyClusterAppConfigParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ModifyClusterAppConfigReader

type ModifyClusterAppConfigReader struct {
	// contains filtered or unexported fields
}

ModifyClusterAppConfigReader is a Reader for the ModifyClusterAppConfig structure.

func (*ModifyClusterAppConfigReader) ReadResponse

func (o *ModifyClusterAppConfigReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type ModifyClusterAppConfigUnauthorized

type ModifyClusterAppConfigUnauthorized struct {
	Payload *models.V4GenericResponse
}

ModifyClusterAppConfigUnauthorized handles this case with default header values.

Permission denied

func NewModifyClusterAppConfigUnauthorized

func NewModifyClusterAppConfigUnauthorized() *ModifyClusterAppConfigUnauthorized

NewModifyClusterAppConfigUnauthorized creates a ModifyClusterAppConfigUnauthorized with default headers values

func (*ModifyClusterAppConfigUnauthorized) Error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL