Documentation
¶
Index ¶
- type ApplicationGetDefault
- type ApplicationGetOK
- type ApplicationGetParams
- func (o *ApplicationGetParams) SetAPIVersion(aPIVersion string)
- func (o *ApplicationGetParams) SetApplicationID(applicationID string)
- func (o *ApplicationGetParams) SetClientRequestID(clientRequestID *string)
- func (o *ApplicationGetParams) SetContext(ctx context.Context)
- func (o *ApplicationGetParams) SetOcpDate(ocpDate *string)
- func (o *ApplicationGetParams) SetRequestTimeout(timeout time.Duration)
- func (o *ApplicationGetParams) SetReturnClientRequestID(returnClientRequestID *bool)
- func (o *ApplicationGetParams) SetTimeout(timeout *int32)
- func (o *ApplicationGetParams) WithAPIVersion(aPIVersion string) *ApplicationGetParams
- func (o *ApplicationGetParams) WithApplicationID(applicationID string) *ApplicationGetParams
- func (o *ApplicationGetParams) WithClientRequestID(clientRequestID *string) *ApplicationGetParams
- func (o *ApplicationGetParams) WithContext(ctx context.Context) *ApplicationGetParams
- func (o *ApplicationGetParams) WithOcpDate(ocpDate *string) *ApplicationGetParams
- func (o *ApplicationGetParams) WithRequestTimeout(timeout time.Duration) *ApplicationGetParams
- func (o *ApplicationGetParams) WithReturnClientRequestID(returnClientRequestID *bool) *ApplicationGetParams
- func (o *ApplicationGetParams) WithTimeout(timeout *int32) *ApplicationGetParams
- func (o *ApplicationGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ApplicationGetReader
- type ApplicationListDefault
- type ApplicationListOK
- type ApplicationListParams
- func (o *ApplicationListParams) SetAPIVersion(aPIVersion string)
- func (o *ApplicationListParams) SetClientRequestID(clientRequestID *string)
- func (o *ApplicationListParams) SetContext(ctx context.Context)
- func (o *ApplicationListParams) SetMaxresults(maxresults *int32)
- func (o *ApplicationListParams) SetOcpDate(ocpDate *string)
- func (o *ApplicationListParams) SetRequestTimeout(timeout time.Duration)
- func (o *ApplicationListParams) SetReturnClientRequestID(returnClientRequestID *bool)
- func (o *ApplicationListParams) SetTimeout(timeout *int32)
- func (o *ApplicationListParams) WithAPIVersion(aPIVersion string) *ApplicationListParams
- func (o *ApplicationListParams) WithClientRequestID(clientRequestID *string) *ApplicationListParams
- func (o *ApplicationListParams) WithContext(ctx context.Context) *ApplicationListParams
- func (o *ApplicationListParams) WithMaxresults(maxresults *int32) *ApplicationListParams
- func (o *ApplicationListParams) WithOcpDate(ocpDate *string) *ApplicationListParams
- func (o *ApplicationListParams) WithRequestTimeout(timeout time.Duration) *ApplicationListParams
- func (o *ApplicationListParams) WithReturnClientRequestID(returnClientRequestID *bool) *ApplicationListParams
- func (o *ApplicationListParams) WithTimeout(timeout *int32) *ApplicationListParams
- func (o *ApplicationListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ApplicationListReader
- type Client
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplicationGetDefault ¶
type ApplicationGetDefault struct { Payload *models.BatchError // contains filtered or unexported fields }
ApplicationGetDefault handles this case with default header values.
The error from the Batch service.
func NewApplicationGetDefault ¶
func NewApplicationGetDefault(code int) *ApplicationGetDefault
NewApplicationGetDefault creates a ApplicationGetDefault with default headers values
func (*ApplicationGetDefault) Code ¶
func (o *ApplicationGetDefault) Code() int
Code gets the status code for the application get default response
func (*ApplicationGetDefault) Error ¶
func (o *ApplicationGetDefault) Error() string
type ApplicationGetOK ¶
type ApplicationGetOK struct { /*The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers. */ ETag string /*The time at which the resource was last modified. */ LastModified string /*The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ ClientRequestID string /*This header uniquely identifies the request that was made and can be used for troubleshooting the request. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this header, the approximate time that the request was made, the Batch account against which the request was made, and the region that account resides in. */ RequestID string Payload *models.ApplicationSummary }
ApplicationGetOK handles this case with default header values.
A response containing the application.
func NewApplicationGetOK ¶
func NewApplicationGetOK() *ApplicationGetOK
NewApplicationGetOK creates a ApplicationGetOK with default headers values
func (*ApplicationGetOK) Error ¶
func (o *ApplicationGetOK) Error() string
type ApplicationGetParams ¶
type ApplicationGetParams struct { /*APIVersion Client API Version. */ APIVersion string /*ApplicationID The ID of the application. */ ApplicationID string /*ClientRequestID The caller-generated request identity, in the form of a GUID with no decoration such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0. */ ClientRequestID *string /*OcpDate The time the request was issued. If not specified, this header will be automatically populated with the current system clock time. */ OcpDate *string /*ReturnClientRequestID Whether the server should return the client-request-id in the response. */ ReturnClientRequestID *bool /*Timeout The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. */ Timeout *int32 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ApplicationGetParams contains all the parameters to send to the API endpoint for the application get operation typically these are written to a http.Request
func NewApplicationGetParams ¶
func NewApplicationGetParams() *ApplicationGetParams
NewApplicationGetParams creates a new ApplicationGetParams object with the default values initialized.
func NewApplicationGetParamsWithContext ¶
func NewApplicationGetParamsWithContext(ctx context.Context) *ApplicationGetParams
NewApplicationGetParamsWithContext creates a new ApplicationGetParams object with the default values initialized, and the ability to set a context for a request
func NewApplicationGetParamsWithTimeout ¶
func NewApplicationGetParamsWithTimeout(timeout time.Duration) *ApplicationGetParams
NewApplicationGetParamsWithTimeout creates a new ApplicationGetParams object with the default values initialized, and the ability to set a timeout on a request
func (*ApplicationGetParams) SetAPIVersion ¶
func (o *ApplicationGetParams) SetAPIVersion(aPIVersion string)
SetAPIVersion adds the apiVersion to the application get params
func (*ApplicationGetParams) SetApplicationID ¶
func (o *ApplicationGetParams) SetApplicationID(applicationID string)
SetApplicationID adds the applicationId to the application get params
func (*ApplicationGetParams) SetClientRequestID ¶
func (o *ApplicationGetParams) SetClientRequestID(clientRequestID *string)
SetClientRequestID adds the clientRequestId to the application get params
func (*ApplicationGetParams) SetContext ¶
func (o *ApplicationGetParams) SetContext(ctx context.Context)
SetContext adds the context to the application get params
func (*ApplicationGetParams) SetOcpDate ¶
func (o *ApplicationGetParams) SetOcpDate(ocpDate *string)
SetOcpDate adds the ocpDate to the application get params
func (*ApplicationGetParams) SetRequestTimeout ¶
func (o *ApplicationGetParams) SetRequestTimeout(timeout time.Duration)
SetRequestTimeout adds the timeout to the application get params
func (*ApplicationGetParams) SetReturnClientRequestID ¶
func (o *ApplicationGetParams) SetReturnClientRequestID(returnClientRequestID *bool)
SetReturnClientRequestID adds the returnClientRequestId to the application get params
func (*ApplicationGetParams) SetTimeout ¶
func (o *ApplicationGetParams) SetTimeout(timeout *int32)
SetTimeout adds the timeout to the application get params
func (*ApplicationGetParams) WithAPIVersion ¶
func (o *ApplicationGetParams) WithAPIVersion(aPIVersion string) *ApplicationGetParams
WithAPIVersion adds the aPIVersion to the application get params
func (*ApplicationGetParams) WithApplicationID ¶
func (o *ApplicationGetParams) WithApplicationID(applicationID string) *ApplicationGetParams
WithApplicationID adds the applicationID to the application get params
func (*ApplicationGetParams) WithClientRequestID ¶
func (o *ApplicationGetParams) WithClientRequestID(clientRequestID *string) *ApplicationGetParams
WithClientRequestID adds the clientRequestID to the application get params
func (*ApplicationGetParams) WithContext ¶
func (o *ApplicationGetParams) WithContext(ctx context.Context) *ApplicationGetParams
WithContext adds the context to the application get params
func (*ApplicationGetParams) WithOcpDate ¶
func (o *ApplicationGetParams) WithOcpDate(ocpDate *string) *ApplicationGetParams
WithOcpDate adds the ocpDate to the application get params
func (*ApplicationGetParams) WithRequestTimeout ¶
func (o *ApplicationGetParams) WithRequestTimeout(timeout time.Duration) *ApplicationGetParams
WithRequestTimeout adds the timeout to the application get params
func (*ApplicationGetParams) WithReturnClientRequestID ¶
func (o *ApplicationGetParams) WithReturnClientRequestID(returnClientRequestID *bool) *ApplicationGetParams
WithReturnClientRequestID adds the returnClientRequestID to the application get params
func (*ApplicationGetParams) WithTimeout ¶
func (o *ApplicationGetParams) WithTimeout(timeout *int32) *ApplicationGetParams
WithTimeout adds the timeout to the application get params
func (*ApplicationGetParams) WriteToRequest ¶
func (o *ApplicationGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ApplicationGetReader ¶
type ApplicationGetReader struct {
// contains filtered or unexported fields
}
ApplicationGetReader is a Reader for the ApplicationGet structure.
func (*ApplicationGetReader) ReadResponse ¶
func (o *ApplicationGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ApplicationListDefault ¶
type ApplicationListDefault struct { Payload *models.BatchError // contains filtered or unexported fields }
ApplicationListDefault handles this case with default header values.
The error from the Batch service.
func NewApplicationListDefault ¶
func NewApplicationListDefault(code int) *ApplicationListDefault
NewApplicationListDefault creates a ApplicationListDefault with default headers values
func (*ApplicationListDefault) Code ¶
func (o *ApplicationListDefault) Code() int
Code gets the status code for the application list default response
func (*ApplicationListDefault) Error ¶
func (o *ApplicationListDefault) Error() string
type ApplicationListOK ¶
type ApplicationListOK struct { /*The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers. */ ETag string /*The time at which the resource was last modified. */ LastModified string /*The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ ClientRequestID string /*This header uniquely identifies the request that was made and can be used for troubleshooting the request. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this header, the approximate time that the request was made, the Batch account against which the request was made, and the region that account resides in. */ RequestID string Payload *models.ApplicationListResult }
ApplicationListOK handles this case with default header values.
A response containing the list of applications.
func NewApplicationListOK ¶
func NewApplicationListOK() *ApplicationListOK
NewApplicationListOK creates a ApplicationListOK with default headers values
func (*ApplicationListOK) Error ¶
func (o *ApplicationListOK) Error() string
type ApplicationListParams ¶
type ApplicationListParams struct { /*APIVersion Client API Version. */ APIVersion string /*ClientRequestID The caller-generated request identity, in the form of a GUID with no decoration such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0. */ ClientRequestID *string /*Maxresults The maximum number of items to return in the response. A maximum of 1000 applications can be returned. */ Maxresults *int32 /*OcpDate The time the request was issued. If not specified, this header will be automatically populated with the current system clock time. */ OcpDate *string /*ReturnClientRequestID Whether the server should return the client-request-id in the response. */ ReturnClientRequestID *bool /*Timeout The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. */ Timeout *int32 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ApplicationListParams contains all the parameters to send to the API endpoint for the application list operation typically these are written to a http.Request
func NewApplicationListParams ¶
func NewApplicationListParams() *ApplicationListParams
NewApplicationListParams creates a new ApplicationListParams object with the default values initialized.
func NewApplicationListParamsWithContext ¶
func NewApplicationListParamsWithContext(ctx context.Context) *ApplicationListParams
NewApplicationListParamsWithContext creates a new ApplicationListParams object with the default values initialized, and the ability to set a context for a request
func NewApplicationListParamsWithTimeout ¶
func NewApplicationListParamsWithTimeout(timeout time.Duration) *ApplicationListParams
NewApplicationListParamsWithTimeout creates a new ApplicationListParams object with the default values initialized, and the ability to set a timeout on a request
func (*ApplicationListParams) SetAPIVersion ¶
func (o *ApplicationListParams) SetAPIVersion(aPIVersion string)
SetAPIVersion adds the apiVersion to the application list params
func (*ApplicationListParams) SetClientRequestID ¶
func (o *ApplicationListParams) SetClientRequestID(clientRequestID *string)
SetClientRequestID adds the clientRequestId to the application list params
func (*ApplicationListParams) SetContext ¶
func (o *ApplicationListParams) SetContext(ctx context.Context)
SetContext adds the context to the application list params
func (*ApplicationListParams) SetMaxresults ¶
func (o *ApplicationListParams) SetMaxresults(maxresults *int32)
SetMaxresults adds the maxresults to the application list params
func (*ApplicationListParams) SetOcpDate ¶
func (o *ApplicationListParams) SetOcpDate(ocpDate *string)
SetOcpDate adds the ocpDate to the application list params
func (*ApplicationListParams) SetRequestTimeout ¶
func (o *ApplicationListParams) SetRequestTimeout(timeout time.Duration)
SetRequestTimeout adds the timeout to the application list params
func (*ApplicationListParams) SetReturnClientRequestID ¶
func (o *ApplicationListParams) SetReturnClientRequestID(returnClientRequestID *bool)
SetReturnClientRequestID adds the returnClientRequestId to the application list params
func (*ApplicationListParams) SetTimeout ¶
func (o *ApplicationListParams) SetTimeout(timeout *int32)
SetTimeout adds the timeout to the application list params
func (*ApplicationListParams) WithAPIVersion ¶
func (o *ApplicationListParams) WithAPIVersion(aPIVersion string) *ApplicationListParams
WithAPIVersion adds the aPIVersion to the application list params
func (*ApplicationListParams) WithClientRequestID ¶
func (o *ApplicationListParams) WithClientRequestID(clientRequestID *string) *ApplicationListParams
WithClientRequestID adds the clientRequestID to the application list params
func (*ApplicationListParams) WithContext ¶
func (o *ApplicationListParams) WithContext(ctx context.Context) *ApplicationListParams
WithContext adds the context to the application list params
func (*ApplicationListParams) WithMaxresults ¶
func (o *ApplicationListParams) WithMaxresults(maxresults *int32) *ApplicationListParams
WithMaxresults adds the maxresults to the application list params
func (*ApplicationListParams) WithOcpDate ¶
func (o *ApplicationListParams) WithOcpDate(ocpDate *string) *ApplicationListParams
WithOcpDate adds the ocpDate to the application list params
func (*ApplicationListParams) WithRequestTimeout ¶
func (o *ApplicationListParams) WithRequestTimeout(timeout time.Duration) *ApplicationListParams
WithRequestTimeout adds the timeout to the application list params
func (*ApplicationListParams) WithReturnClientRequestID ¶
func (o *ApplicationListParams) WithReturnClientRequestID(returnClientRequestID *bool) *ApplicationListParams
WithReturnClientRequestID adds the returnClientRequestID to the application list params
func (*ApplicationListParams) WithTimeout ¶
func (o *ApplicationListParams) WithTimeout(timeout *int32) *ApplicationListParams
WithTimeout adds the timeout to the application list params
func (*ApplicationListParams) WriteToRequest ¶
func (o *ApplicationListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ApplicationListReader ¶
type ApplicationListReader struct {
// contains filtered or unexported fields
}
ApplicationListReader is a Reader for the ApplicationList structure.
func (*ApplicationListReader) ReadResponse ¶
func (o *ApplicationListReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for applications API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client
New creates a new applications API client.
func (*Client) ApplicationGet ¶
func (a *Client) ApplicationGet(params *ApplicationGetParams) (*ApplicationGetOK, error)
ApplicationGet gets information about the specified application
func (*Client) ApplicationList ¶
func (a *Client) ApplicationList(params *ApplicationListParams) (*ApplicationListOK, error)
ApplicationList lists all of the applications available in the specified account
This operation returns only applications and versions that are available for use on compute nodes; that is, that can be used in an application package reference. For administrator information about applications and versions that are not yet available to compute nodes, use the Azure portal or the Azure Resource Manager API.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client