instances

package
v0.0.0-...-878b285 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

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 instances API

func (*Client) InstancesInstancesInstanceGroupsCreate

func (a *Client) InstancesInstancesInstanceGroupsCreate(params *InstancesInstancesInstanceGroupsCreateParams) (*InstancesInstancesInstanceGroupsCreateCreated, error)
InstancesInstancesInstanceGroupsCreate creates an instance group for an instance

Make a POST request to this resource with the following instance group fields to create a new instance group associated with this instance.

* `name`: Name of this instance group. (string, required)

* `credential`: (id, default=“) * `policy_instance_percentage`: Minimum percentage of all instances that will be automatically assigned to this group when new instances come online. (integer, default=`0`) * `policy_instance_minimum`: Static minimum number of Instances that will be automatically assign to this group when new instances come online. (integer, default=`0`) * `policy_instance_list`: List of exact-match Instances that will be assigned to this group (json, default=“) * `pod_spec_override`: (string, default=`""`)

Add Instance Groups for an Instance:

Make a POST request to this resource with only an `id` field to associate an existing instance group with this instance.

Remove Instance Groups from this Instance:

Make a POST request to this resource with `id` and `disassociate` fields to remove the instance group from this instance

without deleting the instance group.

func (*Client) InstancesInstancesInstanceGroupsList

func (a *Client) InstancesInstancesInstanceGroupsList(params *InstancesInstancesInstanceGroupsListParams) (*InstancesInstancesInstanceGroupsListOK, error)
InstancesInstancesInstanceGroupsList lists instance groups for an instance

Make a GET request to this resource to retrieve a list of instance groups associated with the selected instance.

The resulting data structure contains:

{
    "count": 99,
    "next": null,
    "previous": null,
    "results": [
        ...
    ]
}

The `count` field indicates the total number of instance groups found for the given query. The `next` and `previous` fields provides links to additional results if there are more than will fit on a single page. The `results` list contains zero or more instance group records.

## Results

Each instance group data structure includes the following fields:

* `id`: Database ID for this instance group. (integer) * `type`: Data type for this instance group. (choice) * `url`: URL for this instance group. (string) * `related`: Data structure with URLs of related resources. (object) * `name`: Name of this instance group. (string) * `created`: Timestamp when this instance group was created. (datetime) * `modified`: Timestamp when this instance group was last modified. (datetime) * `capacity`: (field) * `committed_capacity`: (field) * `consumed_capacity`: (field) * `percent_capacity_remaining`: (field) * `jobs_running`: Count of jobs in the running or waiting state that are targeted for this instance group (integer) * `jobs_total`: Count of all jobs that target this instance group (integer) * `instances`: (field) * `controller`: Instance Group to remotely control this group. (id) * `is_controller`: Indicates whether instance group controls any other group (boolean) * `is_isolated`: Indicates whether instances in this group are isolated.Isolated groups have a designated controller group. (boolean) * `is_containerized`: Indicates whether instances in this group are containerized.Containerized groups have a designated Openshift or Kubernetes cluster. (boolean) * `credential`: (id) * `policy_instance_percentage`: Minimum percentage of all instances that will be automatically assigned to this group when new instances come online. (integer) * `policy_instance_minimum`: Static minimum number of Instances that will be automatically assign to this group when new instances come online. (integer) * `policy_instance_list`: List of exact-match Instances that will be assigned to this group (json) * `pod_spec_override`: (string) * `summary_fields`: Data structure with name/description for related resources. The output for some objects may be limited for performance reasons. (object)

## Sorting

To specify that instance groups are returned in a particular order, use the `order_by` query string parameter on the GET request.

?order_by=name

Prefix the field name with a dash `-` to sort in reverse:

?order_by=-name

Multiple sorting fields may be specified by separating the field names with a comma `,`:

?order_by=name,some_other_field

## Pagination

Use the `page_size` query string parameter to change the number of results returned for each request. Use the `page` query string parameter to retrieve a particular page of results.

?page_size=100&page=2

The `previous` and `next` links returned with the results will set these query string parameters automatically.

## Searching

Use the `search` query string parameter to perform a case-insensitive search within all designated text fields of a model.

?search=findme

(_Added in Ansible Tower 3.1.0_) Search across related fields:

?related__search=findme

func (*Client) InstancesInstancesJobsList

func (a *Client) InstancesInstancesJobsList(params *InstancesInstancesJobsListParams) (*InstancesInstancesJobsListOK, error)
InstancesInstancesJobsList lists unified jobs for an instance

Make a GET request to this resource to retrieve a list of unified jobs associated with the selected instance.

The resulting data structure contains:

{
    "count": 99,
    "next": null,
    "previous": null,
    "results": [
        ...
    ]
}

The `count` field indicates the total number of unified jobs found for the given query. The `next` and `previous` fields provides links to additional results if there are more than will fit on a single page. The `results` list contains zero or more unified job records.

## Results

Each unified job data structure includes the following fields:

* `id`: Database ID for this unified job. (integer) * `type`: Data type for this unified job. (choice) * `url`: URL for this unified job. (string) * `related`: Data structure with URLs of related resources. (object) * `summary_fields`: Data structure with name/description for related resources. The output for some objects may be limited for performance reasons. (object) * `created`: Timestamp when this unified job was created. (datetime) * `modified`: Timestamp when this unified job was last modified. (datetime) * `name`: Name of this unified job. (string) * `description`: Optional description of this unified job. (string) * `unified_job_template`: (id) * `launch_type`: (choice)

  • `manual`: Manual
  • `relaunch`: Relaunch
  • `callback`: Callback
  • `scheduled`: Scheduled
  • `dependency`: Dependency
  • `workflow`: Workflow
  • `webhook`: Webhook
  • `sync`: Sync
  • `scm`: SCM Update

* `status`: (choice)

  • `new`: New
  • `pending`: Pending
  • `waiting`: Waiting
  • `running`: Running
  • `successful`: Successful
  • `failed`: Failed
  • `error`: Error
  • `canceled`: Canceled

* `failed`: (boolean) * `started`: The date and time the job was queued for starting. (datetime) * `finished`: The date and time the job finished execution. (datetime) * `canceled_on`: The date and time when the cancel request was sent. (datetime) * `elapsed`: Elapsed time in seconds that the job ran. (decimal) * `job_explanation`: A status field to indicate the state of the job if it wasn't able to run and capture stdout (string) * `execution_node`: The node the job executed on. (string) * `controller_node`: The instance that managed the isolated execution environment. (string)

## Sorting

To specify that unified jobs are returned in a particular order, use the `order_by` query string parameter on the GET request.

?order_by=name

Prefix the field name with a dash `-` to sort in reverse:

?order_by=-name

Multiple sorting fields may be specified by separating the field names with a comma `,`:

?order_by=name,some_other_field

## Pagination

Use the `page_size` query string parameter to change the number of results returned for each request. Use the `page` query string parameter to retrieve a particular page of results.

?page_size=100&page=2

The `previous` and `next` links returned with the results will set these query string parameters automatically.

## Searching

Use the `search` query string parameter to perform a case-insensitive search within all designated text fields of a model.

?search=findme

(_Added in Ansible Tower 3.1.0_) Search across related fields:

?related__search=findme

func (*Client) InstancesInstancesList

func (a *Client) InstancesInstancesList(params *InstancesInstancesListParams) (*InstancesInstancesListOK, error)
InstancesInstancesList lists instances

Make a GET request to this resource to retrieve the list of instances.

The resulting data structure contains:

{
    "count": 99,
    "next": null,
    "previous": null,
    "results": [
        ...
    ]
}

The `count` field indicates the total number of instances found for the given query. The `next` and `previous` fields provides links to additional results if there are more than will fit on a single page. The `results` list contains zero or more instance records.

## Results

Each instance data structure includes the following fields:

* `id`: Database ID for this instance. (integer) * `type`: Data type for this instance. (choice) * `url`: URL for this instance. (string) * `related`: Data structure with URLs of related resources. (object) * `uuid`: (string) * `hostname`: (string) * `created`: Timestamp when this instance was created. (datetime) * `modified`: Timestamp when this instance was last modified. (datetime) * `capacity_adjustment`: (decimal) * `version`: (string) * `capacity`: (integer) * `consumed_capacity`: (field) * `percent_capacity_remaining`: (field) * `jobs_running`: Count of jobs in the running or waiting state that are targeted for this instance (integer) * `jobs_total`: Count of all jobs that target this instance (integer) * `cpu`: (integer) * `memory`: (integer) * `cpu_capacity`: (integer) * `mem_capacity`: (integer) * `enabled`: (boolean) * `managed_by_policy`: (boolean)

## Sorting

To specify that instances are returned in a particular order, use the `order_by` query string parameter on the GET request.

?order_by=name

Prefix the field name with a dash `-` to sort in reverse:

?order_by=-name

Multiple sorting fields may be specified by separating the field names with a comma `,`:

?order_by=name,some_other_field

## Pagination

Use the `page_size` query string parameter to change the number of results returned for each request. Use the `page` query string parameter to retrieve a particular page of results.

?page_size=100&page=2

The `previous` and `next` links returned with the results will set these query string parameters automatically.

## Searching

Use the `search` query string parameter to perform a case-insensitive search within all designated text fields of a model.

?search=findme

(_Added in Ansible Tower 3.1.0_) Search across related fields:

?related__search=findme

func (*Client) InstancesInstancesPartialUpdate

func (a *Client) InstancesInstancesPartialUpdate(params *InstancesInstancesPartialUpdateParams) (*InstancesInstancesPartialUpdateOK, error)
InstancesInstancesPartialUpdate updates an instance

Make a PUT or PATCH request to this resource to update this instance. The following fields may be modified:

* `capacity_adjustment`: (decimal, default=`1`)

* `enabled`: (boolean, default=`True`) * `managed_by_policy`: (boolean, default=`True`)

For a PATCH request, include only the fields that are being modified.

func (*Client) InstancesInstancesRead

func (a *Client) InstancesInstancesRead(params *InstancesInstancesReadParams) (*InstancesInstancesReadOK, error)
InstancesInstancesRead retrieves an instance

Make GET request to this resource to retrieve a single instance record containing the following fields:

* `id`: Database ID for this instance. (integer) * `type`: Data type for this instance. (choice) * `url`: URL for this instance. (string) * `related`: Data structure with URLs of related resources. (object) * `uuid`: (string) * `hostname`: (string) * `created`: Timestamp when this instance was created. (datetime) * `modified`: Timestamp when this instance was last modified. (datetime) * `capacity_adjustment`: (decimal) * `version`: (string) * `capacity`: (integer) * `consumed_capacity`: (field) * `percent_capacity_remaining`: (field) * `jobs_running`: Count of jobs in the running or waiting state that are targeted for this instance (integer) * `jobs_total`: Count of all jobs that target this instance (integer) * `cpu`: (integer) * `memory`: (integer) * `cpu_capacity`: (integer) * `mem_capacity`: (integer) * `enabled`: (boolean) * `managed_by_policy`: (boolean)

func (*Client) InstancesInstancesUpdate

func (a *Client) InstancesInstancesUpdate(params *InstancesInstancesUpdateParams) (*InstancesInstancesUpdateOK, error)
InstancesInstancesUpdate updates an instance

Make a PUT or PATCH request to this resource to update this instance. The following fields may be modified:

* `capacity_adjustment`: (decimal, default=`1`)

* `enabled`: (boolean, default=`True`) * `managed_by_policy`: (boolean, default=`True`)

For a PUT request, include **all** fields in the request.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	InstancesInstancesInstanceGroupsCreate(params *InstancesInstancesInstanceGroupsCreateParams) (*InstancesInstancesInstanceGroupsCreateCreated, error)

	InstancesInstancesInstanceGroupsList(params *InstancesInstancesInstanceGroupsListParams) (*InstancesInstancesInstanceGroupsListOK, error)

	InstancesInstancesJobsList(params *InstancesInstancesJobsListParams) (*InstancesInstancesJobsListOK, error)

	InstancesInstancesList(params *InstancesInstancesListParams) (*InstancesInstancesListOK, error)

	InstancesInstancesPartialUpdate(params *InstancesInstancesPartialUpdateParams) (*InstancesInstancesPartialUpdateOK, error)

	InstancesInstancesRead(params *InstancesInstancesReadParams) (*InstancesInstancesReadOK, error)

	InstancesInstancesUpdate(params *InstancesInstancesUpdateParams) (*InstancesInstancesUpdateOK, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

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

New creates a new instances API client.

type InstancesInstancesInstanceGroupsCreateBody

type InstancesInstancesInstanceGroupsCreateBody struct {

	// credential
	Credential int64 `json:"credential,omitempty"`

	// name
	// Required: true
	Name *string `json:"name"`

	// pod spec override
	PodSpecOverride string `json:"pod_spec_override,omitempty"`

	// List of exact-match Instances that will be assigned to this group
	PolicyInstanceList []string `json:"policy_instance_list"`

	// Static minimum number of Instances that will be automatically assign to this group when new instances come online.
	PolicyInstanceMinimum int64 `json:"policy_instance_minimum,omitempty"`

	// Minimum percentage of all instances that will be automatically assigned to this group when new instances come online.
	PolicyInstancePercentage int64 `json:"policy_instance_percentage,omitempty"`
}

InstancesInstancesInstanceGroupsCreateBody instances instances instance groups create body swagger:model InstancesInstancesInstanceGroupsCreateBody

func (*InstancesInstancesInstanceGroupsCreateBody) MarshalBinary

func (o *InstancesInstancesInstanceGroupsCreateBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*InstancesInstancesInstanceGroupsCreateBody) UnmarshalBinary

func (o *InstancesInstancesInstanceGroupsCreateBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*InstancesInstancesInstanceGroupsCreateBody) Validate

Validate validates this instances instances instance groups create body

type InstancesInstancesInstanceGroupsCreateCreated

type InstancesInstancesInstanceGroupsCreateCreated struct {
}

InstancesInstancesInstanceGroupsCreateCreated handles this case with default header values.

InstancesInstancesInstanceGroupsCreateCreated instances instances instance groups create created

func NewInstancesInstancesInstanceGroupsCreateCreated

func NewInstancesInstancesInstanceGroupsCreateCreated() *InstancesInstancesInstanceGroupsCreateCreated

NewInstancesInstancesInstanceGroupsCreateCreated creates a InstancesInstancesInstanceGroupsCreateCreated with default headers values

func (*InstancesInstancesInstanceGroupsCreateCreated) Error

type InstancesInstancesInstanceGroupsCreateParams

type InstancesInstancesInstanceGroupsCreateParams struct {

	/*Data*/
	Data InstancesInstancesInstanceGroupsCreateBody
	/*ID*/
	ID string

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

InstancesInstancesInstanceGroupsCreateParams contains all the parameters to send to the API endpoint for the instances instances instance groups create operation typically these are written to a http.Request

func NewInstancesInstancesInstanceGroupsCreateParams

func NewInstancesInstancesInstanceGroupsCreateParams() *InstancesInstancesInstanceGroupsCreateParams

NewInstancesInstancesInstanceGroupsCreateParams creates a new InstancesInstancesInstanceGroupsCreateParams object with the default values initialized.

func NewInstancesInstancesInstanceGroupsCreateParamsWithContext

func NewInstancesInstancesInstanceGroupsCreateParamsWithContext(ctx context.Context) *InstancesInstancesInstanceGroupsCreateParams

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

func NewInstancesInstancesInstanceGroupsCreateParamsWithHTTPClient

func NewInstancesInstancesInstanceGroupsCreateParamsWithHTTPClient(client *http.Client) *InstancesInstancesInstanceGroupsCreateParams

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

func NewInstancesInstancesInstanceGroupsCreateParamsWithTimeout

func NewInstancesInstancesInstanceGroupsCreateParamsWithTimeout(timeout time.Duration) *InstancesInstancesInstanceGroupsCreateParams

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

func (*InstancesInstancesInstanceGroupsCreateParams) SetContext

SetContext adds the context to the instances instances instance groups create params

func (*InstancesInstancesInstanceGroupsCreateParams) SetData

SetData adds the data to the instances instances instance groups create params

func (*InstancesInstancesInstanceGroupsCreateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the instances instances instance groups create params

func (*InstancesInstancesInstanceGroupsCreateParams) SetID

SetID adds the id to the instances instances instance groups create params

func (*InstancesInstancesInstanceGroupsCreateParams) SetTimeout

SetTimeout adds the timeout to the instances instances instance groups create params

func (*InstancesInstancesInstanceGroupsCreateParams) WithContext

WithContext adds the context to the instances instances instance groups create params

func (*InstancesInstancesInstanceGroupsCreateParams) WithData

WithData adds the data to the instances instances instance groups create params

func (*InstancesInstancesInstanceGroupsCreateParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the instances instances instance groups create params

func (*InstancesInstancesInstanceGroupsCreateParams) WithID

WithID adds the id to the instances instances instance groups create params

func (*InstancesInstancesInstanceGroupsCreateParams) WithTimeout

WithTimeout adds the timeout to the instances instances instance groups create params

func (*InstancesInstancesInstanceGroupsCreateParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type InstancesInstancesInstanceGroupsCreateReader

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

InstancesInstancesInstanceGroupsCreateReader is a Reader for the InstancesInstancesInstanceGroupsCreate structure.

func (*InstancesInstancesInstanceGroupsCreateReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type InstancesInstancesInstanceGroupsListOK

type InstancesInstancesInstanceGroupsListOK struct {
}

InstancesInstancesInstanceGroupsListOK handles this case with default header values.

OK

func NewInstancesInstancesInstanceGroupsListOK

func NewInstancesInstancesInstanceGroupsListOK() *InstancesInstancesInstanceGroupsListOK

NewInstancesInstancesInstanceGroupsListOK creates a InstancesInstancesInstanceGroupsListOK with default headers values

func (*InstancesInstancesInstanceGroupsListOK) Error

type InstancesInstancesInstanceGroupsListParams

type InstancesInstancesInstanceGroupsListParams struct {

	/*ID*/
	ID string
	/*Page
	  A page number within the paginated result set.

	*/
	Page *int64
	/*PageSize
	  Number of results to return per page.

	*/
	PageSize *int64
	/*Search
	  A search term.

	*/
	Search *string

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

InstancesInstancesInstanceGroupsListParams contains all the parameters to send to the API endpoint for the instances instances instance groups list operation typically these are written to a http.Request

func NewInstancesInstancesInstanceGroupsListParams

func NewInstancesInstancesInstanceGroupsListParams() *InstancesInstancesInstanceGroupsListParams

NewInstancesInstancesInstanceGroupsListParams creates a new InstancesInstancesInstanceGroupsListParams object with the default values initialized.

func NewInstancesInstancesInstanceGroupsListParamsWithContext

func NewInstancesInstancesInstanceGroupsListParamsWithContext(ctx context.Context) *InstancesInstancesInstanceGroupsListParams

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

func NewInstancesInstancesInstanceGroupsListParamsWithHTTPClient

func NewInstancesInstancesInstanceGroupsListParamsWithHTTPClient(client *http.Client) *InstancesInstancesInstanceGroupsListParams

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

func NewInstancesInstancesInstanceGroupsListParamsWithTimeout

func NewInstancesInstancesInstanceGroupsListParamsWithTimeout(timeout time.Duration) *InstancesInstancesInstanceGroupsListParams

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

func (*InstancesInstancesInstanceGroupsListParams) SetContext

SetContext adds the context to the instances instances instance groups list params

func (*InstancesInstancesInstanceGroupsListParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the instances instances instance groups list params

func (*InstancesInstancesInstanceGroupsListParams) SetID

SetID adds the id to the instances instances instance groups list params

func (*InstancesInstancesInstanceGroupsListParams) SetPage

SetPage adds the page to the instances instances instance groups list params

func (*InstancesInstancesInstanceGroupsListParams) SetPageSize

func (o *InstancesInstancesInstanceGroupsListParams) SetPageSize(pageSize *int64)

SetPageSize adds the pageSize to the instances instances instance groups list params

func (*InstancesInstancesInstanceGroupsListParams) SetSearch

func (o *InstancesInstancesInstanceGroupsListParams) SetSearch(search *string)

SetSearch adds the search to the instances instances instance groups list params

func (*InstancesInstancesInstanceGroupsListParams) SetTimeout

SetTimeout adds the timeout to the instances instances instance groups list params

func (*InstancesInstancesInstanceGroupsListParams) WithContext

WithContext adds the context to the instances instances instance groups list params

func (*InstancesInstancesInstanceGroupsListParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the instances instances instance groups list params

func (*InstancesInstancesInstanceGroupsListParams) WithID

WithID adds the id to the instances instances instance groups list params

func (*InstancesInstancesInstanceGroupsListParams) WithPage

WithPage adds the page to the instances instances instance groups list params

func (*InstancesInstancesInstanceGroupsListParams) WithPageSize

WithPageSize adds the pageSize to the instances instances instance groups list params

func (*InstancesInstancesInstanceGroupsListParams) WithSearch

WithSearch adds the search to the instances instances instance groups list params

func (*InstancesInstancesInstanceGroupsListParams) WithTimeout

WithTimeout adds the timeout to the instances instances instance groups list params

func (*InstancesInstancesInstanceGroupsListParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type InstancesInstancesInstanceGroupsListReader

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

InstancesInstancesInstanceGroupsListReader is a Reader for the InstancesInstancesInstanceGroupsList structure.

func (*InstancesInstancesInstanceGroupsListReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type InstancesInstancesJobsListOK

type InstancesInstancesJobsListOK struct {
}

InstancesInstancesJobsListOK handles this case with default header values.

OK

func NewInstancesInstancesJobsListOK

func NewInstancesInstancesJobsListOK() *InstancesInstancesJobsListOK

NewInstancesInstancesJobsListOK creates a InstancesInstancesJobsListOK with default headers values

func (*InstancesInstancesJobsListOK) Error

type InstancesInstancesJobsListParams

type InstancesInstancesJobsListParams struct {

	/*ID*/
	ID string
	/*Page
	  A page number within the paginated result set.

	*/
	Page *int64
	/*PageSize
	  Number of results to return per page.

	*/
	PageSize *int64
	/*Search
	  A search term.

	*/
	Search *string

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

InstancesInstancesJobsListParams contains all the parameters to send to the API endpoint for the instances instances jobs list operation typically these are written to a http.Request

func NewInstancesInstancesJobsListParams

func NewInstancesInstancesJobsListParams() *InstancesInstancesJobsListParams

NewInstancesInstancesJobsListParams creates a new InstancesInstancesJobsListParams object with the default values initialized.

func NewInstancesInstancesJobsListParamsWithContext

func NewInstancesInstancesJobsListParamsWithContext(ctx context.Context) *InstancesInstancesJobsListParams

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

func NewInstancesInstancesJobsListParamsWithHTTPClient

func NewInstancesInstancesJobsListParamsWithHTTPClient(client *http.Client) *InstancesInstancesJobsListParams

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

func NewInstancesInstancesJobsListParamsWithTimeout

func NewInstancesInstancesJobsListParamsWithTimeout(timeout time.Duration) *InstancesInstancesJobsListParams

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

func (*InstancesInstancesJobsListParams) SetContext

SetContext adds the context to the instances instances jobs list params

func (*InstancesInstancesJobsListParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the instances instances jobs list params

func (*InstancesInstancesJobsListParams) SetID

SetID adds the id to the instances instances jobs list params

func (*InstancesInstancesJobsListParams) SetPage

func (o *InstancesInstancesJobsListParams) SetPage(page *int64)

SetPage adds the page to the instances instances jobs list params

func (*InstancesInstancesJobsListParams) SetPageSize

func (o *InstancesInstancesJobsListParams) SetPageSize(pageSize *int64)

SetPageSize adds the pageSize to the instances instances jobs list params

func (*InstancesInstancesJobsListParams) SetSearch

func (o *InstancesInstancesJobsListParams) SetSearch(search *string)

SetSearch adds the search to the instances instances jobs list params

func (*InstancesInstancesJobsListParams) SetTimeout

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

SetTimeout adds the timeout to the instances instances jobs list params

func (*InstancesInstancesJobsListParams) WithContext

WithContext adds the context to the instances instances jobs list params

func (*InstancesInstancesJobsListParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the instances instances jobs list params

func (*InstancesInstancesJobsListParams) WithID

WithID adds the id to the instances instances jobs list params

func (*InstancesInstancesJobsListParams) WithPage

WithPage adds the page to the instances instances jobs list params

func (*InstancesInstancesJobsListParams) WithPageSize

WithPageSize adds the pageSize to the instances instances jobs list params

func (*InstancesInstancesJobsListParams) WithSearch

WithSearch adds the search to the instances instances jobs list params

func (*InstancesInstancesJobsListParams) WithTimeout

WithTimeout adds the timeout to the instances instances jobs list params

func (*InstancesInstancesJobsListParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type InstancesInstancesJobsListReader

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

InstancesInstancesJobsListReader is a Reader for the InstancesInstancesJobsList structure.

func (*InstancesInstancesJobsListReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type InstancesInstancesListOK

type InstancesInstancesListOK struct {
}

InstancesInstancesListOK handles this case with default header values.

OK

func NewInstancesInstancesListOK

func NewInstancesInstancesListOK() *InstancesInstancesListOK

NewInstancesInstancesListOK creates a InstancesInstancesListOK with default headers values

func (*InstancesInstancesListOK) Error

func (o *InstancesInstancesListOK) Error() string

type InstancesInstancesListParams

type InstancesInstancesListParams struct {

	/*Page
	  A page number within the paginated result set.

	*/
	Page *int64
	/*PageSize
	  Number of results to return per page.

	*/
	PageSize *int64
	/*Search
	  A search term.

	*/
	Search *string

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

InstancesInstancesListParams contains all the parameters to send to the API endpoint for the instances instances list operation typically these are written to a http.Request

func NewInstancesInstancesListParams

func NewInstancesInstancesListParams() *InstancesInstancesListParams

NewInstancesInstancesListParams creates a new InstancesInstancesListParams object with the default values initialized.

func NewInstancesInstancesListParamsWithContext

func NewInstancesInstancesListParamsWithContext(ctx context.Context) *InstancesInstancesListParams

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

func NewInstancesInstancesListParamsWithHTTPClient

func NewInstancesInstancesListParamsWithHTTPClient(client *http.Client) *InstancesInstancesListParams

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

func NewInstancesInstancesListParamsWithTimeout

func NewInstancesInstancesListParamsWithTimeout(timeout time.Duration) *InstancesInstancesListParams

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

func (*InstancesInstancesListParams) SetContext

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

SetContext adds the context to the instances instances list params

func (*InstancesInstancesListParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the instances instances list params

func (*InstancesInstancesListParams) SetPage

func (o *InstancesInstancesListParams) SetPage(page *int64)

SetPage adds the page to the instances instances list params

func (*InstancesInstancesListParams) SetPageSize

func (o *InstancesInstancesListParams) SetPageSize(pageSize *int64)

SetPageSize adds the pageSize to the instances instances list params

func (*InstancesInstancesListParams) SetSearch

func (o *InstancesInstancesListParams) SetSearch(search *string)

SetSearch adds the search to the instances instances list params

func (*InstancesInstancesListParams) SetTimeout

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

SetTimeout adds the timeout to the instances instances list params

func (*InstancesInstancesListParams) WithContext

WithContext adds the context to the instances instances list params

func (*InstancesInstancesListParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the instances instances list params

func (*InstancesInstancesListParams) WithPage

WithPage adds the page to the instances instances list params

func (*InstancesInstancesListParams) WithPageSize

WithPageSize adds the pageSize to the instances instances list params

func (*InstancesInstancesListParams) WithSearch

WithSearch adds the search to the instances instances list params

func (*InstancesInstancesListParams) WithTimeout

WithTimeout adds the timeout to the instances instances list params

func (*InstancesInstancesListParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type InstancesInstancesListReader

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

InstancesInstancesListReader is a Reader for the InstancesInstancesList structure.

func (*InstancesInstancesListReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type InstancesInstancesPartialUpdateBody

type InstancesInstancesPartialUpdateBody struct {

	// capacity adjustment
	CapacityAdjustment float64 `json:"capacity_adjustment,omitempty"`

	// enabled
	Enabled string `json:"enabled,omitempty"`

	// managed by policy
	ManagedByPolicy string `json:"managed_by_policy,omitempty"`
}

InstancesInstancesPartialUpdateBody instances instances partial update body swagger:model InstancesInstancesPartialUpdateBody

func (*InstancesInstancesPartialUpdateBody) MarshalBinary

func (o *InstancesInstancesPartialUpdateBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*InstancesInstancesPartialUpdateBody) UnmarshalBinary

func (o *InstancesInstancesPartialUpdateBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*InstancesInstancesPartialUpdateBody) Validate

Validate validates this instances instances partial update body

type InstancesInstancesPartialUpdateOK

type InstancesInstancesPartialUpdateOK struct {
}

InstancesInstancesPartialUpdateOK handles this case with default header values.

OK

func NewInstancesInstancesPartialUpdateOK

func NewInstancesInstancesPartialUpdateOK() *InstancesInstancesPartialUpdateOK

NewInstancesInstancesPartialUpdateOK creates a InstancesInstancesPartialUpdateOK with default headers values

func (*InstancesInstancesPartialUpdateOK) Error

type InstancesInstancesPartialUpdateParams

type InstancesInstancesPartialUpdateParams struct {

	/*Data*/
	Data InstancesInstancesPartialUpdateBody
	/*ID*/
	ID string
	/*Search
	  A search term.

	*/
	Search *string

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

InstancesInstancesPartialUpdateParams contains all the parameters to send to the API endpoint for the instances instances partial update operation typically these are written to a http.Request

func NewInstancesInstancesPartialUpdateParams

func NewInstancesInstancesPartialUpdateParams() *InstancesInstancesPartialUpdateParams

NewInstancesInstancesPartialUpdateParams creates a new InstancesInstancesPartialUpdateParams object with the default values initialized.

func NewInstancesInstancesPartialUpdateParamsWithContext

func NewInstancesInstancesPartialUpdateParamsWithContext(ctx context.Context) *InstancesInstancesPartialUpdateParams

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

func NewInstancesInstancesPartialUpdateParamsWithHTTPClient

func NewInstancesInstancesPartialUpdateParamsWithHTTPClient(client *http.Client) *InstancesInstancesPartialUpdateParams

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

func NewInstancesInstancesPartialUpdateParamsWithTimeout

func NewInstancesInstancesPartialUpdateParamsWithTimeout(timeout time.Duration) *InstancesInstancesPartialUpdateParams

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

func (*InstancesInstancesPartialUpdateParams) SetContext

SetContext adds the context to the instances instances partial update params

func (*InstancesInstancesPartialUpdateParams) SetData

SetData adds the data to the instances instances partial update params

func (*InstancesInstancesPartialUpdateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the instances instances partial update params

func (*InstancesInstancesPartialUpdateParams) SetID

SetID adds the id to the instances instances partial update params

func (*InstancesInstancesPartialUpdateParams) SetSearch

func (o *InstancesInstancesPartialUpdateParams) SetSearch(search *string)

SetSearch adds the search to the instances instances partial update params

func (*InstancesInstancesPartialUpdateParams) SetTimeout

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

SetTimeout adds the timeout to the instances instances partial update params

func (*InstancesInstancesPartialUpdateParams) WithContext

WithContext adds the context to the instances instances partial update params

func (*InstancesInstancesPartialUpdateParams) WithData

WithData adds the data to the instances instances partial update params

func (*InstancesInstancesPartialUpdateParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the instances instances partial update params

func (*InstancesInstancesPartialUpdateParams) WithID

WithID adds the id to the instances instances partial update params

func (*InstancesInstancesPartialUpdateParams) WithSearch

WithSearch adds the search to the instances instances partial update params

func (*InstancesInstancesPartialUpdateParams) WithTimeout

WithTimeout adds the timeout to the instances instances partial update params

func (*InstancesInstancesPartialUpdateParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type InstancesInstancesPartialUpdateReader

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

InstancesInstancesPartialUpdateReader is a Reader for the InstancesInstancesPartialUpdate structure.

func (*InstancesInstancesPartialUpdateReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type InstancesInstancesReadOK

type InstancesInstancesReadOK struct {
}

InstancesInstancesReadOK handles this case with default header values.

OK

func NewInstancesInstancesReadOK

func NewInstancesInstancesReadOK() *InstancesInstancesReadOK

NewInstancesInstancesReadOK creates a InstancesInstancesReadOK with default headers values

func (*InstancesInstancesReadOK) Error

func (o *InstancesInstancesReadOK) Error() string

type InstancesInstancesReadParams

type InstancesInstancesReadParams struct {

	/*ID*/
	ID string
	/*Search
	  A search term.

	*/
	Search *string

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

InstancesInstancesReadParams contains all the parameters to send to the API endpoint for the instances instances read operation typically these are written to a http.Request

func NewInstancesInstancesReadParams

func NewInstancesInstancesReadParams() *InstancesInstancesReadParams

NewInstancesInstancesReadParams creates a new InstancesInstancesReadParams object with the default values initialized.

func NewInstancesInstancesReadParamsWithContext

func NewInstancesInstancesReadParamsWithContext(ctx context.Context) *InstancesInstancesReadParams

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

func NewInstancesInstancesReadParamsWithHTTPClient

func NewInstancesInstancesReadParamsWithHTTPClient(client *http.Client) *InstancesInstancesReadParams

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

func NewInstancesInstancesReadParamsWithTimeout

func NewInstancesInstancesReadParamsWithTimeout(timeout time.Duration) *InstancesInstancesReadParams

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

func (*InstancesInstancesReadParams) SetContext

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

SetContext adds the context to the instances instances read params

func (*InstancesInstancesReadParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the instances instances read params

func (*InstancesInstancesReadParams) SetID

func (o *InstancesInstancesReadParams) SetID(id string)

SetID adds the id to the instances instances read params

func (*InstancesInstancesReadParams) SetSearch

func (o *InstancesInstancesReadParams) SetSearch(search *string)

SetSearch adds the search to the instances instances read params

func (*InstancesInstancesReadParams) SetTimeout

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

SetTimeout adds the timeout to the instances instances read params

func (*InstancesInstancesReadParams) WithContext

WithContext adds the context to the instances instances read params

func (*InstancesInstancesReadParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the instances instances read params

func (*InstancesInstancesReadParams) WithID

WithID adds the id to the instances instances read params

func (*InstancesInstancesReadParams) WithSearch

WithSearch adds the search to the instances instances read params

func (*InstancesInstancesReadParams) WithTimeout

WithTimeout adds the timeout to the instances instances read params

func (*InstancesInstancesReadParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type InstancesInstancesReadReader

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

InstancesInstancesReadReader is a Reader for the InstancesInstancesRead structure.

func (*InstancesInstancesReadReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type InstancesInstancesUpdateBody

type InstancesInstancesUpdateBody struct {

	// capacity adjustment
	CapacityAdjustment float64 `json:"capacity_adjustment,omitempty"`

	// enabled
	Enabled string `json:"enabled,omitempty"`

	// managed by policy
	ManagedByPolicy string `json:"managed_by_policy,omitempty"`
}

InstancesInstancesUpdateBody instances instances update body swagger:model InstancesInstancesUpdateBody

func (*InstancesInstancesUpdateBody) MarshalBinary

func (o *InstancesInstancesUpdateBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*InstancesInstancesUpdateBody) UnmarshalBinary

func (o *InstancesInstancesUpdateBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*InstancesInstancesUpdateBody) Validate

func (o *InstancesInstancesUpdateBody) Validate(formats strfmt.Registry) error

Validate validates this instances instances update body

type InstancesInstancesUpdateOK

type InstancesInstancesUpdateOK struct {
}

InstancesInstancesUpdateOK handles this case with default header values.

OK

func NewInstancesInstancesUpdateOK

func NewInstancesInstancesUpdateOK() *InstancesInstancesUpdateOK

NewInstancesInstancesUpdateOK creates a InstancesInstancesUpdateOK with default headers values

func (*InstancesInstancesUpdateOK) Error

type InstancesInstancesUpdateParams

type InstancesInstancesUpdateParams struct {

	/*Data*/
	Data InstancesInstancesUpdateBody
	/*ID*/
	ID string
	/*Search
	  A search term.

	*/
	Search *string

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

InstancesInstancesUpdateParams contains all the parameters to send to the API endpoint for the instances instances update operation typically these are written to a http.Request

func NewInstancesInstancesUpdateParams

func NewInstancesInstancesUpdateParams() *InstancesInstancesUpdateParams

NewInstancesInstancesUpdateParams creates a new InstancesInstancesUpdateParams object with the default values initialized.

func NewInstancesInstancesUpdateParamsWithContext

func NewInstancesInstancesUpdateParamsWithContext(ctx context.Context) *InstancesInstancesUpdateParams

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

func NewInstancesInstancesUpdateParamsWithHTTPClient

func NewInstancesInstancesUpdateParamsWithHTTPClient(client *http.Client) *InstancesInstancesUpdateParams

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

func NewInstancesInstancesUpdateParamsWithTimeout

func NewInstancesInstancesUpdateParamsWithTimeout(timeout time.Duration) *InstancesInstancesUpdateParams

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

func (*InstancesInstancesUpdateParams) SetContext

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

SetContext adds the context to the instances instances update params

func (*InstancesInstancesUpdateParams) SetData

SetData adds the data to the instances instances update params

func (*InstancesInstancesUpdateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the instances instances update params

func (*InstancesInstancesUpdateParams) SetID

SetID adds the id to the instances instances update params

func (*InstancesInstancesUpdateParams) SetSearch

func (o *InstancesInstancesUpdateParams) SetSearch(search *string)

SetSearch adds the search to the instances instances update params

func (*InstancesInstancesUpdateParams) SetTimeout

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

SetTimeout adds the timeout to the instances instances update params

func (*InstancesInstancesUpdateParams) WithContext

WithContext adds the context to the instances instances update params

func (*InstancesInstancesUpdateParams) WithData

WithData adds the data to the instances instances update params

func (*InstancesInstancesUpdateParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the instances instances update params

func (*InstancesInstancesUpdateParams) WithID

WithID adds the id to the instances instances update params

func (*InstancesInstancesUpdateParams) WithSearch

WithSearch adds the search to the instances instances update params

func (*InstancesInstancesUpdateParams) WithTimeout

WithTimeout adds the timeout to the instances instances update params

func (*InstancesInstancesUpdateParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type InstancesInstancesUpdateReader

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

InstancesInstancesUpdateReader is a Reader for the InstancesInstancesUpdate structure.

func (*InstancesInstancesUpdateReader) ReadResponse

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

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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