armtemplates

package
v0.20230420.1093529 Latest Latest
Warning

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

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

README

github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/armtemplates Documentation

The armtemplates SDK allows for interaction with the Azure Resource Manager Service devtestlab (API Version 2018-09-15).

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/devtestlab/2018-09-15/armtemplates"

Client Initialization

client := armtemplates.NewArmTemplatesClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: ArmTemplatesClient.Get

ctx := context.TODO()
id := armtemplates.NewArmTemplateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "labValue", "artifactSourceValue", "armTemplateValue")

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

Example Usage: ArmTemplatesClient.List

ctx := context.TODO()
id := armtemplates.NewArtifactSourceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "labValue", "artifactSourceValue")

// alternatively `client.List(ctx, id, armtemplates.DefaultListOperationOptions())` can be used to do batched pagination
items, err := client.ListComplete(ctx, id, armtemplates.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 ValidateArmTemplateID

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

ValidateArmTemplateID checks that 'input' can be parsed as a Arm Template ID

func ValidateArtifactSourceID

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

ValidateArtifactSourceID checks that 'input' can be parsed as a Artifact Source ID

Types

type ArmTemplate

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

type ArmTemplateId

type ArmTemplateId struct {
	SubscriptionId     string
	ResourceGroupName  string
	LabName            string
	ArtifactSourceName string
	ArmTemplateName    string
}

ArmTemplateId is a struct representing the Resource ID for a Arm Template

func NewArmTemplateID

func NewArmTemplateID(subscriptionId string, resourceGroupName string, labName string, artifactSourceName string, armTemplateName string) ArmTemplateId

NewArmTemplateID returns a new ArmTemplateId struct

func ParseArmTemplateID

func ParseArmTemplateID(input string) (*ArmTemplateId, error)

ParseArmTemplateID parses 'input' into a ArmTemplateId

func ParseArmTemplateIDInsensitively

func ParseArmTemplateIDInsensitively(input string) (*ArmTemplateId, error)

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

func (ArmTemplateId) ID

func (id ArmTemplateId) ID() string

ID returns the formatted Arm Template ID

func (ArmTemplateId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Arm Template ID

func (ArmTemplateId) String

func (id ArmTemplateId) String() string

String returns a human-readable description of this Arm Template ID

type ArmTemplateOperationPredicate

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

func (ArmTemplateOperationPredicate) Matches

type ArmTemplateProperties

type ArmTemplateProperties struct {
	Contents                 *interface{}               `json:"contents,omitempty"`
	CreatedDate              *string                    `json:"createdDate,omitempty"`
	Description              *string                    `json:"description,omitempty"`
	DisplayName              *string                    `json:"displayName,omitempty"`
	Enabled                  *bool                      `json:"enabled,omitempty"`
	Icon                     *string                    `json:"icon,omitempty"`
	ParametersValueFilesInfo *[]ParametersValueFileInfo `json:"parametersValueFilesInfo,omitempty"`
	Publisher                *string                    `json:"publisher,omitempty"`
}

func (*ArmTemplateProperties) GetCreatedDateAsTime

func (o *ArmTemplateProperties) GetCreatedDateAsTime() (*time.Time, error)

func (*ArmTemplateProperties) SetCreatedDateAsTime

func (o *ArmTemplateProperties) SetCreatedDateAsTime(input time.Time)

type ArmTemplatesClient

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

func NewArmTemplatesClientWithBaseURI

func NewArmTemplatesClientWithBaseURI(endpoint string) ArmTemplatesClient

func (ArmTemplatesClient) Get

Get ...

func (ArmTemplatesClient) List

List ...

func (ArmTemplatesClient) ListComplete

ListComplete retrieves all of the results into a single object

func (ArmTemplatesClient) ListCompleteMatchingPredicate

func (c ArmTemplatesClient) ListCompleteMatchingPredicate(ctx context.Context, id ArtifactSourceId, options ListOperationOptions, predicate ArmTemplateOperationPredicate) (resp ListCompleteResult, err error)

ListCompleteMatchingPredicate retrieves all of the results and then applied the predicate

type ArtifactSourceId

type ArtifactSourceId struct {
	SubscriptionId     string
	ResourceGroupName  string
	LabName            string
	ArtifactSourceName string
}

ArtifactSourceId is a struct representing the Resource ID for a Artifact Source

func NewArtifactSourceID

func NewArtifactSourceID(subscriptionId string, resourceGroupName string, labName string, artifactSourceName string) ArtifactSourceId

NewArtifactSourceID returns a new ArtifactSourceId struct

func ParseArtifactSourceID

func ParseArtifactSourceID(input string) (*ArtifactSourceId, error)

ParseArtifactSourceID parses 'input' into a ArtifactSourceId

func ParseArtifactSourceIDInsensitively

func ParseArtifactSourceIDInsensitively(input string) (*ArtifactSourceId, error)

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

func (ArtifactSourceId) ID

func (id ArtifactSourceId) ID() string

ID returns the formatted Artifact Source ID

func (ArtifactSourceId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Artifact Source ID

func (ArtifactSourceId) String

func (id ArtifactSourceId) String() string

String returns a human-readable description of this Artifact Source ID

type GetOperationOptions

type GetOperationOptions struct {
	Expand *string
}

func DefaultGetOperationOptions

func DefaultGetOperationOptions() GetOperationOptions

type GetOperationResponse

type GetOperationResponse struct {
	HttpResponse *http.Response
	Model        *ArmTemplate
}

type ListCompleteResult

type ListCompleteResult struct {
	Items []ArmTemplate
}

type ListOperationOptions

type ListOperationOptions struct {
	Expand  *string
	Filter  *string
	Orderby *string
	Top     *int64
}

func DefaultListOperationOptions

func DefaultListOperationOptions() ListOperationOptions

type ListOperationResponse

type ListOperationResponse struct {
	HttpResponse *http.Response
	Model        *[]ArmTemplate
	// 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 ParametersValueFileInfo

type ParametersValueFileInfo struct {
	FileName            *string      `json:"fileName,omitempty"`
	ParametersValueInfo *interface{} `json:"parametersValueInfo,omitempty"`
}

Jump to

Keyboard shortcuts

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