Documentation ¶
Index ¶
- type Client
- func (a *Client) InstancesInstancesInstanceGroupsCreate(params *InstancesInstancesInstanceGroupsCreateParams) (*InstancesInstancesInstanceGroupsCreateCreated, error)
- func (a *Client) InstancesInstancesInstanceGroupsList(params *InstancesInstancesInstanceGroupsListParams) (*InstancesInstancesInstanceGroupsListOK, error)
- func (a *Client) InstancesInstancesJobsList(params *InstancesInstancesJobsListParams) (*InstancesInstancesJobsListOK, error)
- func (a *Client) InstancesInstancesList(params *InstancesInstancesListParams) (*InstancesInstancesListOK, error)
- func (a *Client) InstancesInstancesPartialUpdate(params *InstancesInstancesPartialUpdateParams) (*InstancesInstancesPartialUpdateOK, error)
- func (a *Client) InstancesInstancesRead(params *InstancesInstancesReadParams) (*InstancesInstancesReadOK, error)
- func (a *Client) InstancesInstancesUpdate(params *InstancesInstancesUpdateParams) (*InstancesInstancesUpdateOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientService
- type InstancesInstancesInstanceGroupsCreateBody
- type InstancesInstancesInstanceGroupsCreateCreated
- type InstancesInstancesInstanceGroupsCreateParams
- func NewInstancesInstancesInstanceGroupsCreateParams() *InstancesInstancesInstanceGroupsCreateParams
- func NewInstancesInstancesInstanceGroupsCreateParamsWithContext(ctx context.Context) *InstancesInstancesInstanceGroupsCreateParams
- func NewInstancesInstancesInstanceGroupsCreateParamsWithHTTPClient(client *http.Client) *InstancesInstancesInstanceGroupsCreateParams
- func NewInstancesInstancesInstanceGroupsCreateParamsWithTimeout(timeout time.Duration) *InstancesInstancesInstanceGroupsCreateParams
- func (o *InstancesInstancesInstanceGroupsCreateParams) SetContext(ctx context.Context)
- func (o *InstancesInstancesInstanceGroupsCreateParams) SetData(data InstancesInstancesInstanceGroupsCreateBody)
- func (o *InstancesInstancesInstanceGroupsCreateParams) SetHTTPClient(client *http.Client)
- func (o *InstancesInstancesInstanceGroupsCreateParams) SetID(id string)
- func (o *InstancesInstancesInstanceGroupsCreateParams) SetTimeout(timeout time.Duration)
- func (o *InstancesInstancesInstanceGroupsCreateParams) WithContext(ctx context.Context) *InstancesInstancesInstanceGroupsCreateParams
- func (o *InstancesInstancesInstanceGroupsCreateParams) WithData(data InstancesInstancesInstanceGroupsCreateBody) *InstancesInstancesInstanceGroupsCreateParams
- func (o *InstancesInstancesInstanceGroupsCreateParams) WithHTTPClient(client *http.Client) *InstancesInstancesInstanceGroupsCreateParams
- func (o *InstancesInstancesInstanceGroupsCreateParams) WithID(id string) *InstancesInstancesInstanceGroupsCreateParams
- func (o *InstancesInstancesInstanceGroupsCreateParams) WithTimeout(timeout time.Duration) *InstancesInstancesInstanceGroupsCreateParams
- func (o *InstancesInstancesInstanceGroupsCreateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type InstancesInstancesInstanceGroupsCreateReader
- type InstancesInstancesInstanceGroupsListOK
- type InstancesInstancesInstanceGroupsListParams
- func NewInstancesInstancesInstanceGroupsListParams() *InstancesInstancesInstanceGroupsListParams
- func NewInstancesInstancesInstanceGroupsListParamsWithContext(ctx context.Context) *InstancesInstancesInstanceGroupsListParams
- func NewInstancesInstancesInstanceGroupsListParamsWithHTTPClient(client *http.Client) *InstancesInstancesInstanceGroupsListParams
- func NewInstancesInstancesInstanceGroupsListParamsWithTimeout(timeout time.Duration) *InstancesInstancesInstanceGroupsListParams
- func (o *InstancesInstancesInstanceGroupsListParams) SetContext(ctx context.Context)
- func (o *InstancesInstancesInstanceGroupsListParams) SetHTTPClient(client *http.Client)
- func (o *InstancesInstancesInstanceGroupsListParams) SetID(id string)
- func (o *InstancesInstancesInstanceGroupsListParams) SetPage(page *int64)
- func (o *InstancesInstancesInstanceGroupsListParams) SetPageSize(pageSize *int64)
- func (o *InstancesInstancesInstanceGroupsListParams) SetSearch(search *string)
- func (o *InstancesInstancesInstanceGroupsListParams) SetTimeout(timeout time.Duration)
- func (o *InstancesInstancesInstanceGroupsListParams) WithContext(ctx context.Context) *InstancesInstancesInstanceGroupsListParams
- func (o *InstancesInstancesInstanceGroupsListParams) WithHTTPClient(client *http.Client) *InstancesInstancesInstanceGroupsListParams
- func (o *InstancesInstancesInstanceGroupsListParams) WithID(id string) *InstancesInstancesInstanceGroupsListParams
- func (o *InstancesInstancesInstanceGroupsListParams) WithPage(page *int64) *InstancesInstancesInstanceGroupsListParams
- func (o *InstancesInstancesInstanceGroupsListParams) WithPageSize(pageSize *int64) *InstancesInstancesInstanceGroupsListParams
- func (o *InstancesInstancesInstanceGroupsListParams) WithSearch(search *string) *InstancesInstancesInstanceGroupsListParams
- func (o *InstancesInstancesInstanceGroupsListParams) WithTimeout(timeout time.Duration) *InstancesInstancesInstanceGroupsListParams
- func (o *InstancesInstancesInstanceGroupsListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type InstancesInstancesInstanceGroupsListReader
- type InstancesInstancesJobsListOK
- type InstancesInstancesJobsListParams
- func NewInstancesInstancesJobsListParams() *InstancesInstancesJobsListParams
- func NewInstancesInstancesJobsListParamsWithContext(ctx context.Context) *InstancesInstancesJobsListParams
- func NewInstancesInstancesJobsListParamsWithHTTPClient(client *http.Client) *InstancesInstancesJobsListParams
- func NewInstancesInstancesJobsListParamsWithTimeout(timeout time.Duration) *InstancesInstancesJobsListParams
- func (o *InstancesInstancesJobsListParams) SetContext(ctx context.Context)
- func (o *InstancesInstancesJobsListParams) SetHTTPClient(client *http.Client)
- func (o *InstancesInstancesJobsListParams) SetID(id string)
- func (o *InstancesInstancesJobsListParams) SetPage(page *int64)
- func (o *InstancesInstancesJobsListParams) SetPageSize(pageSize *int64)
- func (o *InstancesInstancesJobsListParams) SetSearch(search *string)
- func (o *InstancesInstancesJobsListParams) SetTimeout(timeout time.Duration)
- func (o *InstancesInstancesJobsListParams) WithContext(ctx context.Context) *InstancesInstancesJobsListParams
- func (o *InstancesInstancesJobsListParams) WithHTTPClient(client *http.Client) *InstancesInstancesJobsListParams
- func (o *InstancesInstancesJobsListParams) WithID(id string) *InstancesInstancesJobsListParams
- func (o *InstancesInstancesJobsListParams) WithPage(page *int64) *InstancesInstancesJobsListParams
- func (o *InstancesInstancesJobsListParams) WithPageSize(pageSize *int64) *InstancesInstancesJobsListParams
- func (o *InstancesInstancesJobsListParams) WithSearch(search *string) *InstancesInstancesJobsListParams
- func (o *InstancesInstancesJobsListParams) WithTimeout(timeout time.Duration) *InstancesInstancesJobsListParams
- func (o *InstancesInstancesJobsListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type InstancesInstancesJobsListReader
- type InstancesInstancesListOK
- type InstancesInstancesListParams
- func NewInstancesInstancesListParams() *InstancesInstancesListParams
- func NewInstancesInstancesListParamsWithContext(ctx context.Context) *InstancesInstancesListParams
- func NewInstancesInstancesListParamsWithHTTPClient(client *http.Client) *InstancesInstancesListParams
- func NewInstancesInstancesListParamsWithTimeout(timeout time.Duration) *InstancesInstancesListParams
- func (o *InstancesInstancesListParams) SetContext(ctx context.Context)
- func (o *InstancesInstancesListParams) SetHTTPClient(client *http.Client)
- func (o *InstancesInstancesListParams) SetPage(page *int64)
- func (o *InstancesInstancesListParams) SetPageSize(pageSize *int64)
- func (o *InstancesInstancesListParams) SetSearch(search *string)
- func (o *InstancesInstancesListParams) SetTimeout(timeout time.Duration)
- func (o *InstancesInstancesListParams) WithContext(ctx context.Context) *InstancesInstancesListParams
- func (o *InstancesInstancesListParams) WithHTTPClient(client *http.Client) *InstancesInstancesListParams
- func (o *InstancesInstancesListParams) WithPage(page *int64) *InstancesInstancesListParams
- func (o *InstancesInstancesListParams) WithPageSize(pageSize *int64) *InstancesInstancesListParams
- func (o *InstancesInstancesListParams) WithSearch(search *string) *InstancesInstancesListParams
- func (o *InstancesInstancesListParams) WithTimeout(timeout time.Duration) *InstancesInstancesListParams
- func (o *InstancesInstancesListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type InstancesInstancesListReader
- type InstancesInstancesPartialUpdateBody
- type InstancesInstancesPartialUpdateOK
- type InstancesInstancesPartialUpdateParams
- func NewInstancesInstancesPartialUpdateParams() *InstancesInstancesPartialUpdateParams
- func NewInstancesInstancesPartialUpdateParamsWithContext(ctx context.Context) *InstancesInstancesPartialUpdateParams
- func NewInstancesInstancesPartialUpdateParamsWithHTTPClient(client *http.Client) *InstancesInstancesPartialUpdateParams
- func NewInstancesInstancesPartialUpdateParamsWithTimeout(timeout time.Duration) *InstancesInstancesPartialUpdateParams
- func (o *InstancesInstancesPartialUpdateParams) SetContext(ctx context.Context)
- func (o *InstancesInstancesPartialUpdateParams) SetData(data InstancesInstancesPartialUpdateBody)
- func (o *InstancesInstancesPartialUpdateParams) SetHTTPClient(client *http.Client)
- func (o *InstancesInstancesPartialUpdateParams) SetID(id string)
- func (o *InstancesInstancesPartialUpdateParams) SetSearch(search *string)
- func (o *InstancesInstancesPartialUpdateParams) SetTimeout(timeout time.Duration)
- func (o *InstancesInstancesPartialUpdateParams) WithContext(ctx context.Context) *InstancesInstancesPartialUpdateParams
- func (o *InstancesInstancesPartialUpdateParams) WithData(data InstancesInstancesPartialUpdateBody) *InstancesInstancesPartialUpdateParams
- func (o *InstancesInstancesPartialUpdateParams) WithHTTPClient(client *http.Client) *InstancesInstancesPartialUpdateParams
- func (o *InstancesInstancesPartialUpdateParams) WithID(id string) *InstancesInstancesPartialUpdateParams
- func (o *InstancesInstancesPartialUpdateParams) WithSearch(search *string) *InstancesInstancesPartialUpdateParams
- func (o *InstancesInstancesPartialUpdateParams) WithTimeout(timeout time.Duration) *InstancesInstancesPartialUpdateParams
- func (o *InstancesInstancesPartialUpdateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type InstancesInstancesPartialUpdateReader
- type InstancesInstancesReadOK
- type InstancesInstancesReadParams
- func NewInstancesInstancesReadParams() *InstancesInstancesReadParams
- func NewInstancesInstancesReadParamsWithContext(ctx context.Context) *InstancesInstancesReadParams
- func NewInstancesInstancesReadParamsWithHTTPClient(client *http.Client) *InstancesInstancesReadParams
- func NewInstancesInstancesReadParamsWithTimeout(timeout time.Duration) *InstancesInstancesReadParams
- func (o *InstancesInstancesReadParams) SetContext(ctx context.Context)
- func (o *InstancesInstancesReadParams) SetHTTPClient(client *http.Client)
- func (o *InstancesInstancesReadParams) SetID(id string)
- func (o *InstancesInstancesReadParams) SetSearch(search *string)
- func (o *InstancesInstancesReadParams) SetTimeout(timeout time.Duration)
- func (o *InstancesInstancesReadParams) WithContext(ctx context.Context) *InstancesInstancesReadParams
- func (o *InstancesInstancesReadParams) WithHTTPClient(client *http.Client) *InstancesInstancesReadParams
- func (o *InstancesInstancesReadParams) WithID(id string) *InstancesInstancesReadParams
- func (o *InstancesInstancesReadParams) WithSearch(search *string) *InstancesInstancesReadParams
- func (o *InstancesInstancesReadParams) WithTimeout(timeout time.Duration) *InstancesInstancesReadParams
- func (o *InstancesInstancesReadParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type InstancesInstancesReadReader
- type InstancesInstancesUpdateBody
- type InstancesInstancesUpdateOK
- type InstancesInstancesUpdateParams
- func NewInstancesInstancesUpdateParams() *InstancesInstancesUpdateParams
- func NewInstancesInstancesUpdateParamsWithContext(ctx context.Context) *InstancesInstancesUpdateParams
- func NewInstancesInstancesUpdateParamsWithHTTPClient(client *http.Client) *InstancesInstancesUpdateParams
- func NewInstancesInstancesUpdateParamsWithTimeout(timeout time.Duration) *InstancesInstancesUpdateParams
- func (o *InstancesInstancesUpdateParams) SetContext(ctx context.Context)
- func (o *InstancesInstancesUpdateParams) SetData(data InstancesInstancesUpdateBody)
- func (o *InstancesInstancesUpdateParams) SetHTTPClient(client *http.Client)
- func (o *InstancesInstancesUpdateParams) SetID(id string)
- func (o *InstancesInstancesUpdateParams) SetSearch(search *string)
- func (o *InstancesInstancesUpdateParams) SetTimeout(timeout time.Duration)
- func (o *InstancesInstancesUpdateParams) WithContext(ctx context.Context) *InstancesInstancesUpdateParams
- func (o *InstancesInstancesUpdateParams) WithData(data InstancesInstancesUpdateBody) *InstancesInstancesUpdateParams
- func (o *InstancesInstancesUpdateParams) WithHTTPClient(client *http.Client) *InstancesInstancesUpdateParams
- func (o *InstancesInstancesUpdateParams) WithID(id string) *InstancesInstancesUpdateParams
- func (o *InstancesInstancesUpdateParams) WithSearch(search *string) *InstancesInstancesUpdateParams
- func (o *InstancesInstancesUpdateParams) WithTimeout(timeout time.Duration) *InstancesInstancesUpdateParams
- func (o *InstancesInstancesUpdateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type InstancesInstancesUpdateReader
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
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 ¶
func (o *InstancesInstancesInstanceGroupsCreateCreated) Error() string
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 ¶
func (o *InstancesInstancesInstanceGroupsCreateParams) SetContext(ctx context.Context)
SetContext adds the context to the instances instances instance groups create params
func (*InstancesInstancesInstanceGroupsCreateParams) SetData ¶
func (o *InstancesInstancesInstanceGroupsCreateParams) SetData(data InstancesInstancesInstanceGroupsCreateBody)
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 ¶
func (o *InstancesInstancesInstanceGroupsCreateParams) SetID(id string)
SetID adds the id to the instances instances instance groups create params
func (*InstancesInstancesInstanceGroupsCreateParams) SetTimeout ¶
func (o *InstancesInstancesInstanceGroupsCreateParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the instances instances instance groups create params
func (*InstancesInstancesInstanceGroupsCreateParams) WithContext ¶
func (o *InstancesInstancesInstanceGroupsCreateParams) WithContext(ctx context.Context) *InstancesInstancesInstanceGroupsCreateParams
WithContext adds the context to the instances instances instance groups create params
func (*InstancesInstancesInstanceGroupsCreateParams) WithData ¶
func (o *InstancesInstancesInstanceGroupsCreateParams) WithData(data InstancesInstancesInstanceGroupsCreateBody) *InstancesInstancesInstanceGroupsCreateParams
WithData adds the data to the instances instances instance groups create params
func (*InstancesInstancesInstanceGroupsCreateParams) WithHTTPClient ¶
func (o *InstancesInstancesInstanceGroupsCreateParams) WithHTTPClient(client *http.Client) *InstancesInstancesInstanceGroupsCreateParams
WithHTTPClient adds the HTTPClient to the instances instances instance groups create params
func (*InstancesInstancesInstanceGroupsCreateParams) WithID ¶
func (o *InstancesInstancesInstanceGroupsCreateParams) WithID(id string) *InstancesInstancesInstanceGroupsCreateParams
WithID adds the id to the instances instances instance groups create params
func (*InstancesInstancesInstanceGroupsCreateParams) WithTimeout ¶
func (o *InstancesInstancesInstanceGroupsCreateParams) WithTimeout(timeout time.Duration) *InstancesInstancesInstanceGroupsCreateParams
WithTimeout adds the timeout to the instances instances instance groups create params
func (*InstancesInstancesInstanceGroupsCreateParams) WriteToRequest ¶
func (o *InstancesInstancesInstanceGroupsCreateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *InstancesInstancesInstanceGroupsListOK) Error() string
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 ¶
func (o *InstancesInstancesInstanceGroupsListParams) SetContext(ctx context.Context)
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 ¶
func (o *InstancesInstancesInstanceGroupsListParams) SetID(id string)
SetID adds the id to the instances instances instance groups list params
func (*InstancesInstancesInstanceGroupsListParams) SetPage ¶
func (o *InstancesInstancesInstanceGroupsListParams) SetPage(page *int64)
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 ¶
func (o *InstancesInstancesInstanceGroupsListParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the instances instances instance groups list params
func (*InstancesInstancesInstanceGroupsListParams) WithContext ¶
func (o *InstancesInstancesInstanceGroupsListParams) WithContext(ctx context.Context) *InstancesInstancesInstanceGroupsListParams
WithContext adds the context to the instances instances instance groups list params
func (*InstancesInstancesInstanceGroupsListParams) WithHTTPClient ¶
func (o *InstancesInstancesInstanceGroupsListParams) WithHTTPClient(client *http.Client) *InstancesInstancesInstanceGroupsListParams
WithHTTPClient adds the HTTPClient to the instances instances instance groups list params
func (*InstancesInstancesInstanceGroupsListParams) WithID ¶
func (o *InstancesInstancesInstanceGroupsListParams) WithID(id string) *InstancesInstancesInstanceGroupsListParams
WithID adds the id to the instances instances instance groups list params
func (*InstancesInstancesInstanceGroupsListParams) WithPage ¶
func (o *InstancesInstancesInstanceGroupsListParams) WithPage(page *int64) *InstancesInstancesInstanceGroupsListParams
WithPage adds the page to the instances instances instance groups list params
func (*InstancesInstancesInstanceGroupsListParams) WithPageSize ¶
func (o *InstancesInstancesInstanceGroupsListParams) WithPageSize(pageSize *int64) *InstancesInstancesInstanceGroupsListParams
WithPageSize adds the pageSize to the instances instances instance groups list params
func (*InstancesInstancesInstanceGroupsListParams) WithSearch ¶
func (o *InstancesInstancesInstanceGroupsListParams) WithSearch(search *string) *InstancesInstancesInstanceGroupsListParams
WithSearch adds the search to the instances instances instance groups list params
func (*InstancesInstancesInstanceGroupsListParams) WithTimeout ¶
func (o *InstancesInstancesInstanceGroupsListParams) WithTimeout(timeout time.Duration) *InstancesInstancesInstanceGroupsListParams
WithTimeout adds the timeout to the instances instances instance groups list params
func (*InstancesInstancesInstanceGroupsListParams) WriteToRequest ¶
func (o *InstancesInstancesInstanceGroupsListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *InstancesInstancesJobsListOK) Error() string
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 ¶
func (o *InstancesInstancesJobsListParams) SetContext(ctx context.Context)
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 ¶
func (o *InstancesInstancesJobsListParams) SetID(id string)
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 ¶
func (o *InstancesInstancesJobsListParams) WithContext(ctx context.Context) *InstancesInstancesJobsListParams
WithContext adds the context to the instances instances jobs list params
func (*InstancesInstancesJobsListParams) WithHTTPClient ¶
func (o *InstancesInstancesJobsListParams) WithHTTPClient(client *http.Client) *InstancesInstancesJobsListParams
WithHTTPClient adds the HTTPClient to the instances instances jobs list params
func (*InstancesInstancesJobsListParams) WithID ¶
func (o *InstancesInstancesJobsListParams) WithID(id string) *InstancesInstancesJobsListParams
WithID adds the id to the instances instances jobs list params
func (*InstancesInstancesJobsListParams) WithPage ¶
func (o *InstancesInstancesJobsListParams) WithPage(page *int64) *InstancesInstancesJobsListParams
WithPage adds the page to the instances instances jobs list params
func (*InstancesInstancesJobsListParams) WithPageSize ¶
func (o *InstancesInstancesJobsListParams) WithPageSize(pageSize *int64) *InstancesInstancesJobsListParams
WithPageSize adds the pageSize to the instances instances jobs list params
func (*InstancesInstancesJobsListParams) WithSearch ¶
func (o *InstancesInstancesJobsListParams) WithSearch(search *string) *InstancesInstancesJobsListParams
WithSearch adds the search to the instances instances jobs list params
func (*InstancesInstancesJobsListParams) WithTimeout ¶
func (o *InstancesInstancesJobsListParams) WithTimeout(timeout time.Duration) *InstancesInstancesJobsListParams
WithTimeout adds the timeout to the instances instances jobs list params
func (*InstancesInstancesJobsListParams) WriteToRequest ¶
func (o *InstancesInstancesJobsListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *InstancesInstancesListParams) WithContext(ctx context.Context) *InstancesInstancesListParams
WithContext adds the context to the instances instances list params
func (*InstancesInstancesListParams) WithHTTPClient ¶
func (o *InstancesInstancesListParams) WithHTTPClient(client *http.Client) *InstancesInstancesListParams
WithHTTPClient adds the HTTPClient to the instances instances list params
func (*InstancesInstancesListParams) WithPage ¶
func (o *InstancesInstancesListParams) WithPage(page *int64) *InstancesInstancesListParams
WithPage adds the page to the instances instances list params
func (*InstancesInstancesListParams) WithPageSize ¶
func (o *InstancesInstancesListParams) WithPageSize(pageSize *int64) *InstancesInstancesListParams
WithPageSize adds the pageSize to the instances instances list params
func (*InstancesInstancesListParams) WithSearch ¶
func (o *InstancesInstancesListParams) WithSearch(search *string) *InstancesInstancesListParams
WithSearch adds the search to the instances instances list params
func (*InstancesInstancesListParams) WithTimeout ¶
func (o *InstancesInstancesListParams) WithTimeout(timeout time.Duration) *InstancesInstancesListParams
WithTimeout adds the timeout to the instances instances list params
func (*InstancesInstancesListParams) WriteToRequest ¶
func (o *InstancesInstancesListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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
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 ¶
func (o *InstancesInstancesPartialUpdateOK) Error() string
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 ¶
func (o *InstancesInstancesPartialUpdateParams) SetContext(ctx context.Context)
SetContext adds the context to the instances instances partial update params
func (*InstancesInstancesPartialUpdateParams) SetData ¶
func (o *InstancesInstancesPartialUpdateParams) SetData(data InstancesInstancesPartialUpdateBody)
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 ¶
func (o *InstancesInstancesPartialUpdateParams) SetID(id string)
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 ¶
func (o *InstancesInstancesPartialUpdateParams) WithContext(ctx context.Context) *InstancesInstancesPartialUpdateParams
WithContext adds the context to the instances instances partial update params
func (*InstancesInstancesPartialUpdateParams) WithData ¶
func (o *InstancesInstancesPartialUpdateParams) WithData(data InstancesInstancesPartialUpdateBody) *InstancesInstancesPartialUpdateParams
WithData adds the data to the instances instances partial update params
func (*InstancesInstancesPartialUpdateParams) WithHTTPClient ¶
func (o *InstancesInstancesPartialUpdateParams) WithHTTPClient(client *http.Client) *InstancesInstancesPartialUpdateParams
WithHTTPClient adds the HTTPClient to the instances instances partial update params
func (*InstancesInstancesPartialUpdateParams) WithID ¶
func (o *InstancesInstancesPartialUpdateParams) WithID(id string) *InstancesInstancesPartialUpdateParams
WithID adds the id to the instances instances partial update params
func (*InstancesInstancesPartialUpdateParams) WithSearch ¶
func (o *InstancesInstancesPartialUpdateParams) WithSearch(search *string) *InstancesInstancesPartialUpdateParams
WithSearch adds the search to the instances instances partial update params
func (*InstancesInstancesPartialUpdateParams) WithTimeout ¶
func (o *InstancesInstancesPartialUpdateParams) WithTimeout(timeout time.Duration) *InstancesInstancesPartialUpdateParams
WithTimeout adds the timeout to the instances instances partial update params
func (*InstancesInstancesPartialUpdateParams) WriteToRequest ¶
func (o *InstancesInstancesPartialUpdateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *InstancesInstancesReadParams) WithContext(ctx context.Context) *InstancesInstancesReadParams
WithContext adds the context to the instances instances read params
func (*InstancesInstancesReadParams) WithHTTPClient ¶
func (o *InstancesInstancesReadParams) WithHTTPClient(client *http.Client) *InstancesInstancesReadParams
WithHTTPClient adds the HTTPClient to the instances instances read params
func (*InstancesInstancesReadParams) WithID ¶
func (o *InstancesInstancesReadParams) WithID(id string) *InstancesInstancesReadParams
WithID adds the id to the instances instances read params
func (*InstancesInstancesReadParams) WithSearch ¶
func (o *InstancesInstancesReadParams) WithSearch(search *string) *InstancesInstancesReadParams
WithSearch adds the search to the instances instances read params
func (*InstancesInstancesReadParams) WithTimeout ¶
func (o *InstancesInstancesReadParams) WithTimeout(timeout time.Duration) *InstancesInstancesReadParams
WithTimeout adds the timeout to the instances instances read params
func (*InstancesInstancesReadParams) WriteToRequest ¶
func (o *InstancesInstancesReadParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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
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 ¶
func (o *InstancesInstancesUpdateOK) Error() string
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 ¶
func (o *InstancesInstancesUpdateParams) SetData(data InstancesInstancesUpdateBody)
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 ¶
func (o *InstancesInstancesUpdateParams) SetID(id string)
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 ¶
func (o *InstancesInstancesUpdateParams) WithContext(ctx context.Context) *InstancesInstancesUpdateParams
WithContext adds the context to the instances instances update params
func (*InstancesInstancesUpdateParams) WithData ¶
func (o *InstancesInstancesUpdateParams) WithData(data InstancesInstancesUpdateBody) *InstancesInstancesUpdateParams
WithData adds the data to the instances instances update params
func (*InstancesInstancesUpdateParams) WithHTTPClient ¶
func (o *InstancesInstancesUpdateParams) WithHTTPClient(client *http.Client) *InstancesInstancesUpdateParams
WithHTTPClient adds the HTTPClient to the instances instances update params
func (*InstancesInstancesUpdateParams) WithID ¶
func (o *InstancesInstancesUpdateParams) WithID(id string) *InstancesInstancesUpdateParams
WithID adds the id to the instances instances update params
func (*InstancesInstancesUpdateParams) WithSearch ¶
func (o *InstancesInstancesUpdateParams) WithSearch(search *string) *InstancesInstancesUpdateParams
WithSearch adds the search to the instances instances update params
func (*InstancesInstancesUpdateParams) WithTimeout ¶
func (o *InstancesInstancesUpdateParams) WithTimeout(timeout time.Duration) *InstancesInstancesUpdateParams
WithTimeout adds the timeout to the instances instances update params
func (*InstancesInstancesUpdateParams) WriteToRequest ¶
func (o *InstancesInstancesUpdateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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.
Source Files ¶
- instances_client.go
- instances_instances_instance_groups_create_parameters.go
- instances_instances_instance_groups_create_responses.go
- instances_instances_instance_groups_list_parameters.go
- instances_instances_instance_groups_list_responses.go
- instances_instances_jobs_list_parameters.go
- instances_instances_jobs_list_responses.go
- instances_instances_list_parameters.go
- instances_instances_list_responses.go
- instances_instances_partial_update_parameters.go
- instances_instances_partial_update_responses.go
- instances_instances_read_parameters.go
- instances_instances_read_responses.go
- instances_instances_update_parameters.go
- instances_instances_update_responses.go