integrationaccountsessions

package
v0.20230204.1200350 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2023 License: MPL-2.0 Imports: 10 Imported by: 1

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

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

func ValidateSessionID(input interface{}, key string) (warnings []string, errors []error)

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 DeleteOperationResponse struct {
	HttpResponse *http.Response
}

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

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

CreateOrUpdate ...

func (IntegrationAccountSessionsClient) Delete

Delete ...

func (IntegrationAccountSessionsClient) Get

Get ...

func (IntegrationAccountSessionsClient) List

List ...

func (IntegrationAccountSessionsClient) ListComplete

ListComplete retrieves all of the results into a single object

func (IntegrationAccountSessionsClient) ListCompleteMatchingPredicate

ListCompleteMatchingPredicate retrieves all of the results and then applied the predicate

type ListCompleteResult

type ListCompleteResult struct {
	Items []IntegrationAccountSession
}

type ListOperationOptions

type ListOperationOptions struct {
	Filter *string
	Top    *int64
}

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

func ParseSessionID(input string) (*SessionId, error)

ParseSessionID parses 'input' into a SessionId

func ParseSessionIDInsensitively

func ParseSessionIDInsensitively(input string) (*SessionId, error)

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) ID

func (id SessionId) ID() string

ID returns the formatted Session ID

func (SessionId) Segments

func (id SessionId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Session ID

func (SessionId) String

func (id SessionId) String() string

String returns a human-readable description of this Session ID

Jump to

Keyboard shortcuts

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