organizations

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 AddCredentialsConflict

type AddCredentialsConflict struct {
	Payload *models.V4GenericResponse
}

AddCredentialsConflict handles this case with default header values.

Conflict

func NewAddCredentialsConflict

func NewAddCredentialsConflict() *AddCredentialsConflict

NewAddCredentialsConflict creates a AddCredentialsConflict with default headers values

func (*AddCredentialsConflict) Error

func (o *AddCredentialsConflict) Error() string

type AddCredentialsCreated

type AddCredentialsCreated struct {
	/*URI of the new credentials resource
	 */
	Location string

	Payload *models.V4GenericResponse
}

AddCredentialsCreated handles this case with default header values.

Credentials created

func NewAddCredentialsCreated

func NewAddCredentialsCreated() *AddCredentialsCreated

NewAddCredentialsCreated creates a AddCredentialsCreated with default headers values

func (*AddCredentialsCreated) Error

func (o *AddCredentialsCreated) Error() string

type AddCredentialsDefault

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

AddCredentialsDefault handles this case with default header values.

error

func NewAddCredentialsDefault

func NewAddCredentialsDefault(code int) *AddCredentialsDefault

NewAddCredentialsDefault creates a AddCredentialsDefault with default headers values

func (*AddCredentialsDefault) Code

func (o *AddCredentialsDefault) Code() int

Code gets the status code for the add credentials default response

func (*AddCredentialsDefault) Error

func (o *AddCredentialsDefault) Error() string

type AddCredentialsParams

type AddCredentialsParams 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
	/*Body*/
	Body *models.V4AddCredentialsRequest
	/*OrganizationID
	  An ID for the organization.
	This ID must be unique and match this regular
	expression: ^[a-z0-9_]{4,30}$


	*/
	OrganizationID string

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

AddCredentialsParams contains all the parameters to send to the API endpoint for the add credentials operation typically these are written to a http.Request

func NewAddCredentialsParams

func NewAddCredentialsParams() *AddCredentialsParams

NewAddCredentialsParams creates a new AddCredentialsParams object with the default values initialized.

func NewAddCredentialsParamsWithContext

func NewAddCredentialsParamsWithContext(ctx context.Context) *AddCredentialsParams

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

func NewAddCredentialsParamsWithHTTPClient

func NewAddCredentialsParamsWithHTTPClient(client *http.Client) *AddCredentialsParams

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

func NewAddCredentialsParamsWithTimeout

func NewAddCredentialsParamsWithTimeout(timeout time.Duration) *AddCredentialsParams

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

func (*AddCredentialsParams) SetBody

SetBody adds the body to the add credentials params

func (*AddCredentialsParams) SetContext

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

SetContext adds the context to the add credentials params

func (*AddCredentialsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the add credentials params

func (*AddCredentialsParams) SetOrganizationID

func (o *AddCredentialsParams) SetOrganizationID(organizationID string)

SetOrganizationID adds the organizationId to the add credentials params

func (*AddCredentialsParams) SetTimeout

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

SetTimeout adds the timeout to the add credentials params

func (*AddCredentialsParams) SetXGiantSwarmActivity

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

SetXGiantSwarmActivity adds the xGiantSwarmActivity to the add credentials params

func (*AddCredentialsParams) SetXGiantSwarmCmdLine

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

SetXGiantSwarmCmdLine adds the xGiantSwarmCmdLine to the add credentials params

func (*AddCredentialsParams) SetXRequestID

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

SetXRequestID adds the xRequestId to the add credentials params

func (*AddCredentialsParams) WithBody

WithBody adds the body to the add credentials params

func (*AddCredentialsParams) WithContext

WithContext adds the context to the add credentials params

func (*AddCredentialsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the add credentials params

func (*AddCredentialsParams) WithOrganizationID

func (o *AddCredentialsParams) WithOrganizationID(organizationID string) *AddCredentialsParams

WithOrganizationID adds the organizationID to the add credentials params

func (*AddCredentialsParams) WithTimeout

func (o *AddCredentialsParams) WithTimeout(timeout time.Duration) *AddCredentialsParams

WithTimeout adds the timeout to the add credentials params

func (*AddCredentialsParams) WithXGiantSwarmActivity

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

WithXGiantSwarmActivity adds the xGiantSwarmActivity to the add credentials params

func (*AddCredentialsParams) WithXGiantSwarmCmdLine

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

WithXGiantSwarmCmdLine adds the xGiantSwarmCmdLine to the add credentials params

func (*AddCredentialsParams) WithXRequestID

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

WithXRequestID adds the xRequestID to the add credentials params

func (*AddCredentialsParams) WriteToRequest

func (o *AddCredentialsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type AddCredentialsReader

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

AddCredentialsReader is a Reader for the AddCredentials structure.

func (*AddCredentialsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type AddCredentialsUnauthorized

type AddCredentialsUnauthorized struct {
	Payload *models.V4GenericResponse
}

AddCredentialsUnauthorized handles this case with default header values.

Permission denied

func NewAddCredentialsUnauthorized

func NewAddCredentialsUnauthorized() *AddCredentialsUnauthorized

NewAddCredentialsUnauthorized creates a AddCredentialsUnauthorized with default headers values

func (*AddCredentialsUnauthorized) Error

type AddOrganizationConflict

type AddOrganizationConflict struct {
	Payload *models.V4GenericResponse
}

AddOrganizationConflict handles this case with default header values.

Organization already exists

func NewAddOrganizationConflict

func NewAddOrganizationConflict() *AddOrganizationConflict

NewAddOrganizationConflict creates a AddOrganizationConflict with default headers values

func (*AddOrganizationConflict) Error

func (o *AddOrganizationConflict) Error() string

type AddOrganizationCreated

type AddOrganizationCreated struct {
	Payload *models.V4Organization
}

AddOrganizationCreated handles this case with default header values.

Organization created

func NewAddOrganizationCreated

func NewAddOrganizationCreated() *AddOrganizationCreated

NewAddOrganizationCreated creates a AddOrganizationCreated with default headers values

func (*AddOrganizationCreated) Error

func (o *AddOrganizationCreated) Error() string

type AddOrganizationDefault

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

AddOrganizationDefault handles this case with default header values.

Error

func NewAddOrganizationDefault

func NewAddOrganizationDefault(code int) *AddOrganizationDefault

NewAddOrganizationDefault creates a AddOrganizationDefault with default headers values

func (*AddOrganizationDefault) Code

func (o *AddOrganizationDefault) Code() int

Code gets the status code for the add organization default response

func (*AddOrganizationDefault) Error

func (o *AddOrganizationDefault) Error() string

type AddOrganizationParams

type AddOrganizationParams 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
	/*Body*/
	Body *models.V4Organization
	/*OrganizationID
	  An ID for the organization.
	This ID must be unique and match this regular
	expression: ^[a-z0-9_]{4,30}$


	*/
	OrganizationID string

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

AddOrganizationParams contains all the parameters to send to the API endpoint for the add organization operation typically these are written to a http.Request

func NewAddOrganizationParams

func NewAddOrganizationParams() *AddOrganizationParams

NewAddOrganizationParams creates a new AddOrganizationParams object with the default values initialized.

func NewAddOrganizationParamsWithContext

func NewAddOrganizationParamsWithContext(ctx context.Context) *AddOrganizationParams

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

func NewAddOrganizationParamsWithHTTPClient

func NewAddOrganizationParamsWithHTTPClient(client *http.Client) *AddOrganizationParams

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

func NewAddOrganizationParamsWithTimeout

func NewAddOrganizationParamsWithTimeout(timeout time.Duration) *AddOrganizationParams

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

func (*AddOrganizationParams) SetBody

func (o *AddOrganizationParams) SetBody(body *models.V4Organization)

SetBody adds the body to the add organization params

func (*AddOrganizationParams) SetContext

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

SetContext adds the context to the add organization params

func (*AddOrganizationParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the add organization params

func (*AddOrganizationParams) SetOrganizationID

func (o *AddOrganizationParams) SetOrganizationID(organizationID string)

SetOrganizationID adds the organizationId to the add organization params

func (*AddOrganizationParams) SetTimeout

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

SetTimeout adds the timeout to the add organization params

func (*AddOrganizationParams) SetXGiantSwarmActivity

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

SetXGiantSwarmActivity adds the xGiantSwarmActivity to the add organization params

func (*AddOrganizationParams) SetXGiantSwarmCmdLine

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

SetXGiantSwarmCmdLine adds the xGiantSwarmCmdLine to the add organization params

func (*AddOrganizationParams) SetXRequestID

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

SetXRequestID adds the xRequestId to the add organization params

func (*AddOrganizationParams) WithBody

WithBody adds the body to the add organization params

func (*AddOrganizationParams) WithContext

WithContext adds the context to the add organization params

func (*AddOrganizationParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the add organization params

func (*AddOrganizationParams) WithOrganizationID

func (o *AddOrganizationParams) WithOrganizationID(organizationID string) *AddOrganizationParams

WithOrganizationID adds the organizationID to the add organization params

func (*AddOrganizationParams) WithTimeout

func (o *AddOrganizationParams) WithTimeout(timeout time.Duration) *AddOrganizationParams

WithTimeout adds the timeout to the add organization params

func (*AddOrganizationParams) WithXGiantSwarmActivity

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

WithXGiantSwarmActivity adds the xGiantSwarmActivity to the add organization params

func (*AddOrganizationParams) WithXGiantSwarmCmdLine

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

WithXGiantSwarmCmdLine adds the xGiantSwarmCmdLine to the add organization params

func (*AddOrganizationParams) WithXRequestID

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

WithXRequestID adds the xRequestID to the add organization params

func (*AddOrganizationParams) WriteToRequest

func (o *AddOrganizationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type AddOrganizationReader

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

AddOrganizationReader is a Reader for the AddOrganization structure.

func (*AddOrganizationReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type AddOrganizationUnauthorized

type AddOrganizationUnauthorized struct {
	Payload *models.V4GenericResponse
}

AddOrganizationUnauthorized handles this case with default header values.

Permission denied

func NewAddOrganizationUnauthorized

func NewAddOrganizationUnauthorized() *AddOrganizationUnauthorized

NewAddOrganizationUnauthorized creates a AddOrganizationUnauthorized with default headers values

func (*AddOrganizationUnauthorized) Error

type Client

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

Client for organizations API

func New

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

New creates a new organizations API client.

func (*Client) AddCredentials

func (a *Client) AddCredentials(params *AddCredentialsParams, authInfo runtime.ClientAuthInfoWriter) (*AddCredentialsCreated, error)

AddCredentials sets credentials

Add a set of credentials to the organization allowing the creation and operation of clusters within a cloud provider account/subscription.

The actual type of these credentials depends on the cloud provider the installation is running on. AWS and Azure are currently supported.

Credentials in an organization are immutable. Each organization can only have one set of credentials.

Once credentials have been set for an organization, they are used for every new cluster that will be created for the organization.

### Example request body for AWS

```json

{
  "provider": "aws",
  "aws": {
    "roles": {
      "admin": "arn:aws:iam::123456789012:role/GiantSwarmAdmin",
      "awsoperator": "arn:aws:iam::123456789012:role/GiantSwarmAWSOperator"
    }
  }
}

```

### Example request body for Azure

```json

{
  "provider": "azure",
  "azure": {
    "credential": {
      "client_id": "c93bf55e-5bf7-4966-ad2b-e6f6e7721d50",
      "secret_key": "720e38f7-3af4-463c-9313-abcdf2ead612",
      "subscription_id": "b388b7c7-4479-4040-9ac5-1e13edd6b1cd",
      "tenant_id": "3dd2e94a-92ba-434c-99be-32bb65864a99"
    }
  }
}

```

func (*Client) AddOrganization

func (a *Client) AddOrganization(params *AddOrganizationParams, authInfo runtime.ClientAuthInfoWriter) (*AddOrganizationCreated, error)

AddOrganization creates an organization

This operation allows a user to create an organization.

func (*Client) DeleteOrganization

func (a *Client) DeleteOrganization(params *DeleteOrganizationParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteOrganizationOK, error)

DeleteOrganization deletes an organization

This operation allows a user to delete an organization that they are a member of. Admin users can delete any organization.

func (*Client) GetCredential

func (a *Client) GetCredential(params *GetCredentialParams, authInfo runtime.ClientAuthInfoWriter) (*GetCredentialOK, error)

GetCredential gets credential details

Returns details for a particular set of credentials, identified by its ID. The returned data does not contain any secrets (i. e. passphrase, secret key). For more information on credentials, see [Set credentials](#operation/addCredentials).

### Example response body for AWS

```json

{
  "id": "a1b2c3",
  "provider": "aws",
  "aws": {
    "roles": {
      "admin": "arn:aws:iam::123456789012:role/GiantSwarmAdmin",
      "awsoperator": "arn:aws:iam::123456789012:role/GiantSwarmAWSOperator"
    }
  }
}

```

### Example response body for Azure

```json

{
  "id": "a1b2c3",
  "provider": "azure",
  "azure": {
    "credential": {
      "client_id": "c93bf55e-5bf7-4966-ad2b-e6f6e7721d50",
      "subscription_id": "b388b7c7-4479-4040-9ac5-1e13edd6b1cd",
      "tenant_id": "3dd2e94a-92ba-434c-99be-32bb65864a99"
    }
  }
}

```

func (*Client) GetCredentials

func (a *Client) GetCredentials(params *GetCredentialsParams, authInfo runtime.ClientAuthInfoWriter) (*GetCredentialsOK, error)

GetCredentials gets credentials

Returns credentials for an organization, if available. For more information on credentials, see [Set credentials](#operation/addCredentials).

Here is another paragraph.

### Example response body for AWS

```json [

{
  "id": "a1b2c3",
  "provider": "aws",
  "aws": {
    "roles": {
      "admin": "arn:aws:iam::123456789012:role/GiantSwarmAdmin",
      "awsoperator": "arn:aws:iam::123456789012:role/GiantSwarmAWSOperator"
    }
  }
}

] ```

### Example response body for Azure

```json [

{
  "id": "a1b2c3",
  "provider": "azure",
  "azure": {
    "credential": {
      "client_id": "c93bf55e-5bf7-4966-ad2b-e6f6e7721d50",
      "subscription_id": "b388b7c7-4479-4040-9ac5-1e13edd6b1cd",
      "tenant_id": "3dd2e94a-92ba-434c-99be-32bb65864a99"
    }
  }
}

] ```

func (*Client) GetOrganization

func (a *Client) GetOrganization(params *GetOrganizationParams, authInfo runtime.ClientAuthInfoWriter) (*GetOrganizationOK, error)

GetOrganization gets organization details

This operation fetches organization details.

func (*Client) GetOrganizations

func (a *Client) GetOrganizations(params *GetOrganizationsParams, authInfo runtime.ClientAuthInfoWriter) (*GetOrganizationsOK, error)

GetOrganizations gets organizations

This operation allows to fetch a list of organizations the user is a member of. In the case of an admin user, the result includes all existing organizations.

func (*Client) ModifyOrganization

func (a *Client) ModifyOrganization(params *ModifyOrganizationParams, authInfo runtime.ClientAuthInfoWriter) (*ModifyOrganizationOK, error)

ModifyOrganization modifies organization

This operation allows you to modify an existing organization. You must be a member of the organization or an admin in order to use this endpoint.

The following attributes can be modified:

- `members`: By modifying the array of members, members can be added to or removed from the organization

The request body must conform with the [JSON Patch Merge (RFC 7386)](https://tools.ietf.org/html/rfc7386) standard. Requests have to be sent with the `Content-Type: application/merge-patch+json` header.

The full request must be valid before it will be executed, currently this means every member you attempt to add to the organization must actually exist in the system. If any member you attempt to add is invalid, the entire patch operation will fail, no members will be added or removed, and an error message will explain which members in your request are invalid.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type DeleteOrganizationConflict

type DeleteOrganizationConflict struct {
	Payload *models.V4GenericResponse
}

DeleteOrganizationConflict handles this case with default header values.

Organization has credentials

func NewDeleteOrganizationConflict

func NewDeleteOrganizationConflict() *DeleteOrganizationConflict

NewDeleteOrganizationConflict creates a DeleteOrganizationConflict with default headers values

func (*DeleteOrganizationConflict) Error

type DeleteOrganizationDefault

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

DeleteOrganizationDefault handles this case with default header values.

Error

func NewDeleteOrganizationDefault

func NewDeleteOrganizationDefault(code int) *DeleteOrganizationDefault

NewDeleteOrganizationDefault creates a DeleteOrganizationDefault with default headers values

func (*DeleteOrganizationDefault) Code

func (o *DeleteOrganizationDefault) Code() int

Code gets the status code for the delete organization default response

func (*DeleteOrganizationDefault) Error

func (o *DeleteOrganizationDefault) Error() string

type DeleteOrganizationNotFound

type DeleteOrganizationNotFound struct {
	Payload *models.V4GenericResponse
}

DeleteOrganizationNotFound handles this case with default header values.

Organization not found

func NewDeleteOrganizationNotFound

func NewDeleteOrganizationNotFound() *DeleteOrganizationNotFound

NewDeleteOrganizationNotFound creates a DeleteOrganizationNotFound with default headers values

func (*DeleteOrganizationNotFound) Error

type DeleteOrganizationOK

type DeleteOrganizationOK struct {
	Payload *models.V4GenericResponse
}

DeleteOrganizationOK handles this case with default header values.

Organization deleted

func NewDeleteOrganizationOK

func NewDeleteOrganizationOK() *DeleteOrganizationOK

NewDeleteOrganizationOK creates a DeleteOrganizationOK with default headers values

func (*DeleteOrganizationOK) Error

func (o *DeleteOrganizationOK) Error() string

type DeleteOrganizationParams

type DeleteOrganizationParams 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
	/*OrganizationID
	  An ID for the organization.
	This ID must be unique and match this regular
	expression: ^[a-z0-9_]{4,30}$


	*/
	OrganizationID string

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

DeleteOrganizationParams contains all the parameters to send to the API endpoint for the delete organization operation typically these are written to a http.Request

func NewDeleteOrganizationParams

func NewDeleteOrganizationParams() *DeleteOrganizationParams

NewDeleteOrganizationParams creates a new DeleteOrganizationParams object with the default values initialized.

func NewDeleteOrganizationParamsWithContext

func NewDeleteOrganizationParamsWithContext(ctx context.Context) *DeleteOrganizationParams

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

func NewDeleteOrganizationParamsWithHTTPClient

func NewDeleteOrganizationParamsWithHTTPClient(client *http.Client) *DeleteOrganizationParams

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

func NewDeleteOrganizationParamsWithTimeout

func NewDeleteOrganizationParamsWithTimeout(timeout time.Duration) *DeleteOrganizationParams

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

func (*DeleteOrganizationParams) SetContext

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

SetContext adds the context to the delete organization params

func (*DeleteOrganizationParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete organization params

func (*DeleteOrganizationParams) SetOrganizationID

func (o *DeleteOrganizationParams) SetOrganizationID(organizationID string)

SetOrganizationID adds the organizationId to the delete organization params

func (*DeleteOrganizationParams) SetTimeout

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

SetTimeout adds the timeout to the delete organization params

func (*DeleteOrganizationParams) SetXGiantSwarmActivity

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

SetXGiantSwarmActivity adds the xGiantSwarmActivity to the delete organization params

func (*DeleteOrganizationParams) SetXGiantSwarmCmdLine

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

SetXGiantSwarmCmdLine adds the xGiantSwarmCmdLine to the delete organization params

func (*DeleteOrganizationParams) SetXRequestID

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

SetXRequestID adds the xRequestId to the delete organization params

func (*DeleteOrganizationParams) WithContext

WithContext adds the context to the delete organization params

func (*DeleteOrganizationParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete organization params

func (*DeleteOrganizationParams) WithOrganizationID

func (o *DeleteOrganizationParams) WithOrganizationID(organizationID string) *DeleteOrganizationParams

WithOrganizationID adds the organizationID to the delete organization params

func (*DeleteOrganizationParams) WithTimeout

WithTimeout adds the timeout to the delete organization params

func (*DeleteOrganizationParams) WithXGiantSwarmActivity

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

WithXGiantSwarmActivity adds the xGiantSwarmActivity to the delete organization params

func (*DeleteOrganizationParams) WithXGiantSwarmCmdLine

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

WithXGiantSwarmCmdLine adds the xGiantSwarmCmdLine to the delete organization params

func (*DeleteOrganizationParams) WithXRequestID

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

WithXRequestID adds the xRequestID to the delete organization params

func (*DeleteOrganizationParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteOrganizationReader

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

DeleteOrganizationReader is a Reader for the DeleteOrganization structure.

func (*DeleteOrganizationReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteOrganizationUnauthorized

type DeleteOrganizationUnauthorized struct {
	Payload *models.V4GenericResponse
}

DeleteOrganizationUnauthorized handles this case with default header values.

Permission denied

func NewDeleteOrganizationUnauthorized

func NewDeleteOrganizationUnauthorized() *DeleteOrganizationUnauthorized

NewDeleteOrganizationUnauthorized creates a DeleteOrganizationUnauthorized with default headers values

func (*DeleteOrganizationUnauthorized) Error

type GetCredentialDefault

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

GetCredentialDefault handles this case with default header values.

error

func NewGetCredentialDefault

func NewGetCredentialDefault(code int) *GetCredentialDefault

NewGetCredentialDefault creates a GetCredentialDefault with default headers values

func (*GetCredentialDefault) Code

func (o *GetCredentialDefault) Code() int

Code gets the status code for the get credential default response

func (*GetCredentialDefault) Error

func (o *GetCredentialDefault) Error() string

type GetCredentialOK

type GetCredentialOK struct {
	Payload *models.V4GetCredentialResponse
}

GetCredentialOK handles this case with default header values.

Credentials details

func NewGetCredentialOK

func NewGetCredentialOK() *GetCredentialOK

NewGetCredentialOK creates a GetCredentialOK with default headers values

func (*GetCredentialOK) Error

func (o *GetCredentialOK) Error() string

type GetCredentialParams

type GetCredentialParams 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
	/*CredentialID
	  Unique ID of a credential set

	*/
	CredentialID string
	/*OrganizationID
	  An ID for the organization.
	This ID must be unique and match this regular
	expression: ^[a-z0-9_]{4,30}$


	*/
	OrganizationID string

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

GetCredentialParams contains all the parameters to send to the API endpoint for the get credential operation typically these are written to a http.Request

func NewGetCredentialParams

func NewGetCredentialParams() *GetCredentialParams

NewGetCredentialParams creates a new GetCredentialParams object with the default values initialized.

func NewGetCredentialParamsWithContext

func NewGetCredentialParamsWithContext(ctx context.Context) *GetCredentialParams

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

func NewGetCredentialParamsWithHTTPClient

func NewGetCredentialParamsWithHTTPClient(client *http.Client) *GetCredentialParams

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

func NewGetCredentialParamsWithTimeout

func NewGetCredentialParamsWithTimeout(timeout time.Duration) *GetCredentialParams

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

func (*GetCredentialParams) SetContext

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

SetContext adds the context to the get credential params

func (*GetCredentialParams) SetCredentialID

func (o *GetCredentialParams) SetCredentialID(credentialID string)

SetCredentialID adds the credentialId to the get credential params

func (*GetCredentialParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get credential params

func (*GetCredentialParams) SetOrganizationID

func (o *GetCredentialParams) SetOrganizationID(organizationID string)

SetOrganizationID adds the organizationId to the get credential params

func (*GetCredentialParams) SetTimeout

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

SetTimeout adds the timeout to the get credential params

func (*GetCredentialParams) SetXGiantSwarmActivity

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

SetXGiantSwarmActivity adds the xGiantSwarmActivity to the get credential params

func (*GetCredentialParams) SetXGiantSwarmCmdLine

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

SetXGiantSwarmCmdLine adds the xGiantSwarmCmdLine to the get credential params

func (*GetCredentialParams) SetXRequestID

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

SetXRequestID adds the xRequestId to the get credential params

func (*GetCredentialParams) WithContext

WithContext adds the context to the get credential params

func (*GetCredentialParams) WithCredentialID

func (o *GetCredentialParams) WithCredentialID(credentialID string) *GetCredentialParams

WithCredentialID adds the credentialID to the get credential params

func (*GetCredentialParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get credential params

func (*GetCredentialParams) WithOrganizationID

func (o *GetCredentialParams) WithOrganizationID(organizationID string) *GetCredentialParams

WithOrganizationID adds the organizationID to the get credential params

func (*GetCredentialParams) WithTimeout

func (o *GetCredentialParams) WithTimeout(timeout time.Duration) *GetCredentialParams

WithTimeout adds the timeout to the get credential params

func (*GetCredentialParams) WithXGiantSwarmActivity

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

WithXGiantSwarmActivity adds the xGiantSwarmActivity to the get credential params

func (*GetCredentialParams) WithXGiantSwarmCmdLine

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

WithXGiantSwarmCmdLine adds the xGiantSwarmCmdLine to the get credential params

func (*GetCredentialParams) WithXRequestID

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

WithXRequestID adds the xRequestID to the get credential params

func (*GetCredentialParams) WriteToRequest

func (o *GetCredentialParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetCredentialReader

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

GetCredentialReader is a Reader for the GetCredential structure.

func (*GetCredentialReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetCredentialsDefault

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

GetCredentialsDefault handles this case with default header values.

error

func NewGetCredentialsDefault

func NewGetCredentialsDefault(code int) *GetCredentialsDefault

NewGetCredentialsDefault creates a GetCredentialsDefault with default headers values

func (*GetCredentialsDefault) Code

func (o *GetCredentialsDefault) Code() int

Code gets the status code for the get credentials default response

func (*GetCredentialsDefault) Error

func (o *GetCredentialsDefault) Error() string

type GetCredentialsOK

type GetCredentialsOK struct {
	Payload models.V4GetCredentialsResponse
}

GetCredentialsOK handles this case with default header values.

Credentials

func NewGetCredentialsOK

func NewGetCredentialsOK() *GetCredentialsOK

NewGetCredentialsOK creates a GetCredentialsOK with default headers values

func (*GetCredentialsOK) Error

func (o *GetCredentialsOK) Error() string

type GetCredentialsParams

type GetCredentialsParams 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
	/*OrganizationID
	  An ID for the organization.
	This ID must be unique and match this regular
	expression: ^[a-z0-9_]{4,30}$


	*/
	OrganizationID string

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

GetCredentialsParams contains all the parameters to send to the API endpoint for the get credentials operation typically these are written to a http.Request

func NewGetCredentialsParams

func NewGetCredentialsParams() *GetCredentialsParams

NewGetCredentialsParams creates a new GetCredentialsParams object with the default values initialized.

func NewGetCredentialsParamsWithContext

func NewGetCredentialsParamsWithContext(ctx context.Context) *GetCredentialsParams

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

func NewGetCredentialsParamsWithHTTPClient

func NewGetCredentialsParamsWithHTTPClient(client *http.Client) *GetCredentialsParams

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

func NewGetCredentialsParamsWithTimeout

func NewGetCredentialsParamsWithTimeout(timeout time.Duration) *GetCredentialsParams

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

func (*GetCredentialsParams) SetContext

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

SetContext adds the context to the get credentials params

func (*GetCredentialsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get credentials params

func (*GetCredentialsParams) SetOrganizationID

func (o *GetCredentialsParams) SetOrganizationID(organizationID string)

SetOrganizationID adds the organizationId to the get credentials params

func (*GetCredentialsParams) SetTimeout

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

SetTimeout adds the timeout to the get credentials params

func (*GetCredentialsParams) SetXGiantSwarmActivity

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

SetXGiantSwarmActivity adds the xGiantSwarmActivity to the get credentials params

func (*GetCredentialsParams) SetXGiantSwarmCmdLine

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

SetXGiantSwarmCmdLine adds the xGiantSwarmCmdLine to the get credentials params

func (*GetCredentialsParams) SetXRequestID

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

SetXRequestID adds the xRequestId to the get credentials params

func (*GetCredentialsParams) WithContext

WithContext adds the context to the get credentials params

func (*GetCredentialsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get credentials params

func (*GetCredentialsParams) WithOrganizationID

func (o *GetCredentialsParams) WithOrganizationID(organizationID string) *GetCredentialsParams

WithOrganizationID adds the organizationID to the get credentials params

func (*GetCredentialsParams) WithTimeout

func (o *GetCredentialsParams) WithTimeout(timeout time.Duration) *GetCredentialsParams

WithTimeout adds the timeout to the get credentials params

func (*GetCredentialsParams) WithXGiantSwarmActivity

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

WithXGiantSwarmActivity adds the xGiantSwarmActivity to the get credentials params

func (*GetCredentialsParams) WithXGiantSwarmCmdLine

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

WithXGiantSwarmCmdLine adds the xGiantSwarmCmdLine to the get credentials params

func (*GetCredentialsParams) WithXRequestID

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

WithXRequestID adds the xRequestID to the get credentials params

func (*GetCredentialsParams) WriteToRequest

func (o *GetCredentialsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetCredentialsReader

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

GetCredentialsReader is a Reader for the GetCredentials structure.

func (*GetCredentialsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetOrganizationDefault

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

GetOrganizationDefault handles this case with default header values.

Error

func NewGetOrganizationDefault

func NewGetOrganizationDefault(code int) *GetOrganizationDefault

NewGetOrganizationDefault creates a GetOrganizationDefault with default headers values

func (*GetOrganizationDefault) Code

func (o *GetOrganizationDefault) Code() int

Code gets the status code for the get organization default response

func (*GetOrganizationDefault) Error

func (o *GetOrganizationDefault) Error() string

type GetOrganizationNotFound

type GetOrganizationNotFound struct {
	Payload *models.V4GenericResponse
}

GetOrganizationNotFound handles this case with default header values.

Organization not found

func NewGetOrganizationNotFound

func NewGetOrganizationNotFound() *GetOrganizationNotFound

NewGetOrganizationNotFound creates a GetOrganizationNotFound with default headers values

func (*GetOrganizationNotFound) Error

func (o *GetOrganizationNotFound) Error() string

type GetOrganizationOK

type GetOrganizationOK struct {
	Payload *models.V4Organization
}

GetOrganizationOK handles this case with default header values.

Organization details

func NewGetOrganizationOK

func NewGetOrganizationOK() *GetOrganizationOK

NewGetOrganizationOK creates a GetOrganizationOK with default headers values

func (*GetOrganizationOK) Error

func (o *GetOrganizationOK) Error() string

type GetOrganizationParams

type GetOrganizationParams 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
	/*OrganizationID
	  An ID for the organization.
	This ID must be unique and match this regular
	expression: ^[a-z0-9_]{4,30}$


	*/
	OrganizationID string

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

GetOrganizationParams contains all the parameters to send to the API endpoint for the get organization operation typically these are written to a http.Request

func NewGetOrganizationParams

func NewGetOrganizationParams() *GetOrganizationParams

NewGetOrganizationParams creates a new GetOrganizationParams object with the default values initialized.

func NewGetOrganizationParamsWithContext

func NewGetOrganizationParamsWithContext(ctx context.Context) *GetOrganizationParams

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

func NewGetOrganizationParamsWithHTTPClient

func NewGetOrganizationParamsWithHTTPClient(client *http.Client) *GetOrganizationParams

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

func NewGetOrganizationParamsWithTimeout

func NewGetOrganizationParamsWithTimeout(timeout time.Duration) *GetOrganizationParams

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

func (*GetOrganizationParams) SetContext

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

SetContext adds the context to the get organization params

func (*GetOrganizationParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get organization params

func (*GetOrganizationParams) SetOrganizationID

func (o *GetOrganizationParams) SetOrganizationID(organizationID string)

SetOrganizationID adds the organizationId to the get organization params

func (*GetOrganizationParams) SetTimeout

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

SetTimeout adds the timeout to the get organization params

func (*GetOrganizationParams) SetXGiantSwarmActivity

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

SetXGiantSwarmActivity adds the xGiantSwarmActivity to the get organization params

func (*GetOrganizationParams) SetXGiantSwarmCmdLine

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

SetXGiantSwarmCmdLine adds the xGiantSwarmCmdLine to the get organization params

func (*GetOrganizationParams) SetXRequestID

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

SetXRequestID adds the xRequestId to the get organization params

func (*GetOrganizationParams) WithContext

WithContext adds the context to the get organization params

func (*GetOrganizationParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get organization params

func (*GetOrganizationParams) WithOrganizationID

func (o *GetOrganizationParams) WithOrganizationID(organizationID string) *GetOrganizationParams

WithOrganizationID adds the organizationID to the get organization params

func (*GetOrganizationParams) WithTimeout

func (o *GetOrganizationParams) WithTimeout(timeout time.Duration) *GetOrganizationParams

WithTimeout adds the timeout to the get organization params

func (*GetOrganizationParams) WithXGiantSwarmActivity

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

WithXGiantSwarmActivity adds the xGiantSwarmActivity to the get organization params

func (*GetOrganizationParams) WithXGiantSwarmCmdLine

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

WithXGiantSwarmCmdLine adds the xGiantSwarmCmdLine to the get organization params

func (*GetOrganizationParams) WithXRequestID

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

WithXRequestID adds the xRequestID to the get organization params

func (*GetOrganizationParams) WriteToRequest

func (o *GetOrganizationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetOrganizationReader

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

GetOrganizationReader is a Reader for the GetOrganization structure.

func (*GetOrganizationReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetOrganizationUnauthorized

type GetOrganizationUnauthorized struct {
	Payload *models.V4GenericResponse
}

GetOrganizationUnauthorized handles this case with default header values.

Permission denied

func NewGetOrganizationUnauthorized

func NewGetOrganizationUnauthorized() *GetOrganizationUnauthorized

NewGetOrganizationUnauthorized creates a GetOrganizationUnauthorized with default headers values

func (*GetOrganizationUnauthorized) Error

type GetOrganizationsDefault

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

GetOrganizationsDefault handles this case with default header values.

Error

func NewGetOrganizationsDefault

func NewGetOrganizationsDefault(code int) *GetOrganizationsDefault

NewGetOrganizationsDefault creates a GetOrganizationsDefault with default headers values

func (*GetOrganizationsDefault) Code

func (o *GetOrganizationsDefault) Code() int

Code gets the status code for the get organizations default response

func (*GetOrganizationsDefault) Error

func (o *GetOrganizationsDefault) Error() string

type GetOrganizationsOK

type GetOrganizationsOK struct {
	Payload []*models.V4OrganizationListItem
}

GetOrganizationsOK handles this case with default header values.

Success

func NewGetOrganizationsOK

func NewGetOrganizationsOK() *GetOrganizationsOK

NewGetOrganizationsOK creates a GetOrganizationsOK with default headers values

func (*GetOrganizationsOK) Error

func (o *GetOrganizationsOK) Error() string

type GetOrganizationsParams

type GetOrganizationsParams 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

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

GetOrganizationsParams contains all the parameters to send to the API endpoint for the get organizations operation typically these are written to a http.Request

func NewGetOrganizationsParams

func NewGetOrganizationsParams() *GetOrganizationsParams

NewGetOrganizationsParams creates a new GetOrganizationsParams object with the default values initialized.

func NewGetOrganizationsParamsWithContext

func NewGetOrganizationsParamsWithContext(ctx context.Context) *GetOrganizationsParams

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

func NewGetOrganizationsParamsWithHTTPClient

func NewGetOrganizationsParamsWithHTTPClient(client *http.Client) *GetOrganizationsParams

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

func NewGetOrganizationsParamsWithTimeout

func NewGetOrganizationsParamsWithTimeout(timeout time.Duration) *GetOrganizationsParams

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

func (*GetOrganizationsParams) SetContext

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

SetContext adds the context to the get organizations params

func (*GetOrganizationsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get organizations params

func (*GetOrganizationsParams) SetTimeout

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

SetTimeout adds the timeout to the get organizations params

func (*GetOrganizationsParams) SetXGiantSwarmActivity

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

SetXGiantSwarmActivity adds the xGiantSwarmActivity to the get organizations params

func (*GetOrganizationsParams) SetXGiantSwarmCmdLine

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

SetXGiantSwarmCmdLine adds the xGiantSwarmCmdLine to the get organizations params

func (*GetOrganizationsParams) SetXRequestID

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

SetXRequestID adds the xRequestId to the get organizations params

func (*GetOrganizationsParams) WithContext

WithContext adds the context to the get organizations params

func (*GetOrganizationsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get organizations params

func (*GetOrganizationsParams) WithTimeout

WithTimeout adds the timeout to the get organizations params

func (*GetOrganizationsParams) WithXGiantSwarmActivity

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

WithXGiantSwarmActivity adds the xGiantSwarmActivity to the get organizations params

func (*GetOrganizationsParams) WithXGiantSwarmCmdLine

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

WithXGiantSwarmCmdLine adds the xGiantSwarmCmdLine to the get organizations params

func (*GetOrganizationsParams) WithXRequestID

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

WithXRequestID adds the xRequestID to the get organizations params

func (*GetOrganizationsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetOrganizationsReader

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

GetOrganizationsReader is a Reader for the GetOrganizations structure.

func (*GetOrganizationsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetOrganizationsUnauthorized

type GetOrganizationsUnauthorized struct {
	Payload *models.V4GenericResponse
}

GetOrganizationsUnauthorized handles this case with default header values.

Permission denied

func NewGetOrganizationsUnauthorized

func NewGetOrganizationsUnauthorized() *GetOrganizationsUnauthorized

NewGetOrganizationsUnauthorized creates a GetOrganizationsUnauthorized with default headers values

func (*GetOrganizationsUnauthorized) Error

type ModifyOrganizationBadRequest

type ModifyOrganizationBadRequest struct {
	Payload *models.V4GenericResponse
}

ModifyOrganizationBadRequest handles this case with default header values.

Invalid input

func NewModifyOrganizationBadRequest

func NewModifyOrganizationBadRequest() *ModifyOrganizationBadRequest

NewModifyOrganizationBadRequest creates a ModifyOrganizationBadRequest with default headers values

func (*ModifyOrganizationBadRequest) Error

type ModifyOrganizationDefault

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

ModifyOrganizationDefault handles this case with default header values.

error

func NewModifyOrganizationDefault

func NewModifyOrganizationDefault(code int) *ModifyOrganizationDefault

NewModifyOrganizationDefault creates a ModifyOrganizationDefault with default headers values

func (*ModifyOrganizationDefault) Code

func (o *ModifyOrganizationDefault) Code() int

Code gets the status code for the modify organization default response

func (*ModifyOrganizationDefault) Error

func (o *ModifyOrganizationDefault) Error() string

type ModifyOrganizationNotFound

type ModifyOrganizationNotFound struct {
	Payload *models.V4GenericResponse
}

ModifyOrganizationNotFound handles this case with default header values.

Organization not found

func NewModifyOrganizationNotFound

func NewModifyOrganizationNotFound() *ModifyOrganizationNotFound

NewModifyOrganizationNotFound creates a ModifyOrganizationNotFound with default headers values

func (*ModifyOrganizationNotFound) Error

type ModifyOrganizationOK

type ModifyOrganizationOK struct {
	Payload *models.V4Organization
}

ModifyOrganizationOK handles this case with default header values.

Organization modified

func NewModifyOrganizationOK

func NewModifyOrganizationOK() *ModifyOrganizationOK

NewModifyOrganizationOK creates a ModifyOrganizationOK with default headers values

func (*ModifyOrganizationOK) Error

func (o *ModifyOrganizationOK) Error() string

type ModifyOrganizationParams

type ModifyOrganizationParams 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
	/*Body*/
	Body *models.ModifyOrganizationParamsBody
	/*OrganizationID
	  An ID for the organization.
	This ID must be unique and match this regular
	expression: ^[a-z0-9_]{4,30}$


	*/
	OrganizationID string

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

ModifyOrganizationParams contains all the parameters to send to the API endpoint for the modify organization operation typically these are written to a http.Request

func NewModifyOrganizationParams

func NewModifyOrganizationParams() *ModifyOrganizationParams

NewModifyOrganizationParams creates a new ModifyOrganizationParams object with the default values initialized.

func NewModifyOrganizationParamsWithContext

func NewModifyOrganizationParamsWithContext(ctx context.Context) *ModifyOrganizationParams

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

func NewModifyOrganizationParamsWithHTTPClient

func NewModifyOrganizationParamsWithHTTPClient(client *http.Client) *ModifyOrganizationParams

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

func NewModifyOrganizationParamsWithTimeout

func NewModifyOrganizationParamsWithTimeout(timeout time.Duration) *ModifyOrganizationParams

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

func (*ModifyOrganizationParams) SetBody

SetBody adds the body to the modify organization params

func (*ModifyOrganizationParams) SetContext

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

SetContext adds the context to the modify organization params

func (*ModifyOrganizationParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the modify organization params

func (*ModifyOrganizationParams) SetOrganizationID

func (o *ModifyOrganizationParams) SetOrganizationID(organizationID string)

SetOrganizationID adds the organizationId to the modify organization params

func (*ModifyOrganizationParams) SetTimeout

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

SetTimeout adds the timeout to the modify organization params

func (*ModifyOrganizationParams) SetXGiantSwarmActivity

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

SetXGiantSwarmActivity adds the xGiantSwarmActivity to the modify organization params

func (*ModifyOrganizationParams) SetXGiantSwarmCmdLine

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

SetXGiantSwarmCmdLine adds the xGiantSwarmCmdLine to the modify organization params

func (*ModifyOrganizationParams) SetXRequestID

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

SetXRequestID adds the xRequestId to the modify organization params

func (*ModifyOrganizationParams) WithBody

WithBody adds the body to the modify organization params

func (*ModifyOrganizationParams) WithContext

WithContext adds the context to the modify organization params

func (*ModifyOrganizationParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the modify organization params

func (*ModifyOrganizationParams) WithOrganizationID

func (o *ModifyOrganizationParams) WithOrganizationID(organizationID string) *ModifyOrganizationParams

WithOrganizationID adds the organizationID to the modify organization params

func (*ModifyOrganizationParams) WithTimeout

WithTimeout adds the timeout to the modify organization params

func (*ModifyOrganizationParams) WithXGiantSwarmActivity

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

WithXGiantSwarmActivity adds the xGiantSwarmActivity to the modify organization params

func (*ModifyOrganizationParams) WithXGiantSwarmCmdLine

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

WithXGiantSwarmCmdLine adds the xGiantSwarmCmdLine to the modify organization params

func (*ModifyOrganizationParams) WithXRequestID

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

WithXRequestID adds the xRequestID to the modify organization params

func (*ModifyOrganizationParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ModifyOrganizationReader

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

ModifyOrganizationReader is a Reader for the ModifyOrganization structure.

func (*ModifyOrganizationReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ModifyOrganizationUnauthorized

type ModifyOrganizationUnauthorized struct {
	Payload *models.V4GenericResponse
}

ModifyOrganizationUnauthorized handles this case with default header values.

Permission denied

func NewModifyOrganizationUnauthorized

func NewModifyOrganizationUnauthorized() *ModifyOrganizationUnauthorized

NewModifyOrganizationUnauthorized creates a ModifyOrganizationUnauthorized with default headers values

func (*ModifyOrganizationUnauthorized) Error

Jump to

Keyboard shortcuts

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