Documentation ¶
Index ¶
- type Client
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) SubscriptionsGet(params *SubscriptionsGetParams, authInfo runtime.ClientAuthInfoWriter) (*SubscriptionsGetOK, error)
- func (a *Client) SubscriptionsList(params *SubscriptionsListParams, authInfo runtime.ClientAuthInfoWriter) (*SubscriptionsListOK, error)
- func (a *Client) SubscriptionsListLocations(params *SubscriptionsListLocationsParams, ...) (*SubscriptionsListLocationsOK, error)
- type SubscriptionsGetOK
- type SubscriptionsGetParams
- func (o *SubscriptionsGetParams) SetAPIVersion(aPIVersion string)
- func (o *SubscriptionsGetParams) SetContext(ctx context.Context)
- func (o *SubscriptionsGetParams) SetSubscriptionID(subscriptionID string)
- func (o *SubscriptionsGetParams) SetTimeout(timeout time.Duration)
- func (o *SubscriptionsGetParams) WithAPIVersion(aPIVersion string) *SubscriptionsGetParams
- func (o *SubscriptionsGetParams) WithContext(ctx context.Context) *SubscriptionsGetParams
- func (o *SubscriptionsGetParams) WithSubscriptionID(subscriptionID string) *SubscriptionsGetParams
- func (o *SubscriptionsGetParams) WithTimeout(timeout time.Duration) *SubscriptionsGetParams
- func (o *SubscriptionsGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SubscriptionsGetReader
- type SubscriptionsListLocationsOK
- type SubscriptionsListLocationsParams
- func (o *SubscriptionsListLocationsParams) SetAPIVersion(aPIVersion string)
- func (o *SubscriptionsListLocationsParams) SetContext(ctx context.Context)
- func (o *SubscriptionsListLocationsParams) SetSubscriptionID(subscriptionID string)
- func (o *SubscriptionsListLocationsParams) SetTimeout(timeout time.Duration)
- func (o *SubscriptionsListLocationsParams) WithAPIVersion(aPIVersion string) *SubscriptionsListLocationsParams
- func (o *SubscriptionsListLocationsParams) WithContext(ctx context.Context) *SubscriptionsListLocationsParams
- func (o *SubscriptionsListLocationsParams) WithSubscriptionID(subscriptionID string) *SubscriptionsListLocationsParams
- func (o *SubscriptionsListLocationsParams) WithTimeout(timeout time.Duration) *SubscriptionsListLocationsParams
- func (o *SubscriptionsListLocationsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SubscriptionsListLocationsReader
- type SubscriptionsListOK
- type SubscriptionsListParams
- func (o *SubscriptionsListParams) SetAPIVersion(aPIVersion string)
- func (o *SubscriptionsListParams) SetContext(ctx context.Context)
- func (o *SubscriptionsListParams) SetTimeout(timeout time.Duration)
- func (o *SubscriptionsListParams) WithAPIVersion(aPIVersion string) *SubscriptionsListParams
- func (o *SubscriptionsListParams) WithContext(ctx context.Context) *SubscriptionsListParams
- func (o *SubscriptionsListParams) WithTimeout(timeout time.Duration) *SubscriptionsListParams
- func (o *SubscriptionsListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SubscriptionsListReader
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 subscriptions API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client
New creates a new subscriptions API client.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) SubscriptionsGet ¶
func (a *Client) SubscriptionsGet(params *SubscriptionsGetParams, authInfo runtime.ClientAuthInfoWriter) (*SubscriptionsGetOK, error)
SubscriptionsGet Gets details about a specified subscription.
func (*Client) SubscriptionsList ¶
func (a *Client) SubscriptionsList(params *SubscriptionsListParams, authInfo runtime.ClientAuthInfoWriter) (*SubscriptionsListOK, error)
SubscriptionsList Gets all subscriptions for a tenant.
func (*Client) SubscriptionsListLocations ¶
func (a *Client) SubscriptionsListLocations(params *SubscriptionsListLocationsParams, authInfo runtime.ClientAuthInfoWriter) (*SubscriptionsListLocationsOK, error)
SubscriptionsListLocations gets all available geo locations
This operation provides all the locations that are available for resource providers; however, each resource provider may support a subset of this list.
type SubscriptionsGetOK ¶
type SubscriptionsGetOK struct {
Payload *models.Subscription
}
SubscriptionsGetOK handles this case with default header values.
OK - Returns information about the subscription.
func NewSubscriptionsGetOK ¶
func NewSubscriptionsGetOK() *SubscriptionsGetOK
NewSubscriptionsGetOK creates a SubscriptionsGetOK with default headers values
func (*SubscriptionsGetOK) Error ¶
func (o *SubscriptionsGetOK) Error() string
type SubscriptionsGetParams ¶
type SubscriptionsGetParams struct { /*APIVersion The API version to use for the operation. */ APIVersion string /*SubscriptionID The ID of the target subscription. */ SubscriptionID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
SubscriptionsGetParams contains all the parameters to send to the API endpoint for the subscriptions get operation typically these are written to a http.Request
func NewSubscriptionsGetParams ¶
func NewSubscriptionsGetParams() *SubscriptionsGetParams
NewSubscriptionsGetParams creates a new SubscriptionsGetParams object with the default values initialized.
func NewSubscriptionsGetParamsWithContext ¶
func NewSubscriptionsGetParamsWithContext(ctx context.Context) *SubscriptionsGetParams
NewSubscriptionsGetParamsWithContext creates a new SubscriptionsGetParams object with the default values initialized, and the ability to set a context for a request
func NewSubscriptionsGetParamsWithTimeout ¶
func NewSubscriptionsGetParamsWithTimeout(timeout time.Duration) *SubscriptionsGetParams
NewSubscriptionsGetParamsWithTimeout creates a new SubscriptionsGetParams object with the default values initialized, and the ability to set a timeout on a request
func (*SubscriptionsGetParams) SetAPIVersion ¶
func (o *SubscriptionsGetParams) SetAPIVersion(aPIVersion string)
SetAPIVersion adds the apiVersion to the subscriptions get params
func (*SubscriptionsGetParams) SetContext ¶
func (o *SubscriptionsGetParams) SetContext(ctx context.Context)
SetContext adds the context to the subscriptions get params
func (*SubscriptionsGetParams) SetSubscriptionID ¶
func (o *SubscriptionsGetParams) SetSubscriptionID(subscriptionID string)
SetSubscriptionID adds the subscriptionId to the subscriptions get params
func (*SubscriptionsGetParams) SetTimeout ¶
func (o *SubscriptionsGetParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the subscriptions get params
func (*SubscriptionsGetParams) WithAPIVersion ¶
func (o *SubscriptionsGetParams) WithAPIVersion(aPIVersion string) *SubscriptionsGetParams
WithAPIVersion adds the aPIVersion to the subscriptions get params
func (*SubscriptionsGetParams) WithContext ¶
func (o *SubscriptionsGetParams) WithContext(ctx context.Context) *SubscriptionsGetParams
WithContext adds the context to the subscriptions get params
func (*SubscriptionsGetParams) WithSubscriptionID ¶
func (o *SubscriptionsGetParams) WithSubscriptionID(subscriptionID string) *SubscriptionsGetParams
WithSubscriptionID adds the subscriptionID to the subscriptions get params
func (*SubscriptionsGetParams) WithTimeout ¶
func (o *SubscriptionsGetParams) WithTimeout(timeout time.Duration) *SubscriptionsGetParams
WithTimeout adds the timeout to the subscriptions get params
func (*SubscriptionsGetParams) WriteToRequest ¶
func (o *SubscriptionsGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type SubscriptionsGetReader ¶
type SubscriptionsGetReader struct {
// contains filtered or unexported fields
}
SubscriptionsGetReader is a Reader for the SubscriptionsGet structure.
func (*SubscriptionsGetReader) ReadResponse ¶
func (o *SubscriptionsGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type SubscriptionsListLocationsOK ¶
type SubscriptionsListLocationsOK struct {
Payload *models.LocationListResult
}
SubscriptionsListLocationsOK handles this case with default header values.
OK - Returns an array of locations.
func NewSubscriptionsListLocationsOK ¶
func NewSubscriptionsListLocationsOK() *SubscriptionsListLocationsOK
NewSubscriptionsListLocationsOK creates a SubscriptionsListLocationsOK with default headers values
func (*SubscriptionsListLocationsOK) Error ¶
func (o *SubscriptionsListLocationsOK) Error() string
type SubscriptionsListLocationsParams ¶
type SubscriptionsListLocationsParams struct { /*APIVersion The API version to use for the operation. */ APIVersion string /*SubscriptionID The ID of the target subscription. */ SubscriptionID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
SubscriptionsListLocationsParams contains all the parameters to send to the API endpoint for the subscriptions list locations operation typically these are written to a http.Request
func NewSubscriptionsListLocationsParams ¶
func NewSubscriptionsListLocationsParams() *SubscriptionsListLocationsParams
NewSubscriptionsListLocationsParams creates a new SubscriptionsListLocationsParams object with the default values initialized.
func NewSubscriptionsListLocationsParamsWithContext ¶
func NewSubscriptionsListLocationsParamsWithContext(ctx context.Context) *SubscriptionsListLocationsParams
NewSubscriptionsListLocationsParamsWithContext creates a new SubscriptionsListLocationsParams object with the default values initialized, and the ability to set a context for a request
func NewSubscriptionsListLocationsParamsWithTimeout ¶
func NewSubscriptionsListLocationsParamsWithTimeout(timeout time.Duration) *SubscriptionsListLocationsParams
NewSubscriptionsListLocationsParamsWithTimeout creates a new SubscriptionsListLocationsParams object with the default values initialized, and the ability to set a timeout on a request
func (*SubscriptionsListLocationsParams) SetAPIVersion ¶
func (o *SubscriptionsListLocationsParams) SetAPIVersion(aPIVersion string)
SetAPIVersion adds the apiVersion to the subscriptions list locations params
func (*SubscriptionsListLocationsParams) SetContext ¶
func (o *SubscriptionsListLocationsParams) SetContext(ctx context.Context)
SetContext adds the context to the subscriptions list locations params
func (*SubscriptionsListLocationsParams) SetSubscriptionID ¶
func (o *SubscriptionsListLocationsParams) SetSubscriptionID(subscriptionID string)
SetSubscriptionID adds the subscriptionId to the subscriptions list locations params
func (*SubscriptionsListLocationsParams) SetTimeout ¶
func (o *SubscriptionsListLocationsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the subscriptions list locations params
func (*SubscriptionsListLocationsParams) WithAPIVersion ¶
func (o *SubscriptionsListLocationsParams) WithAPIVersion(aPIVersion string) *SubscriptionsListLocationsParams
WithAPIVersion adds the aPIVersion to the subscriptions list locations params
func (*SubscriptionsListLocationsParams) WithContext ¶
func (o *SubscriptionsListLocationsParams) WithContext(ctx context.Context) *SubscriptionsListLocationsParams
WithContext adds the context to the subscriptions list locations params
func (*SubscriptionsListLocationsParams) WithSubscriptionID ¶
func (o *SubscriptionsListLocationsParams) WithSubscriptionID(subscriptionID string) *SubscriptionsListLocationsParams
WithSubscriptionID adds the subscriptionID to the subscriptions list locations params
func (*SubscriptionsListLocationsParams) WithTimeout ¶
func (o *SubscriptionsListLocationsParams) WithTimeout(timeout time.Duration) *SubscriptionsListLocationsParams
WithTimeout adds the timeout to the subscriptions list locations params
func (*SubscriptionsListLocationsParams) WriteToRequest ¶
func (o *SubscriptionsListLocationsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type SubscriptionsListLocationsReader ¶
type SubscriptionsListLocationsReader struct {
// contains filtered or unexported fields
}
SubscriptionsListLocationsReader is a Reader for the SubscriptionsListLocations structure.
func (*SubscriptionsListLocationsReader) ReadResponse ¶
func (o *SubscriptionsListLocationsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type SubscriptionsListOK ¶
type SubscriptionsListOK struct {
Payload *models.SubscriptionListResult
}
SubscriptionsListOK handles this case with default header values.
OK - Returns an array of subscriptions.
func NewSubscriptionsListOK ¶
func NewSubscriptionsListOK() *SubscriptionsListOK
NewSubscriptionsListOK creates a SubscriptionsListOK with default headers values
func (*SubscriptionsListOK) Error ¶
func (o *SubscriptionsListOK) Error() string
type SubscriptionsListParams ¶
type SubscriptionsListParams struct { /*APIVersion The API version to use for the operation. */ APIVersion string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
SubscriptionsListParams contains all the parameters to send to the API endpoint for the subscriptions list operation typically these are written to a http.Request
func NewSubscriptionsListParams ¶
func NewSubscriptionsListParams() *SubscriptionsListParams
NewSubscriptionsListParams creates a new SubscriptionsListParams object with the default values initialized.
func NewSubscriptionsListParamsWithContext ¶
func NewSubscriptionsListParamsWithContext(ctx context.Context) *SubscriptionsListParams
NewSubscriptionsListParamsWithContext creates a new SubscriptionsListParams object with the default values initialized, and the ability to set a context for a request
func NewSubscriptionsListParamsWithTimeout ¶
func NewSubscriptionsListParamsWithTimeout(timeout time.Duration) *SubscriptionsListParams
NewSubscriptionsListParamsWithTimeout creates a new SubscriptionsListParams object with the default values initialized, and the ability to set a timeout on a request
func (*SubscriptionsListParams) SetAPIVersion ¶
func (o *SubscriptionsListParams) SetAPIVersion(aPIVersion string)
SetAPIVersion adds the apiVersion to the subscriptions list params
func (*SubscriptionsListParams) SetContext ¶
func (o *SubscriptionsListParams) SetContext(ctx context.Context)
SetContext adds the context to the subscriptions list params
func (*SubscriptionsListParams) SetTimeout ¶
func (o *SubscriptionsListParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the subscriptions list params
func (*SubscriptionsListParams) WithAPIVersion ¶
func (o *SubscriptionsListParams) WithAPIVersion(aPIVersion string) *SubscriptionsListParams
WithAPIVersion adds the aPIVersion to the subscriptions list params
func (*SubscriptionsListParams) WithContext ¶
func (o *SubscriptionsListParams) WithContext(ctx context.Context) *SubscriptionsListParams
WithContext adds the context to the subscriptions list params
func (*SubscriptionsListParams) WithTimeout ¶
func (o *SubscriptionsListParams) WithTimeout(timeout time.Duration) *SubscriptionsListParams
WithTimeout adds the timeout to the subscriptions list params
func (*SubscriptionsListParams) WriteToRequest ¶
func (o *SubscriptionsListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type SubscriptionsListReader ¶
type SubscriptionsListReader struct {
// contains filtered or unexported fields
}
SubscriptionsListReader is a Reader for the SubscriptionsList structure.
func (*SubscriptionsListReader) ReadResponse ¶
func (o *SubscriptionsListReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.