README ¶
github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountsessions
Documentation
The integrationaccountsessions
SDK allows for interaction with the Azure Resource Manager Service logic
(API Version 2019-05-01
).
This readme covers example usages, but further information on using this SDK can be found in the project root.
Import Path
import "github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountsessions"
Client Initialization
client := integrationaccountsessions.NewIntegrationAccountSessionsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer
Example Usage: IntegrationAccountSessionsClient.CreateOrUpdate
ctx := context.TODO()
id := integrationaccountsessions.NewSessionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountValue", "sessionValue")
payload := integrationaccountsessions.IntegrationAccountSession{
// ...
}
read, err := client.CreateOrUpdate(ctx, id, payload)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: IntegrationAccountSessionsClient.Delete
ctx := context.TODO()
id := integrationaccountsessions.NewSessionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountValue", "sessionValue")
read, err := client.Delete(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: IntegrationAccountSessionsClient.Get
ctx := context.TODO()
id := integrationaccountsessions.NewSessionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountValue", "sessionValue")
read, err := client.Get(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: IntegrationAccountSessionsClient.List
ctx := context.TODO()
id := integrationaccountsessions.NewIntegrationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountValue")
// alternatively `client.List(ctx, id, integrationaccountsessions.DefaultListOperationOptions())` can be used to do batched pagination
items, err := client.ListComplete(ctx, id, integrationaccountsessions.DefaultListOperationOptions())
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Documentation ¶
Index ¶
- func ValidateIntegrationAccountID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateSessionID(input interface{}, key string) (warnings []string, errors []error)
- type CreateOrUpdateOperationResponse
- type DeleteOperationResponse
- type GetOperationResponse
- type IntegrationAccountId
- type IntegrationAccountSession
- type IntegrationAccountSessionOperationPredicate
- type IntegrationAccountSessionProperties
- func (o *IntegrationAccountSessionProperties) GetChangedTimeAsTime() (*time.Time, error)
- func (o *IntegrationAccountSessionProperties) GetCreatedTimeAsTime() (*time.Time, error)
- func (o *IntegrationAccountSessionProperties) SetChangedTimeAsTime(input time.Time)
- func (o *IntegrationAccountSessionProperties) SetCreatedTimeAsTime(input time.Time)
- type IntegrationAccountSessionsClient
- func (c IntegrationAccountSessionsClient) CreateOrUpdate(ctx context.Context, id SessionId, input IntegrationAccountSession) (result CreateOrUpdateOperationResponse, err error)
- func (c IntegrationAccountSessionsClient) Delete(ctx context.Context, id SessionId) (result DeleteOperationResponse, err error)
- func (c IntegrationAccountSessionsClient) Get(ctx context.Context, id SessionId) (result GetOperationResponse, err error)
- func (c IntegrationAccountSessionsClient) List(ctx context.Context, id IntegrationAccountId, options ListOperationOptions) (resp ListOperationResponse, err error)
- func (c IntegrationAccountSessionsClient) ListComplete(ctx context.Context, id IntegrationAccountId, options ListOperationOptions) (ListCompleteResult, error)
- func (c IntegrationAccountSessionsClient) ListCompleteMatchingPredicate(ctx context.Context, id IntegrationAccountId, options ListOperationOptions, ...) (resp ListCompleteResult, err error)
- type ListCompleteResult
- type ListOperationOptions
- type ListOperationResponse
- type SessionId
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateIntegrationAccountID ¶
func ValidateIntegrationAccountID(input interface{}, key string) (warnings []string, errors []error)
ValidateIntegrationAccountID checks that 'input' can be parsed as a Integration Account ID
func ValidateSessionID ¶
ValidateSessionID checks that 'input' can be parsed as a Session ID
Types ¶
type CreateOrUpdateOperationResponse ¶
type CreateOrUpdateOperationResponse struct { HttpResponse *http.Response Model *IntegrationAccountSession }
type DeleteOperationResponse ¶
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response Model *IntegrationAccountSession }
type IntegrationAccountId ¶
type IntegrationAccountId struct { SubscriptionId string ResourceGroupName string IntegrationAccountName string }
IntegrationAccountId is a struct representing the Resource ID for a Integration Account
func NewIntegrationAccountID ¶
func NewIntegrationAccountID(subscriptionId string, resourceGroupName string, integrationAccountName string) IntegrationAccountId
NewIntegrationAccountID returns a new IntegrationAccountId struct
func ParseIntegrationAccountID ¶
func ParseIntegrationAccountID(input string) (*IntegrationAccountId, error)
ParseIntegrationAccountID parses 'input' into a IntegrationAccountId
func ParseIntegrationAccountIDInsensitively ¶
func ParseIntegrationAccountIDInsensitively(input string) (*IntegrationAccountId, error)
ParseIntegrationAccountIDInsensitively parses 'input' case-insensitively into a IntegrationAccountId note: this method should only be used for API response data and not user input
func (IntegrationAccountId) ID ¶
func (id IntegrationAccountId) ID() string
ID returns the formatted Integration Account ID
func (IntegrationAccountId) Segments ¶
func (id IntegrationAccountId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Integration Account ID
func (IntegrationAccountId) String ¶
func (id IntegrationAccountId) String() string
String returns a human-readable description of this Integration Account ID
type IntegrationAccountSession ¶
type IntegrationAccountSession struct { Id *string `json:"id,omitempty"` Location *string `json:"location,omitempty"` Name *string `json:"name,omitempty"` Properties IntegrationAccountSessionProperties `json:"properties"` Tags *map[string]string `json:"tags,omitempty"` Type *string `json:"type,omitempty"` }
type IntegrationAccountSessionOperationPredicate ¶
type IntegrationAccountSessionOperationPredicate struct { Id *string Location *string Name *string Type *string }
func (IntegrationAccountSessionOperationPredicate) Matches ¶
func (p IntegrationAccountSessionOperationPredicate) Matches(input IntegrationAccountSession) bool
type IntegrationAccountSessionProperties ¶
type IntegrationAccountSessionProperties struct { ChangedTime *string `json:"changedTime,omitempty"` Content *interface{} `json:"content,omitempty"` CreatedTime *string `json:"createdTime,omitempty"` }
func (*IntegrationAccountSessionProperties) GetChangedTimeAsTime ¶
func (o *IntegrationAccountSessionProperties) GetChangedTimeAsTime() (*time.Time, error)
func (*IntegrationAccountSessionProperties) GetCreatedTimeAsTime ¶
func (o *IntegrationAccountSessionProperties) GetCreatedTimeAsTime() (*time.Time, error)
func (*IntegrationAccountSessionProperties) SetChangedTimeAsTime ¶
func (o *IntegrationAccountSessionProperties) SetChangedTimeAsTime(input time.Time)
func (*IntegrationAccountSessionProperties) SetCreatedTimeAsTime ¶
func (o *IntegrationAccountSessionProperties) SetCreatedTimeAsTime(input time.Time)
type IntegrationAccountSessionsClient ¶
type IntegrationAccountSessionsClient struct { Client autorest.Client // contains filtered or unexported fields }
func NewIntegrationAccountSessionsClientWithBaseURI ¶
func NewIntegrationAccountSessionsClientWithBaseURI(endpoint string) IntegrationAccountSessionsClient
func (IntegrationAccountSessionsClient) CreateOrUpdate ¶
func (c IntegrationAccountSessionsClient) CreateOrUpdate(ctx context.Context, id SessionId, input IntegrationAccountSession) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (IntegrationAccountSessionsClient) Delete ¶
func (c IntegrationAccountSessionsClient) Delete(ctx context.Context, id SessionId) (result DeleteOperationResponse, err error)
Delete ...
func (IntegrationAccountSessionsClient) Get ¶
func (c IntegrationAccountSessionsClient) Get(ctx context.Context, id SessionId) (result GetOperationResponse, err error)
Get ...
func (IntegrationAccountSessionsClient) List ¶
func (c IntegrationAccountSessionsClient) List(ctx context.Context, id IntegrationAccountId, options ListOperationOptions) (resp ListOperationResponse, err error)
List ...
func (IntegrationAccountSessionsClient) ListComplete ¶
func (c IntegrationAccountSessionsClient) ListComplete(ctx context.Context, id IntegrationAccountId, options ListOperationOptions) (ListCompleteResult, error)
ListComplete retrieves all of the results into a single object
func (IntegrationAccountSessionsClient) ListCompleteMatchingPredicate ¶
func (c IntegrationAccountSessionsClient) ListCompleteMatchingPredicate(ctx context.Context, id IntegrationAccountId, options ListOperationOptions, predicate IntegrationAccountSessionOperationPredicate) (resp ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all of the results and then applied the predicate
type ListCompleteResult ¶
type ListCompleteResult struct {
Items []IntegrationAccountSession
}
type ListOperationOptions ¶
func DefaultListOperationOptions ¶
func DefaultListOperationOptions() ListOperationOptions
type ListOperationResponse ¶
type ListOperationResponse struct { HttpResponse *http.Response Model *[]IntegrationAccountSession // contains filtered or unexported fields }
func (ListOperationResponse) HasMore ¶
func (r ListOperationResponse) HasMore() bool
func (ListOperationResponse) LoadMore ¶
func (r ListOperationResponse) LoadMore(ctx context.Context) (resp ListOperationResponse, err error)
type SessionId ¶
type SessionId struct { SubscriptionId string ResourceGroupName string IntegrationAccountName string SessionName string }
SessionId is a struct representing the Resource ID for a Session
func NewSessionID ¶
func NewSessionID(subscriptionId string, resourceGroupName string, integrationAccountName string, sessionName string) SessionId
NewSessionID returns a new SessionId struct
func ParseSessionID ¶
ParseSessionID parses 'input' into a SessionId
func ParseSessionIDInsensitively ¶
ParseSessionIDInsensitively parses 'input' case-insensitively into a SessionId note: this method should only be used for API response data and not user input
func (SessionId) Segments ¶
func (id SessionId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Session ID