capabilitytypes

package
v0.20241126.2320 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: MPL-2.0 Imports: 11 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/capabilitytypes Documentation

The capabilitytypes SDK allows for interaction with Azure Resource Manager chaosstudio (API Version 2023-11-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/chaosstudio/2023-11-01/capabilitytypes"

Client Initialization

client := capabilitytypes.NewCapabilityTypesClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: CapabilityTypesClient.List

ctx := context.TODO()
id := capabilitytypes.NewTargetTypeID("12345678-1234-9876-4563-123456789012", "locationName", "targetTypeName")

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

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

ValidateTargetTypeID checks that 'input' can be parsed as a Target Type ID

Types

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 CapabilityTypeOperationPredicate

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

func (CapabilityTypeOperationPredicate) Matches

type CapabilityTypeProperties

type CapabilityTypeProperties struct {
	AzureRbacActions     *[]string                                  `json:"azureRbacActions,omitempty"`
	AzureRbacDataActions *[]string                                  `json:"azureRbacDataActions,omitempty"`
	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 CapabilityTypesClient

type CapabilityTypesClient struct {
	Client *resourcemanager.Client
}

func NewCapabilityTypesClientWithBaseURI

func NewCapabilityTypesClientWithBaseURI(sdkApi sdkEnv.Api) (*CapabilityTypesClient, error)

func (CapabilityTypesClient) List

List ...

func (CapabilityTypesClient) ListComplete

ListComplete retrieves all the results into a single object

func (CapabilityTypesClient) ListCompleteMatchingPredicate

func (c CapabilityTypesClient) ListCompleteMatchingPredicate(ctx context.Context, id TargetTypeId, options ListOperationOptions, predicate CapabilityTypeOperationPredicate) (result ListCompleteResult, err error)

ListCompleteMatchingPredicate retrieves all the results and then applies the predicate

type ListCompleteResult

type ListCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []CapabilityType
}

type ListCustomPager

type ListCustomPager struct {
	NextLink *odata.Link `json:"nextLink"`
}
func (p *ListCustomPager) NextPageLink() *odata.Link

type ListOperationOptions

type ListOperationOptions struct {
	ContinuationToken *string
}

func DefaultListOperationOptions

func DefaultListOperationOptions() ListOperationOptions

func (ListOperationOptions) ToHeaders

func (o ListOperationOptions) ToHeaders() *client.Headers

func (ListOperationOptions) ToOData

func (o ListOperationOptions) ToOData() *odata.Query

func (ListOperationOptions) ToQuery

type ListOperationResponse

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

type TargetTypeId

type TargetTypeId struct {
	SubscriptionId string
	LocationName   string
	TargetTypeName string
}

TargetTypeId is a struct representing the Resource ID for a Target Type

func NewTargetTypeID

func NewTargetTypeID(subscriptionId string, locationName string, targetTypeName string) TargetTypeId

NewTargetTypeID returns a new TargetTypeId struct

func ParseTargetTypeID

func ParseTargetTypeID(input string) (*TargetTypeId, error)

ParseTargetTypeID parses 'input' into a TargetTypeId

func ParseTargetTypeIDInsensitively

func ParseTargetTypeIDInsensitively(input string) (*TargetTypeId, error)

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

func (*TargetTypeId) FromParseResult

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

func (TargetTypeId) ID

func (id TargetTypeId) ID() string

ID returns the formatted Target Type ID

func (TargetTypeId) Segments

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

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

func (TargetTypeId) String

func (id TargetTypeId) String() string

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

Jump to

Keyboard shortcuts

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