subscriptions

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2017 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for 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

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

WithTimeout adds the timeout to the subscriptions get params

func (*SubscriptionsGetParams) WriteToRequest

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

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

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

WithAPIVersion adds the aPIVersion to the subscriptions list locations params

func (*SubscriptionsListLocationsParams) WithContext

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

WithTimeout adds the timeout to the subscriptions list locations params

func (*SubscriptionsListLocationsParams) WriteToRequest

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

WithContext adds the context to the subscriptions list params

func (*SubscriptionsListParams) WithTimeout

WithTimeout adds the timeout to the subscriptions list params

func (*SubscriptionsListParams) WriteToRequest

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.

Jump to

Keyboard shortcuts

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