publishedblueprint

package
v0.20231213.1191308 Latest Latest
Warning

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

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

README

github.com/hashicorp/go-azure-sdk/resource-manager/blueprints/2018-11-01-preview/publishedblueprint Documentation

The publishedblueprint SDK allows for interaction with the Azure Resource Manager Service blueprints (API Version 2018-11-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/blueprints/2018-11-01-preview/publishedblueprint"

Client Initialization

client := publishedblueprint.NewPublishedBlueprintClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: PublishedBlueprintClient.Create

ctx := context.TODO()
id := publishedblueprint.NewScopedVersionID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "blueprintValue", "versionIdValue")

payload := publishedblueprint.PublishedBlueprint{
	// ...
}


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

Example Usage: PublishedBlueprintClient.Delete

ctx := context.TODO()
id := publishedblueprint.NewScopedVersionID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "blueprintValue", "versionIdValue")

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

ctx := context.TODO()
id := publishedblueprint.NewScopedVersionID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "blueprintValue", "versionIdValue")

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

ctx := context.TODO()
id := publishedblueprint.NewScopedBlueprintID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "blueprintValue")

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

func PossibleValuesForBlueprintTargetScope() []string

func PossibleValuesForTemplateParameterType

func PossibleValuesForTemplateParameterType() []string

func ValidateScopedBlueprintID

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

ValidateScopedBlueprintID checks that 'input' can be parsed as a Scoped Blueprint ID

func ValidateScopedVersionID

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

ValidateScopedVersionID checks that 'input' can be parsed as a Scoped Version ID

Types

type BlueprintResourceStatusBase

type BlueprintResourceStatusBase struct {
	LastModified *string `json:"lastModified,omitempty"`
	TimeCreated  *string `json:"timeCreated,omitempty"`
}

func (*BlueprintResourceStatusBase) GetLastModifiedAsTime

func (o *BlueprintResourceStatusBase) GetLastModifiedAsTime() (*time.Time, error)

func (*BlueprintResourceStatusBase) GetTimeCreatedAsTime

func (o *BlueprintResourceStatusBase) GetTimeCreatedAsTime() (*time.Time, error)

func (*BlueprintResourceStatusBase) SetLastModifiedAsTime

func (o *BlueprintResourceStatusBase) SetLastModifiedAsTime(input time.Time)

func (*BlueprintResourceStatusBase) SetTimeCreatedAsTime

func (o *BlueprintResourceStatusBase) SetTimeCreatedAsTime(input time.Time)

type BlueprintTargetScope

type BlueprintTargetScope string
const (
	BlueprintTargetScopeManagementGroup BlueprintTargetScope = "managementGroup"
	BlueprintTargetScopeSubscription    BlueprintTargetScope = "subscription"
)

func (*BlueprintTargetScope) UnmarshalJSON

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

type CreateOperationResponse

type CreateOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *PublishedBlueprint
}

type DeleteOperationResponse

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

type GetOperationResponse

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

type ListCompleteResult

type ListCompleteResult struct {
	Items []PublishedBlueprint
}

type ListOperationResponse

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

type ParameterDefinition

type ParameterDefinition struct {
	AllowedValues *[]interface{}               `json:"allowedValues,omitempty"`
	DefaultValue  *interface{}                 `json:"defaultValue,omitempty"`
	Metadata      *ParameterDefinitionMetadata `json:"metadata,omitempty"`
	Type          TemplateParameterType        `json:"type"`
}

type ParameterDefinitionMetadata

type ParameterDefinitionMetadata struct {
	Description *string `json:"description,omitempty"`
	DisplayName *string `json:"displayName,omitempty"`
	StrongType  *string `json:"strongType,omitempty"`
}

type PublishedBlueprint

type PublishedBlueprint struct {
	Id         *string                      `json:"id,omitempty"`
	Name       *string                      `json:"name,omitempty"`
	Properties PublishedBlueprintProperties `json:"properties"`
	Type       *string                      `json:"type,omitempty"`
}

type PublishedBlueprintClient

type PublishedBlueprintClient struct {
	Client *resourcemanager.Client
}

func NewPublishedBlueprintClientWithBaseURI

func NewPublishedBlueprintClientWithBaseURI(sdkApi sdkEnv.Api) (*PublishedBlueprintClient, error)

func (PublishedBlueprintClient) Create

Create ...

func (PublishedBlueprintClient) Delete

Delete ...

func (PublishedBlueprintClient) Get

Get ...

func (PublishedBlueprintClient) List

List ...

func (PublishedBlueprintClient) ListComplete

ListComplete retrieves all the results into a single object

func (PublishedBlueprintClient) ListCompleteMatchingPredicate

func (c PublishedBlueprintClient) ListCompleteMatchingPredicate(ctx context.Context, id ScopedBlueprintId, predicate PublishedBlueprintOperationPredicate) (result ListCompleteResult, err error)

ListCompleteMatchingPredicate retrieves all the results and then applies the predicate

type PublishedBlueprintOperationPredicate

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

func (PublishedBlueprintOperationPredicate) Matches

type PublishedBlueprintProperties

type PublishedBlueprintProperties struct {
	BlueprintName  *string                             `json:"blueprintName,omitempty"`
	ChangeNotes    *string                             `json:"changeNotes,omitempty"`
	Description    *string                             `json:"description,omitempty"`
	DisplayName    *string                             `json:"displayName,omitempty"`
	Parameters     *map[string]ParameterDefinition     `json:"parameters,omitempty"`
	ResourceGroups *map[string]ResourceGroupDefinition `json:"resourceGroups,omitempty"`
	Status         *BlueprintResourceStatusBase        `json:"status,omitempty"`
	TargetScope    *BlueprintTargetScope               `json:"targetScope,omitempty"`
}

type ResourceGroupDefinition

type ResourceGroupDefinition struct {
	DependsOn *[]string                    `json:"dependsOn,omitempty"`
	Location  *string                      `json:"location,omitempty"`
	Metadata  *ParameterDefinitionMetadata `json:"metadata,omitempty"`
	Name      *string                      `json:"name,omitempty"`
	Tags      *map[string]string           `json:"tags,omitempty"`
}

type ScopedBlueprintId

type ScopedBlueprintId struct {
	ResourceScope string
	BlueprintName string
}

ScopedBlueprintId is a struct representing the Resource ID for a Scoped Blueprint

func NewScopedBlueprintID

func NewScopedBlueprintID(resourceScope string, blueprintName string) ScopedBlueprintId

NewScopedBlueprintID returns a new ScopedBlueprintId struct

func ParseScopedBlueprintID

func ParseScopedBlueprintID(input string) (*ScopedBlueprintId, error)

ParseScopedBlueprintID parses 'input' into a ScopedBlueprintId

func ParseScopedBlueprintIDInsensitively

func ParseScopedBlueprintIDInsensitively(input string) (*ScopedBlueprintId, error)

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

func (*ScopedBlueprintId) FromParseResult added in v0.20231127.1171502

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

func (ScopedBlueprintId) ID

func (id ScopedBlueprintId) ID() string

ID returns the formatted Scoped Blueprint ID

func (ScopedBlueprintId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Scoped Blueprint ID

func (ScopedBlueprintId) String

func (id ScopedBlueprintId) String() string

String returns a human-readable description of this Scoped Blueprint ID

type ScopedVersionId

type ScopedVersionId struct {
	ResourceScope string
	BlueprintName string
	VersionId     string
}

ScopedVersionId is a struct representing the Resource ID for a Scoped Version

func NewScopedVersionID

func NewScopedVersionID(resourceScope string, blueprintName string, versionId string) ScopedVersionId

NewScopedVersionID returns a new ScopedVersionId struct

func ParseScopedVersionID

func ParseScopedVersionID(input string) (*ScopedVersionId, error)

ParseScopedVersionID parses 'input' into a ScopedVersionId

func ParseScopedVersionIDInsensitively

func ParseScopedVersionIDInsensitively(input string) (*ScopedVersionId, error)

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

func (*ScopedVersionId) FromParseResult added in v0.20231127.1171502

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

func (ScopedVersionId) ID

func (id ScopedVersionId) ID() string

ID returns the formatted Scoped Version ID

func (ScopedVersionId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Scoped Version ID

func (ScopedVersionId) String

func (id ScopedVersionId) String() string

String returns a human-readable description of this Scoped Version ID

type TemplateParameterType

type TemplateParameterType string
const (
	TemplateParameterTypeArray        TemplateParameterType = "array"
	TemplateParameterTypeBool         TemplateParameterType = "bool"
	TemplateParameterTypeInt          TemplateParameterType = "int"
	TemplateParameterTypeObject       TemplateParameterType = "object"
	TemplateParameterTypeSecureObject TemplateParameterType = "secureObject"
	TemplateParameterTypeSecureString TemplateParameterType = "secureString"
	TemplateParameterTypeString       TemplateParameterType = "string"
)

func (*TemplateParameterType) UnmarshalJSON

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

Jump to

Keyboard shortcuts

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