Documentation
¶
Index ¶
- type Client
- func (c *Client) BeginLongRunningOperation(ctx context.Context, options *ClientBeginLongRunningOperationOptions) (*runtime.Poller[ClientLongRunningOperationResponse], error)
- func (c *Client) NewListValuesPager(options *ClientListValuesOptions) *runtime.Pager[ClientListValuesResponse]
- func (c *Client) SomeServiceAction(ctx context.Context, options *SomeServiceActionOptions) (ClientSomeServiceActionResponse, error)
- type ClientBeginLongRunningOperationOptions
- type ClientListValuesOptions
- type ClientListValuesResponse
- type ClientLongRunningOperationResponse
- type ClientOptions
- type ClientSomeServiceActionResponse
- type SomeServiceActionOptions
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 is the client to interact with. Don't use this type directly, use NewClient() instead.
func NewClient ¶
func NewClient(cred azcore.TokenCredential, options *ClientOptions) (*Client, error)
NewClient returns a pointer to a Client
func (*Client) BeginLongRunningOperation ¶ added in v0.2.0
func (c *Client) BeginLongRunningOperation(ctx context.Context, options *ClientBeginLongRunningOperationOptions) (*runtime.Poller[ClientLongRunningOperationResponse], error)
BeginLongRunningOperation is a long-running operation that can take several seconds to complete.
func (*Client) NewListValuesPager ¶ added in v0.2.0
func (c *Client) NewListValuesPager(options *ClientListValuesOptions) *runtime.Pager[ClientListValuesResponse]
NewListValuesPager creates a pager to iterate over pages of results.
func (*Client) SomeServiceAction ¶
func (c *Client) SomeServiceAction(ctx context.Context, options *SomeServiceActionOptions) (ClientSomeServiceActionResponse, error)
SomeServiceAction does some service action
type ClientBeginLongRunningOperationOptions ¶ added in v0.2.0
type ClientBeginLongRunningOperationOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ClientBeginLongRunningOperationOptions contains the optional values for the Client.BeginLongRunningOperation method.
type ClientListValuesOptions ¶ added in v0.2.0
type ClientListValuesOptions struct { // PerPage is the optional number of items to return per page. PerPage *int32 }
ClientListValuesOptions contains the optional values for the Client.NewListValuesPager method.
type ClientListValuesResponse ¶ added in v0.2.0
type ClientListValuesResponse struct { // Next might be a URL to fetch the next page or a continuation token. Next *string // Values contains the contents of the page. Values []*string }
ClientListValuesResponse contains the response from method Client.ListValues.
type ClientLongRunningOperationResponse ¶ added in v0.2.0
type ClientLongRunningOperationResponse struct {
Value *string
}
ClientLongRunningOperationResponse contains the response from method Client.LongRunningOperation.
type ClientOptions ¶
type ClientOptions struct {
azcore.ClientOptions
}
ClientOptions contains optional parameters for NewClient
type ClientSomeServiceActionResponse ¶ added in v0.2.0
type ClientSomeServiceActionResponse struct {
Value *string
}
ClientSomeServiceActionResponse contains the response from method Client.SomeServiceAction.
type SomeServiceActionOptions ¶ added in v0.2.0
type SomeServiceActionOptions struct { // OptionalValue is some optional value to be sent to the service. nil means nothing is sent. OptionalValue *string }
SomeServiceActionOptions contains the optional values for the Client.SomeServiceAction method.