capabilities

package
v0.20220809.1122626 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2022 License: MPL-2.0 Imports: 9 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2022-07-01-preview/capabilities Documentation

The capabilities SDK allows for interaction with the Azure Resource Manager Service chaosstudio (API Version 2022-07-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/chaosstudio/2022-07-01-preview/capabilities"

Client Initialization

client := capabilities.NewCapabilitiesClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: CapabilitiesClient.CapabilityTypesGet

ctx := context.TODO()
id := capabilities.NewCapabilityTypeID("12345678-1234-9876-4563-123456789012", "locationValue", "targetTypeValue", "capabilityTypeValue")

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

Example Usage: CapabilitiesClient.CreateOrUpdate

ctx := context.TODO()
id := capabilities.NewCapabilitiesID("12345678-1234-9876-4563-123456789012", "example-resource-group", "parentProviderNamespaceValue", "parentResourceTypeValue", "parentResourceValue", "targetValue", "capabilityValue")

payload := capabilities.Capability{
	// ...
}


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

ctx := context.TODO()
id := capabilities.NewCapabilitiesID("12345678-1234-9876-4563-123456789012", "example-resource-group", "parentProviderNamespaceValue", "parentResourceTypeValue", "parentResourceValue", "targetValue", "capabilityValue")

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

ctx := context.TODO()
id := capabilities.NewCapabilitiesID("12345678-1234-9876-4563-123456789012", "example-resource-group", "parentProviderNamespaceValue", "parentResourceTypeValue", "parentResourceValue", "targetValue", "capabilityValue")

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

ctx := context.TODO()
id := capabilities.NewTargetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "parentProviderNamespaceValue", "parentResourceTypeValue", "parentResourceValue", "targetValue")

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

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

ValidateCapabilitiesID checks that 'input' can be parsed as a Capabilities ID

func ValidateCapabilityTypeID

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

ValidateCapabilityTypeID checks that 'input' can be parsed as a Capability Type ID

func ValidateTargetID

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

ValidateTargetID checks that 'input' can be parsed as a Target ID

Types

type CapabilitiesClient

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

func NewCapabilitiesClientWithBaseURI

func NewCapabilitiesClientWithBaseURI(endpoint string) CapabilitiesClient

func (CapabilitiesClient) CapabilityTypesGet

CapabilityTypesGet ...

func (CapabilitiesClient) CreateOrUpdate

func (c CapabilitiesClient) CreateOrUpdate(ctx context.Context, id CapabilitiesId, input Capability) (result CreateOrUpdateOperationResponse, err error)

CreateOrUpdate ...

func (CapabilitiesClient) Delete

Delete ...

func (CapabilitiesClient) Get

Get ...

func (CapabilitiesClient) List

List ...

func (CapabilitiesClient) ListComplete

ListComplete retrieves all of the results into a single object

func (CapabilitiesClient) ListCompleteMatchingPredicate

func (c CapabilitiesClient) ListCompleteMatchingPredicate(ctx context.Context, id TargetId, options ListOperationOptions, predicate CapabilityOperationPredicate) (resp ListCompleteResult, err error)

ListCompleteMatchingPredicate retrieves all of the results and then applied the predicate

type CapabilitiesId

type CapabilitiesId struct {
	SubscriptionId          string
	ResourceGroupName       string
	ParentProviderNamespace string
	ParentResourceType      string
	ParentResourceName      string
	TargetName              string
	CapabilityName          string
}

CapabilitiesId is a struct representing the Resource ID for a Capabilities

func NewCapabilitiesID

func NewCapabilitiesID(subscriptionId string, resourceGroupName string, parentProviderNamespace string, parentResourceType string, parentResourceName string, targetName string, capabilityName string) CapabilitiesId

NewCapabilitiesID returns a new CapabilitiesId struct

func ParseCapabilitiesID

func ParseCapabilitiesID(input string) (*CapabilitiesId, error)

ParseCapabilitiesID parses 'input' into a CapabilitiesId

func ParseCapabilitiesIDInsensitively

func ParseCapabilitiesIDInsensitively(input string) (*CapabilitiesId, error)

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

func (CapabilitiesId) ID

func (id CapabilitiesId) ID() string

ID returns the formatted Capabilities ID

func (CapabilitiesId) Segments

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

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

func (CapabilitiesId) String

func (id CapabilitiesId) String() string

String returns a human-readable description of this Capabilities ID

type Capability

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

type CapabilityOperationPredicate

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

func (CapabilityOperationPredicate) Matches

func (p CapabilityOperationPredicate) Matches(input Capability) bool

type CapabilityProperties

type CapabilityProperties struct {
	Description      *string `json:"description,omitempty"`
	ParametersSchema *string `json:"parametersSchema,omitempty"`
	Publisher        *string `json:"publisher,omitempty"`
	TargetType       *string `json:"targetType,omitempty"`
	Urn              *string `json:"urn,omitempty"`
}

type CapabilityType

type CapabilityType struct {
	Id         *string                   `json:"id,omitempty"`
	Location   *string                   `json:"location,omitempty"`
	Name       *string                   `json:"name,omitempty"`
	Properties *CapabilityTypeProperties `json:"properties,omitempty"`
	SystemData *systemdata.SystemData    `json:"systemData,omitempty"`
	Type       *string                   `json:"type,omitempty"`
}

type CapabilityTypeId

type CapabilityTypeId struct {
	SubscriptionId     string
	LocationName       string
	TargetTypeName     string
	CapabilityTypeName string
}

CapabilityTypeId is a struct representing the Resource ID for a Capability Type

func NewCapabilityTypeID

func NewCapabilityTypeID(subscriptionId string, locationName string, targetTypeName string, capabilityTypeName string) CapabilityTypeId

NewCapabilityTypeID returns a new CapabilityTypeId struct

func ParseCapabilityTypeID

func ParseCapabilityTypeID(input string) (*CapabilityTypeId, error)

ParseCapabilityTypeID parses 'input' into a CapabilityTypeId

func ParseCapabilityTypeIDInsensitively

func ParseCapabilityTypeIDInsensitively(input string) (*CapabilityTypeId, error)

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

func (CapabilityTypeId) ID

func (id CapabilityTypeId) ID() string

ID returns the formatted Capability Type ID

func (CapabilityTypeId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Capability Type ID

func (CapabilityTypeId) String

func (id CapabilityTypeId) String() string

String returns a human-readable description of this Capability Type ID

type CapabilityTypeProperties

type CapabilityTypeProperties struct {
	Description       *string                                    `json:"description,omitempty"`
	DisplayName       *string                                    `json:"displayName,omitempty"`
	Kind              *string                                    `json:"kind,omitempty"`
	ParametersSchema  *string                                    `json:"parametersSchema,omitempty"`
	Publisher         *string                                    `json:"publisher,omitempty"`
	RuntimeProperties *CapabilityTypePropertiesRuntimeProperties `json:"runtimeProperties,omitempty"`
	TargetType        *string                                    `json:"targetType,omitempty"`
	Urn               *string                                    `json:"urn,omitempty"`
}

type CapabilityTypePropertiesRuntimeProperties

type CapabilityTypePropertiesRuntimeProperties struct {
	Kind *string `json:"kind,omitempty"`
}

type CapabilityTypesGetOperationResponse

type CapabilityTypesGetOperationResponse struct {
	HttpResponse *http.Response
	Model        *CapabilityType
}

type CreateOrUpdateOperationResponse

type CreateOrUpdateOperationResponse struct {
	HttpResponse *http.Response
	Model        *Capability
}

type DeleteOperationResponse

type DeleteOperationResponse struct {
	HttpResponse *http.Response
}

type GetOperationResponse

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

type ListCompleteResult

type ListCompleteResult struct {
	Items []Capability
}

type ListOperationOptions

type ListOperationOptions struct {
	ContinuationToken *string
}

func DefaultListOperationOptions

func DefaultListOperationOptions() ListOperationOptions

type ListOperationResponse

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

type TargetId struct {
	SubscriptionId          string
	ResourceGroupName       string
	ParentProviderNamespace string
	ParentResourceType      string
	ParentResourceName      string
	TargetName              string
}

TargetId is a struct representing the Resource ID for a Target

func NewTargetID

func NewTargetID(subscriptionId string, resourceGroupName string, parentProviderNamespace string, parentResourceType string, parentResourceName string, targetName string) TargetId

NewTargetID returns a new TargetId struct

func ParseTargetID

func ParseTargetID(input string) (*TargetId, error)

ParseTargetID parses 'input' into a TargetId

func ParseTargetIDInsensitively

func ParseTargetIDInsensitively(input string) (*TargetId, error)

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

func (TargetId) ID

func (id TargetId) ID() string

ID returns the formatted Target ID

func (TargetId) Segments

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

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

func (TargetId) String

func (id TargetId) String() string

String returns a human-readable description of this Target ID

Jump to

Keyboard shortcuts

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