batchmanagements

package
v0.20230221.1154553 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2023 License: MPL-2.0 Imports: 8 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/batch/2022-10-01/batchmanagements Documentation

The batchmanagements SDK allows for interaction with the Azure Resource Manager Service batch (API Version 2022-10-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/batch/2022-10-01/batchmanagements"

Client Initialization

client := batchmanagements.NewBatchManagementsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: BatchManagementsClient.BatchAccountGetDetector

ctx := context.TODO()
id := batchmanagements.NewDetectorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "batchAccountValue", "detectorIdValue")

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

Example Usage: BatchManagementsClient.BatchAccountListDetectors

ctx := context.TODO()
id := batchmanagements.NewBatchAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "batchAccountValue")

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

Example Usage: BatchManagementsClient.LocationCheckNameAvailability

ctx := context.TODO()
id := batchmanagements.NewLocationID("12345678-1234-9876-4563-123456789012", "locationValue")

payload := batchmanagements.CheckNameAvailabilityParameters{
	// ...
}


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

func PossibleValuesForNameAvailabilityReason() []string

func PossibleValuesForResourceType

func PossibleValuesForResourceType() []string

func ValidateBatchAccountID

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

ValidateBatchAccountID checks that 'input' can be parsed as a Batch Account ID

func ValidateDetectorID

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

ValidateDetectorID checks that 'input' can be parsed as a Detector ID

func ValidateLocationID

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

ValidateLocationID checks that 'input' can be parsed as a Location ID

Types

type BatchAccountGetDetectorOperationResponse

type BatchAccountGetDetectorOperationResponse struct {
	HttpResponse *http.Response
	Model        *DetectorResponse
}

type BatchAccountId

type BatchAccountId struct {
	SubscriptionId    string
	ResourceGroupName string
	BatchAccountName  string
}

BatchAccountId is a struct representing the Resource ID for a Batch Account

func NewBatchAccountID

func NewBatchAccountID(subscriptionId string, resourceGroupName string, batchAccountName string) BatchAccountId

NewBatchAccountID returns a new BatchAccountId struct

func ParseBatchAccountID

func ParseBatchAccountID(input string) (*BatchAccountId, error)

ParseBatchAccountID parses 'input' into a BatchAccountId

func ParseBatchAccountIDInsensitively

func ParseBatchAccountIDInsensitively(input string) (*BatchAccountId, error)

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

func (BatchAccountId) ID

func (id BatchAccountId) ID() string

ID returns the formatted Batch Account ID

func (BatchAccountId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Batch Account ID

func (BatchAccountId) String

func (id BatchAccountId) String() string

String returns a human-readable description of this Batch Account ID

type BatchAccountListDetectorsCompleteResult

type BatchAccountListDetectorsCompleteResult struct {
	Items []DetectorResponse
}

type BatchAccountListDetectorsOperationResponse

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

func (BatchAccountListDetectorsOperationResponse) HasMore

func (BatchAccountListDetectorsOperationResponse) LoadMore

type BatchManagementsClient

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

func NewBatchManagementsClientWithBaseURI

func NewBatchManagementsClientWithBaseURI(endpoint string) BatchManagementsClient

func (BatchManagementsClient) BatchAccountGetDetector

func (c BatchManagementsClient) BatchAccountGetDetector(ctx context.Context, id DetectorId) (result BatchAccountGetDetectorOperationResponse, err error)

BatchAccountGetDetector ...

func (BatchManagementsClient) BatchAccountListDetectors

BatchAccountListDetectors ...

func (BatchManagementsClient) BatchAccountListDetectorsComplete

BatchAccountListDetectorsComplete retrieves all of the results into a single object

func (BatchManagementsClient) BatchAccountListDetectorsCompleteMatchingPredicate

func (c BatchManagementsClient) BatchAccountListDetectorsCompleteMatchingPredicate(ctx context.Context, id BatchAccountId, predicate DetectorResponseOperationPredicate) (resp BatchAccountListDetectorsCompleteResult, err error)

BatchAccountListDetectorsCompleteMatchingPredicate retrieves all of the results and then applied the predicate

func (BatchManagementsClient) LocationCheckNameAvailability

LocationCheckNameAvailability ...

type CheckNameAvailabilityParameters

type CheckNameAvailabilityParameters struct {
	Name string       `json:"name"`
	Type ResourceType `json:"type"`
}

type CheckNameAvailabilityResult

type CheckNameAvailabilityResult struct {
	Message       *string                 `json:"message,omitempty"`
	NameAvailable *bool                   `json:"nameAvailable,omitempty"`
	Reason        *NameAvailabilityReason `json:"reason,omitempty"`
}

type DetectorId

type DetectorId struct {
	SubscriptionId    string
	ResourceGroupName string
	BatchAccountName  string
	DetectorId        string
}

DetectorId is a struct representing the Resource ID for a Detector

func NewDetectorID

func NewDetectorID(subscriptionId string, resourceGroupName string, batchAccountName string, detectorId string) DetectorId

NewDetectorID returns a new DetectorId struct

func ParseDetectorID

func ParseDetectorID(input string) (*DetectorId, error)

ParseDetectorID parses 'input' into a DetectorId

func ParseDetectorIDInsensitively

func ParseDetectorIDInsensitively(input string) (*DetectorId, error)

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

func (DetectorId) ID

func (id DetectorId) ID() string

ID returns the formatted Detector ID

func (DetectorId) Segments

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

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

func (DetectorId) String

func (id DetectorId) String() string

String returns a human-readable description of this Detector ID

type DetectorResponse

type DetectorResponse struct {
	Etag       *string                     `json:"etag,omitempty"`
	Id         *string                     `json:"id,omitempty"`
	Name       *string                     `json:"name,omitempty"`
	Properties *DetectorResponseProperties `json:"properties,omitempty"`
	Type       *string                     `json:"type,omitempty"`
}

type DetectorResponseOperationPredicate

type DetectorResponseOperationPredicate struct {
	Etag *string
	Id   *string
	Name *string
	Type *string
}

func (DetectorResponseOperationPredicate) Matches

type DetectorResponseProperties

type DetectorResponseProperties struct {
	Value *string `json:"value,omitempty"`
}

type LocationCheckNameAvailabilityOperationResponse

type LocationCheckNameAvailabilityOperationResponse struct {
	HttpResponse *http.Response
	Model        *CheckNameAvailabilityResult
}

type LocationId

type LocationId struct {
	SubscriptionId string
	LocationName   string
}

LocationId is a struct representing the Resource ID for a Location

func NewLocationID

func NewLocationID(subscriptionId string, locationName string) LocationId

NewLocationID returns a new LocationId struct

func ParseLocationID

func ParseLocationID(input string) (*LocationId, error)

ParseLocationID parses 'input' into a LocationId

func ParseLocationIDInsensitively

func ParseLocationIDInsensitively(input string) (*LocationId, error)

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

func (LocationId) ID

func (id LocationId) ID() string

ID returns the formatted Location ID

func (LocationId) Segments

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

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

func (LocationId) String

func (id LocationId) String() string

String returns a human-readable description of this Location ID

type NameAvailabilityReason

type NameAvailabilityReason string
const (
	NameAvailabilityReasonAlreadyExists NameAvailabilityReason = "AlreadyExists"
	NameAvailabilityReasonInvalid       NameAvailabilityReason = "Invalid"
)

type ResourceType

type ResourceType string
const (
	ResourceTypeMicrosoftPointBatchBatchAccounts ResourceType = "Microsoft.Batch/batchAccounts"
)

Jump to

Keyboard shortcuts

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