trustedaccess

package
v0.20240119.1092300 Latest Latest
Warning

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

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

README

github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-10-01/trustedaccess Documentation

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

Client Initialization

client := trustedaccess.NewTrustedAccessClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: TrustedAccessClient.RoleBindingsCreateOrUpdate

ctx := context.TODO()
id := trustedaccess.NewTrustedAccessRoleBindingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue", "trustedAccessRoleBindingValue")

payload := trustedaccess.TrustedAccessRoleBinding{
	// ...
}


if err := client.RoleBindingsCreateOrUpdateThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Example Usage: TrustedAccessClient.RoleBindingsDelete

ctx := context.TODO()
id := trustedaccess.NewTrustedAccessRoleBindingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue", "trustedAccessRoleBindingValue")

if err := client.RoleBindingsDeleteThenPoll(ctx, id); err != nil {
	// handle the error
}

Example Usage: TrustedAccessClient.RoleBindingsGet

ctx := context.TODO()
id := trustedaccess.NewTrustedAccessRoleBindingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue", "trustedAccessRoleBindingValue")

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

Example Usage: TrustedAccessClient.RoleBindingsList

ctx := context.TODO()
id := trustedaccess.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue")

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

Example Usage: TrustedAccessClient.RolesList

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

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

func PossibleValuesForTrustedAccessRoleBindingProvisioningState() []string

func ValidateLocationID

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

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

func ValidateTrustedAccessRoleBindingID

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

ValidateTrustedAccessRoleBindingID checks that 'input' can be parsed as a Trusted Access Role Binding ID

Types

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) FromParseResult

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

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 RoleBindingsCreateOrUpdateOperationResponse

type RoleBindingsCreateOrUpdateOperationResponse struct {
	Poller       polling.LongRunningPoller
	HttpResponse *http.Response
}

type RoleBindingsDeleteOperationResponse

type RoleBindingsDeleteOperationResponse struct {
	Poller       polling.LongRunningPoller
	HttpResponse *http.Response
}

type RoleBindingsGetOperationResponse

type RoleBindingsGetOperationResponse struct {
	HttpResponse *http.Response
	Model        *TrustedAccessRoleBinding
}

type RoleBindingsListCompleteResult

type RoleBindingsListCompleteResult struct {
	Items []TrustedAccessRoleBinding
}

type RoleBindingsListOperationResponse

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

func (RoleBindingsListOperationResponse) HasMore

func (RoleBindingsListOperationResponse) LoadMore

type RolesListCompleteResult

type RolesListCompleteResult struct {
	Items []TrustedAccessRole
}

type RolesListOperationResponse

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

func (RolesListOperationResponse) HasMore

func (r RolesListOperationResponse) HasMore() bool

func (RolesListOperationResponse) LoadMore

type TrustedAccessClient

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

func NewTrustedAccessClientWithBaseURI

func NewTrustedAccessClientWithBaseURI(endpoint string) TrustedAccessClient

func (TrustedAccessClient) RoleBindingsCreateOrUpdate

RoleBindingsCreateOrUpdate ...

func (TrustedAccessClient) RoleBindingsCreateOrUpdateThenPoll

func (c TrustedAccessClient) RoleBindingsCreateOrUpdateThenPoll(ctx context.Context, id TrustedAccessRoleBindingId, input TrustedAccessRoleBinding) error

RoleBindingsCreateOrUpdateThenPoll performs RoleBindingsCreateOrUpdate then polls until it's completed

func (TrustedAccessClient) RoleBindingsDelete

RoleBindingsDelete ...

func (TrustedAccessClient) RoleBindingsDeleteThenPoll

func (c TrustedAccessClient) RoleBindingsDeleteThenPoll(ctx context.Context, id TrustedAccessRoleBindingId) error

RoleBindingsDeleteThenPoll performs RoleBindingsDelete then polls until it's completed

func (TrustedAccessClient) RoleBindingsGet

RoleBindingsGet ...

func (TrustedAccessClient) RoleBindingsList

RoleBindingsList ...

func (TrustedAccessClient) RoleBindingsListComplete

RoleBindingsListComplete retrieves all of the results into a single object

func (TrustedAccessClient) RoleBindingsListCompleteMatchingPredicate

func (c TrustedAccessClient) RoleBindingsListCompleteMatchingPredicate(ctx context.Context, id commonids.KubernetesClusterId, predicate TrustedAccessRoleBindingOperationPredicate) (resp RoleBindingsListCompleteResult, err error)

RoleBindingsListCompleteMatchingPredicate retrieves all of the results and then applied the predicate

func (TrustedAccessClient) RolesList

RolesList ...

func (TrustedAccessClient) RolesListComplete

RolesListComplete retrieves all of the results into a single object

func (TrustedAccessClient) RolesListCompleteMatchingPredicate

func (c TrustedAccessClient) RolesListCompleteMatchingPredicate(ctx context.Context, id LocationId, predicate TrustedAccessRoleOperationPredicate) (resp RolesListCompleteResult, err error)

RolesListCompleteMatchingPredicate retrieves all of the results and then applied the predicate

type TrustedAccessRole

type TrustedAccessRole struct {
	Name               *string                  `json:"name,omitempty"`
	Rules              *[]TrustedAccessRoleRule `json:"rules,omitempty"`
	SourceResourceType *string                  `json:"sourceResourceType,omitempty"`
}

type TrustedAccessRoleBinding

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

type TrustedAccessRoleBindingId

type TrustedAccessRoleBindingId struct {
	SubscriptionId               string
	ResourceGroupName            string
	ManagedClusterName           string
	TrustedAccessRoleBindingName string
}

TrustedAccessRoleBindingId is a struct representing the Resource ID for a Trusted Access Role Binding

func NewTrustedAccessRoleBindingID

func NewTrustedAccessRoleBindingID(subscriptionId string, resourceGroupName string, managedClusterName string, trustedAccessRoleBindingName string) TrustedAccessRoleBindingId

NewTrustedAccessRoleBindingID returns a new TrustedAccessRoleBindingId struct

func ParseTrustedAccessRoleBindingID

func ParseTrustedAccessRoleBindingID(input string) (*TrustedAccessRoleBindingId, error)

ParseTrustedAccessRoleBindingID parses 'input' into a TrustedAccessRoleBindingId

func ParseTrustedAccessRoleBindingIDInsensitively

func ParseTrustedAccessRoleBindingIDInsensitively(input string) (*TrustedAccessRoleBindingId, error)

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

func (*TrustedAccessRoleBindingId) FromParseResult

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

func (TrustedAccessRoleBindingId) ID

ID returns the formatted Trusted Access Role Binding ID

func (TrustedAccessRoleBindingId) Segments

Segments returns a slice of Resource ID Segments which comprise this Trusted Access Role Binding ID

func (TrustedAccessRoleBindingId) String

func (id TrustedAccessRoleBindingId) String() string

String returns a human-readable description of this Trusted Access Role Binding ID

type TrustedAccessRoleBindingOperationPredicate

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

func (TrustedAccessRoleBindingOperationPredicate) Matches

type TrustedAccessRoleBindingProperties

type TrustedAccessRoleBindingProperties struct {
	ProvisioningState *TrustedAccessRoleBindingProvisioningState `json:"provisioningState,omitempty"`
	Roles             []string                                   `json:"roles"`
	SourceResourceId  string                                     `json:"sourceResourceId"`
}

type TrustedAccessRoleBindingProvisioningState

type TrustedAccessRoleBindingProvisioningState string
const (
	TrustedAccessRoleBindingProvisioningStateCanceled  TrustedAccessRoleBindingProvisioningState = "Canceled"
	TrustedAccessRoleBindingProvisioningStateDeleting  TrustedAccessRoleBindingProvisioningState = "Deleting"
	TrustedAccessRoleBindingProvisioningStateFailed    TrustedAccessRoleBindingProvisioningState = "Failed"
	TrustedAccessRoleBindingProvisioningStateSucceeded TrustedAccessRoleBindingProvisioningState = "Succeeded"
	TrustedAccessRoleBindingProvisioningStateUpdating  TrustedAccessRoleBindingProvisioningState = "Updating"
)

type TrustedAccessRoleOperationPredicate

type TrustedAccessRoleOperationPredicate struct {
	Name               *string
	SourceResourceType *string
}

func (TrustedAccessRoleOperationPredicate) Matches

type TrustedAccessRoleRule

type TrustedAccessRoleRule struct {
	ApiGroups       *[]string `json:"apiGroups,omitempty"`
	NonResourceURLs *[]string `json:"nonResourceURLs,omitempty"`
	ResourceNames   *[]string `json:"resourceNames,omitempty"`
	Resources       *[]string `json:"resources,omitempty"`
	Verbs           *[]string `json:"verbs,omitempty"`
}

Jump to

Keyboard shortcuts

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