integrationaccountsessions

package
v0.20240123.1170558 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2024 License: MPL-2.0 Imports: 11 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
	OData        *odata.OData
	Model        *IntegrationAccountSession
}

type DeleteOperationResponse

type DeleteOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type GetOperationResponse

type GetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	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) FromParseResult added in v0.20231127.1171502

func (id *IntegrationAccountId) FromParseResult(input resourceids.ParseResult) error

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 *resourcemanager.Client
}

func NewIntegrationAccountSessionsClientWithBaseURI

func NewIntegrationAccountSessionsClientWithBaseURI(sdkApi sdkEnv.Api) (*IntegrationAccountSessionsClient, error)

func (IntegrationAccountSessionsClient) CreateOrUpdate

CreateOrUpdate ...

func (IntegrationAccountSessionsClient) Delete

Delete ...

func (IntegrationAccountSessionsClient) Get

Get ...

func (IntegrationAccountSessionsClient) List

List ...

func (IntegrationAccountSessionsClient) ListComplete

ListComplete retrieves all the results into a single object

func (IntegrationAccountSessionsClient) ListCompleteMatchingPredicate

ListCompleteMatchingPredicate retrieves all the results and then applies the predicate

type ListCompleteResult

type ListCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []IntegrationAccountSession
}

type ListOperationOptions

type ListOperationOptions struct {
	Filter *string
	Top    *int64
}

func DefaultListOperationOptions

func DefaultListOperationOptions() ListOperationOptions

func (ListOperationOptions) ToHeaders added in v0.20230712.1163130

func (o ListOperationOptions) ToHeaders() *client.Headers

func (ListOperationOptions) ToOData added in v0.20230712.1163130

func (o ListOperationOptions) ToOData() *odata.Query

func (ListOperationOptions) ToQuery added in v0.20230712.1163130

type ListOperationResponse

type ListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]IntegrationAccountSession
}

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) FromParseResult added in v0.20231127.1171502

func (id *SessionId) FromParseResult(input resourceids.ParseResult) error

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