edgemodules

package
v0.20220822.1091039 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2022 License: MPL-2.0 Imports: 11 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/videoanalyzer/2021-05-01-preview/edgemodules Documentation

The edgemodules SDK allows for interaction with the Azure Resource Manager Service videoanalyzer (API Version 2021-05-01-preview).

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/videoanalyzer/2021-05-01-preview/edgemodules"

Client Initialization

client := edgemodules.NewEdgeModulesClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: EdgeModulesClient.EdgeModulesCreateOrUpdate

ctx := context.TODO()
id := edgemodules.NewEdgeModuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue", "edgeModuleValue")

payload := edgemodules.EdgeModuleEntity{
	// ...
}


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

Example Usage: EdgeModulesClient.EdgeModulesDelete

ctx := context.TODO()
id := edgemodules.NewEdgeModuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue", "edgeModuleValue")

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

Example Usage: EdgeModulesClient.EdgeModulesGet

ctx := context.TODO()
id := edgemodules.NewEdgeModuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue", "edgeModuleValue")

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

Example Usage: EdgeModulesClient.EdgeModulesList

ctx := context.TODO()
id := edgemodules.NewVideoAnalyzerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue")

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

Example Usage: EdgeModulesClient.EdgeModulesListProvisioningToken

ctx := context.TODO()
id := edgemodules.NewEdgeModuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue", "edgeModuleValue")

payload := edgemodules.ListProvisioningTokenInput{
	// ...
}


read, err := client.EdgeModulesListProvisioningToken(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 ValidateEdgeModuleID

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

ValidateEdgeModuleID checks that 'input' can be parsed as a Edge Module ID

func ValidateVideoAnalyzerID

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

ValidateVideoAnalyzerID checks that 'input' can be parsed as a Video Analyzer ID

Types

type EdgeModuleEntity

type EdgeModuleEntity struct {
	Id         *string                `json:"id,omitempty"`
	Name       *string                `json:"name,omitempty"`
	Properties *EdgeModuleProperties  `json:"properties,omitempty"`
	SystemData *systemdata.SystemData `json:"systemData,omitempty"`
	Type       *string                `json:"type,omitempty"`
}

type EdgeModuleEntityOperationPredicate

type EdgeModuleEntityOperationPredicate struct {
	Id   *string
	Name *string
	Type *string
}

func (EdgeModuleEntityOperationPredicate) Matches

type EdgeModuleId

type EdgeModuleId struct {
	SubscriptionId    string
	ResourceGroupName string
	AccountName       string
	EdgeModuleName    string
}

EdgeModuleId is a struct representing the Resource ID for a Edge Module

func NewEdgeModuleID

func NewEdgeModuleID(subscriptionId string, resourceGroupName string, accountName string, edgeModuleName string) EdgeModuleId

NewEdgeModuleID returns a new EdgeModuleId struct

func ParseEdgeModuleID

func ParseEdgeModuleID(input string) (*EdgeModuleId, error)

ParseEdgeModuleID parses 'input' into a EdgeModuleId

func ParseEdgeModuleIDInsensitively

func ParseEdgeModuleIDInsensitively(input string) (*EdgeModuleId, error)

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

func (EdgeModuleId) ID

func (id EdgeModuleId) ID() string

ID returns the formatted Edge Module ID

func (EdgeModuleId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Edge Module ID

func (EdgeModuleId) String

func (id EdgeModuleId) String() string

String returns a human-readable description of this Edge Module ID

type EdgeModuleProperties

type EdgeModuleProperties struct {
	EdgeModuleId *string `json:"edgeModuleId,omitempty"`
}

type EdgeModuleProvisioningToken

type EdgeModuleProvisioningToken struct {
	ExpirationDate *string `json:"expirationDate,omitempty"`
	Token          *string `json:"token,omitempty"`
}

func (*EdgeModuleProvisioningToken) GetExpirationDateAsTime

func (o *EdgeModuleProvisioningToken) GetExpirationDateAsTime() (*time.Time, error)

func (*EdgeModuleProvisioningToken) SetExpirationDateAsTime

func (o *EdgeModuleProvisioningToken) SetExpirationDateAsTime(input time.Time)

type EdgeModulesClient

type EdgeModulesClient struct {
	Client autorest.Client
	// contains filtered or unexported fields
}

func NewEdgeModulesClientWithBaseURI

func NewEdgeModulesClientWithBaseURI(endpoint string) EdgeModulesClient

func (EdgeModulesClient) EdgeModulesCreateOrUpdate

func (c EdgeModulesClient) EdgeModulesCreateOrUpdate(ctx context.Context, id EdgeModuleId, input EdgeModuleEntity) (result EdgeModulesCreateOrUpdateOperationResponse, err error)

EdgeModulesCreateOrUpdate ...

func (EdgeModulesClient) EdgeModulesDelete

func (c EdgeModulesClient) EdgeModulesDelete(ctx context.Context, id EdgeModuleId) (result EdgeModulesDeleteOperationResponse, err error)

EdgeModulesDelete ...

func (EdgeModulesClient) EdgeModulesGet

func (c EdgeModulesClient) EdgeModulesGet(ctx context.Context, id EdgeModuleId) (result EdgeModulesGetOperationResponse, err error)

EdgeModulesGet ...

func (EdgeModulesClient) EdgeModulesList

EdgeModulesList ...

func (EdgeModulesClient) EdgeModulesListComplete

EdgeModulesListComplete retrieves all of the results into a single object

func (EdgeModulesClient) EdgeModulesListCompleteMatchingPredicate

func (c EdgeModulesClient) EdgeModulesListCompleteMatchingPredicate(ctx context.Context, id VideoAnalyzerId, options EdgeModulesListOperationOptions, predicate EdgeModuleEntityOperationPredicate) (resp EdgeModulesListCompleteResult, err error)

EdgeModulesListCompleteMatchingPredicate retrieves all of the results and then applied the predicate

func (EdgeModulesClient) EdgeModulesListProvisioningToken

EdgeModulesListProvisioningToken ...

type EdgeModulesCreateOrUpdateOperationResponse

type EdgeModulesCreateOrUpdateOperationResponse struct {
	HttpResponse *http.Response
	Model        *EdgeModuleEntity
}

type EdgeModulesDeleteOperationResponse

type EdgeModulesDeleteOperationResponse struct {
	HttpResponse *http.Response
}

type EdgeModulesGetOperationResponse

type EdgeModulesGetOperationResponse struct {
	HttpResponse *http.Response
	Model        *EdgeModuleEntity
}

type EdgeModulesListCompleteResult

type EdgeModulesListCompleteResult struct {
	Items []EdgeModuleEntity
}

type EdgeModulesListOperationOptions

type EdgeModulesListOperationOptions struct {
	Filter  *string
	Orderby *string
	Top     *int64
}

func DefaultEdgeModulesListOperationOptions

func DefaultEdgeModulesListOperationOptions() EdgeModulesListOperationOptions

type EdgeModulesListOperationResponse

type EdgeModulesListOperationResponse struct {
	HttpResponse *http.Response
	Model        *[]EdgeModuleEntity
	// contains filtered or unexported fields
}

func (EdgeModulesListOperationResponse) HasMore

func (EdgeModulesListOperationResponse) LoadMore

type EdgeModulesListProvisioningTokenOperationResponse

type EdgeModulesListProvisioningTokenOperationResponse struct {
	HttpResponse *http.Response
	Model        *EdgeModuleProvisioningToken
}

type ListProvisioningTokenInput

type ListProvisioningTokenInput struct {
	ExpirationDate string `json:"expirationDate"`
}

func (*ListProvisioningTokenInput) GetExpirationDateAsTime

func (o *ListProvisioningTokenInput) GetExpirationDateAsTime() (*time.Time, error)

func (*ListProvisioningTokenInput) SetExpirationDateAsTime

func (o *ListProvisioningTokenInput) SetExpirationDateAsTime(input time.Time)

type VideoAnalyzerId

type VideoAnalyzerId struct {
	SubscriptionId    string
	ResourceGroupName string
	AccountName       string
}

VideoAnalyzerId is a struct representing the Resource ID for a Video Analyzer

func NewVideoAnalyzerID

func NewVideoAnalyzerID(subscriptionId string, resourceGroupName string, accountName string) VideoAnalyzerId

NewVideoAnalyzerID returns a new VideoAnalyzerId struct

func ParseVideoAnalyzerID

func ParseVideoAnalyzerID(input string) (*VideoAnalyzerId, error)

ParseVideoAnalyzerID parses 'input' into a VideoAnalyzerId

func ParseVideoAnalyzerIDInsensitively

func ParseVideoAnalyzerIDInsensitively(input string) (*VideoAnalyzerId, error)

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

func (VideoAnalyzerId) ID

func (id VideoAnalyzerId) ID() string

ID returns the formatted Video Analyzer ID

func (VideoAnalyzerId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Video Analyzer ID

func (VideoAnalyzerId) String

func (id VideoAnalyzerId) String() string

String returns a human-readable description of this Video Analyzer ID

Jump to

Keyboard shortcuts

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