integrationaccountschemas

package
v0.20231016.1155426 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2023 License: MPL-2.0 Imports: 12 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountschemas Documentation

The integrationaccountschemas 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/integrationaccountschemas"

Client Initialization

client := integrationaccountschemas.NewIntegrationAccountSchemasClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: IntegrationAccountSchemasClient.CreateOrUpdate

ctx := context.TODO()
id := integrationaccountschemas.NewSchemaID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountValue", "schemaValue")

payload := integrationaccountschemas.IntegrationAccountSchema{
	// ...
}


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: IntegrationAccountSchemasClient.Delete

ctx := context.TODO()
id := integrationaccountschemas.NewSchemaID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountValue", "schemaValue")

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: IntegrationAccountSchemasClient.Get

ctx := context.TODO()
id := integrationaccountschemas.NewSchemaID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountValue", "schemaValue")

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: IntegrationAccountSchemasClient.List

ctx := context.TODO()
id := integrationaccountschemas.NewIntegrationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountValue")

// alternatively `client.List(ctx, id, integrationaccountschemas.DefaultListOperationOptions())` can be used to do batched pagination
items, err := client.ListComplete(ctx, id, integrationaccountschemas.DefaultListOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: IntegrationAccountSchemasClient.ListContentCallbackUrl

ctx := context.TODO()
id := integrationaccountschemas.NewSchemaID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountValue", "schemaValue")

payload := integrationaccountschemas.GetCallbackUrlParameters{
	// ...
}


read, err := client.ListContentCallbackUrl(ctx, id, payload)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForKeyType

func PossibleValuesForKeyType() []string

func PossibleValuesForSchemaType

func PossibleValuesForSchemaType() []string

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 ValidateSchemaID

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

ValidateSchemaID checks that 'input' can be parsed as a Schema ID

Types

type ContentHash

type ContentHash struct {
	Algorithm *string `json:"algorithm,omitempty"`
	Value     *string `json:"value,omitempty"`
}
type ContentLink struct {
	ContentHash    *ContentHash `json:"contentHash,omitempty"`
	ContentSize    *int64       `json:"contentSize,omitempty"`
	ContentVersion *string      `json:"contentVersion,omitempty"`
	Metadata       *interface{} `json:"metadata,omitempty"`
	Uri            *string      `json:"uri,omitempty"`
}

type CreateOrUpdateOperationResponse

type CreateOrUpdateOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *IntegrationAccountSchema
}

type DeleteOperationResponse

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

type GetCallbackUrlParameters

type GetCallbackUrlParameters struct {
	KeyType  *KeyType `json:"keyType,omitempty"`
	NotAfter *string  `json:"notAfter,omitempty"`
}

func (*GetCallbackUrlParameters) GetNotAfterAsTime

func (o *GetCallbackUrlParameters) GetNotAfterAsTime() (*time.Time, error)

func (*GetCallbackUrlParameters) SetNotAfterAsTime

func (o *GetCallbackUrlParameters) SetNotAfterAsTime(input time.Time)

type GetOperationResponse

type GetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *IntegrationAccountSchema
}

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 IntegrationAccountSchema

type IntegrationAccountSchema struct {
	Id         *string                            `json:"id,omitempty"`
	Location   *string                            `json:"location,omitempty"`
	Name       *string                            `json:"name,omitempty"`
	Properties IntegrationAccountSchemaProperties `json:"properties"`
	Tags       *map[string]string                 `json:"tags,omitempty"`
	Type       *string                            `json:"type,omitempty"`
}

type IntegrationAccountSchemaOperationPredicate

type IntegrationAccountSchemaOperationPredicate struct {
	Id       *string
	Location *string
	Name     *string
	Type     *string
}

func (IntegrationAccountSchemaOperationPredicate) Matches

type IntegrationAccountSchemaProperties

type IntegrationAccountSchemaProperties struct {
	ChangedTime     *string      `json:"changedTime,omitempty"`
	Content         *string      `json:"content,omitempty"`
	ContentLink     *ContentLink `json:"contentLink,omitempty"`
	ContentType     *string      `json:"contentType,omitempty"`
	CreatedTime     *string      `json:"createdTime,omitempty"`
	DocumentName    *string      `json:"documentName,omitempty"`
	FileName        *string      `json:"fileName,omitempty"`
	Metadata        *interface{} `json:"metadata,omitempty"`
	SchemaType      SchemaType   `json:"schemaType"`
	TargetNamespace *string      `json:"targetNamespace,omitempty"`
}

func (*IntegrationAccountSchemaProperties) GetChangedTimeAsTime

func (o *IntegrationAccountSchemaProperties) GetChangedTimeAsTime() (*time.Time, error)

func (*IntegrationAccountSchemaProperties) GetCreatedTimeAsTime

func (o *IntegrationAccountSchemaProperties) GetCreatedTimeAsTime() (*time.Time, error)

func (*IntegrationAccountSchemaProperties) SetChangedTimeAsTime

func (o *IntegrationAccountSchemaProperties) SetChangedTimeAsTime(input time.Time)

func (*IntegrationAccountSchemaProperties) SetCreatedTimeAsTime

func (o *IntegrationAccountSchemaProperties) SetCreatedTimeAsTime(input time.Time)

type IntegrationAccountSchemasClient

type IntegrationAccountSchemasClient struct {
	Client *resourcemanager.Client
}

func NewIntegrationAccountSchemasClientWithBaseURI

func NewIntegrationAccountSchemasClientWithBaseURI(sdkApi sdkEnv.Api) (*IntegrationAccountSchemasClient, error)

func (IntegrationAccountSchemasClient) CreateOrUpdate

CreateOrUpdate ...

func (IntegrationAccountSchemasClient) Delete

Delete ...

func (IntegrationAccountSchemasClient) Get

Get ...

func (IntegrationAccountSchemasClient) List

List ...

func (IntegrationAccountSchemasClient) ListComplete

ListComplete retrieves all the results into a single object

func (IntegrationAccountSchemasClient) ListCompleteMatchingPredicate

ListCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (IntegrationAccountSchemasClient) ListContentCallbackUrl

ListContentCallbackUrl ...

type KeyType

type KeyType string
const (
	KeyTypeNotSpecified KeyType = "NotSpecified"
	KeyTypePrimary      KeyType = "Primary"
	KeyTypeSecondary    KeyType = "Secondary"
)

func (*KeyType) UnmarshalJSON added in v0.20230712.1163130

func (s *KeyType) UnmarshalJSON(bytes []byte) error

type ListCompleteResult

type ListCompleteResult struct {
	Items []IntegrationAccountSchema
}

type ListContentCallbackUrlOperationResponse

type ListContentCallbackUrlOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *WorkflowTriggerCallbackUrl
}

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        *[]IntegrationAccountSchema
}

type SchemaId

type SchemaId struct {
	SubscriptionId         string
	ResourceGroupName      string
	IntegrationAccountName string
	SchemaName             string
}

SchemaId is a struct representing the Resource ID for a Schema

func NewSchemaID

func NewSchemaID(subscriptionId string, resourceGroupName string, integrationAccountName string, schemaName string) SchemaId

NewSchemaID returns a new SchemaId struct

func ParseSchemaID

func ParseSchemaID(input string) (*SchemaId, error)

ParseSchemaID parses 'input' into a SchemaId

func ParseSchemaIDInsensitively

func ParseSchemaIDInsensitively(input string) (*SchemaId, error)

ParseSchemaIDInsensitively parses 'input' case-insensitively into a SchemaId note: this method should only be used for API response data and not user input

func (SchemaId) ID

func (id SchemaId) ID() string

ID returns the formatted Schema ID

func (SchemaId) Segments

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

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

func (SchemaId) String

func (id SchemaId) String() string

String returns a human-readable description of this Schema ID

type SchemaType

type SchemaType string
const (
	SchemaTypeNotSpecified SchemaType = "NotSpecified"
	SchemaTypeXml          SchemaType = "Xml"
)

func (*SchemaType) UnmarshalJSON added in v0.20230712.1163130

func (s *SchemaType) UnmarshalJSON(bytes []byte) error

type WorkflowTriggerCallbackUrl

type WorkflowTriggerCallbackUrl struct {
	BasePath               *string                                `json:"basePath,omitempty"`
	Method                 *string                                `json:"method,omitempty"`
	Queries                *WorkflowTriggerListCallbackUrlQueries `json:"queries,omitempty"`
	RelativePath           *string                                `json:"relativePath,omitempty"`
	RelativePathParameters *[]string                              `json:"relativePathParameters,omitempty"`
	Value                  *string                                `json:"value,omitempty"`
}

type WorkflowTriggerListCallbackUrlQueries

type WorkflowTriggerListCallbackUrlQueries struct {
	ApiVersion *string `json:"api-version,omitempty"`
	Se         *string `json:"se,omitempty"`
	Sig        *string `json:"sig,omitempty"`
	Sp         *string `json:"sp,omitempty"`
	Sv         *string `json:"sv,omitempty"`
}

Jump to

Keyboard shortcuts

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