Documentation
¶
Index ¶
- type Client
- type UsageListOK
- type UsageListParams
- func (o *UsageListParams) SetAPIVersion(aPIVersion string)
- func (o *UsageListParams) SetContext(ctx context.Context)
- func (o *UsageListParams) SetLocation(location string)
- func (o *UsageListParams) SetSubscriptionID(subscriptionID string)
- func (o *UsageListParams) SetTimeout(timeout time.Duration)
- func (o *UsageListParams) WithAPIVersion(aPIVersion string) *UsageListParams
- func (o *UsageListParams) WithContext(ctx context.Context) *UsageListParams
- func (o *UsageListParams) WithLocation(location string) *UsageListParams
- func (o *UsageListParams) WithSubscriptionID(subscriptionID string) *UsageListParams
- func (o *UsageListParams) WithTimeout(timeout time.Duration) *UsageListParams
- func (o *UsageListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UsageListReader
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 usage API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client
New creates a new usage API client.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) UsageList ¶
func (a *Client) UsageList(params *UsageListParams, authInfo runtime.ClientAuthInfoWriter) (*UsageListOK, error)
UsageList Gets, for the specified location, the current compute resource usage information as well as the limits for compute resources under the subscription.
type UsageListOK ¶
type UsageListOK struct {
Payload *models.ListUsagesResult
}
UsageListOK handles this case with default header values.
OK
func NewUsageListOK ¶
func NewUsageListOK() *UsageListOK
NewUsageListOK creates a UsageListOK with default headers values
func (*UsageListOK) Error ¶
func (o *UsageListOK) Error() string
type UsageListParams ¶
type UsageListParams struct { /*APIVersion Client Api Version. */ APIVersion string /*Location The location for which resource usage is queried. */ Location string /*SubscriptionID Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. */ SubscriptionID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
UsageListParams contains all the parameters to send to the API endpoint for the usage list operation typically these are written to a http.Request
func NewUsageListParams ¶
func NewUsageListParams() *UsageListParams
NewUsageListParams creates a new UsageListParams object with the default values initialized.
func NewUsageListParamsWithContext ¶
func NewUsageListParamsWithContext(ctx context.Context) *UsageListParams
NewUsageListParamsWithContext creates a new UsageListParams object with the default values initialized, and the ability to set a context for a request
func NewUsageListParamsWithTimeout ¶
func NewUsageListParamsWithTimeout(timeout time.Duration) *UsageListParams
NewUsageListParamsWithTimeout creates a new UsageListParams object with the default values initialized, and the ability to set a timeout on a request
func (*UsageListParams) SetAPIVersion ¶
func (o *UsageListParams) SetAPIVersion(aPIVersion string)
SetAPIVersion adds the apiVersion to the usage list params
func (*UsageListParams) SetContext ¶
func (o *UsageListParams) SetContext(ctx context.Context)
SetContext adds the context to the usage list params
func (*UsageListParams) SetLocation ¶
func (o *UsageListParams) SetLocation(location string)
SetLocation adds the location to the usage list params
func (*UsageListParams) SetSubscriptionID ¶
func (o *UsageListParams) SetSubscriptionID(subscriptionID string)
SetSubscriptionID adds the subscriptionId to the usage list params
func (*UsageListParams) SetTimeout ¶
func (o *UsageListParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the usage list params
func (*UsageListParams) WithAPIVersion ¶
func (o *UsageListParams) WithAPIVersion(aPIVersion string) *UsageListParams
WithAPIVersion adds the aPIVersion to the usage list params
func (*UsageListParams) WithContext ¶
func (o *UsageListParams) WithContext(ctx context.Context) *UsageListParams
WithContext adds the context to the usage list params
func (*UsageListParams) WithLocation ¶
func (o *UsageListParams) WithLocation(location string) *UsageListParams
WithLocation adds the location to the usage list params
func (*UsageListParams) WithSubscriptionID ¶
func (o *UsageListParams) WithSubscriptionID(subscriptionID string) *UsageListParams
WithSubscriptionID adds the subscriptionID to the usage list params
func (*UsageListParams) WithTimeout ¶
func (o *UsageListParams) WithTimeout(timeout time.Duration) *UsageListParams
WithTimeout adds the timeout to the usage list params
func (*UsageListParams) WriteToRequest ¶
func (o *UsageListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UsageListReader ¶
type UsageListReader struct {
// contains filtered or unexported fields
}
UsageListReader is a Reader for the UsageList structure.
func (*UsageListReader) ReadResponse ¶
func (o *UsageListReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.