managedidentities

package
v0.20221010.1142840 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2022 License: MPL-2.0 Imports: 7 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/managedidentity/2018-11-30/managedidentities Documentation

The managedidentities SDK allows for interaction with the Azure Resource Manager Service managedidentity (API Version 2018-11-30).

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/managedidentity/2018-11-30/managedidentities"

Client Initialization

client := managedidentities.NewManagedIdentitiesClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: ManagedIdentitiesClient.SystemAssignedIdentitiesGetByScope

ctx := context.TODO()
id := managedidentities.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group")

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

Example Usage: ManagedIdentitiesClient.UserAssignedIdentitiesCreateOrUpdate

ctx := context.TODO()
id := managedidentities.NewUserAssignedIdentityID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceValue")

payload := managedidentities.Identity{
	// ...
}


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

Example Usage: ManagedIdentitiesClient.UserAssignedIdentitiesDelete

ctx := context.TODO()
id := managedidentities.NewUserAssignedIdentityID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceValue")

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

Example Usage: ManagedIdentitiesClient.UserAssignedIdentitiesGet

ctx := context.TODO()
id := managedidentities.NewUserAssignedIdentityID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceValue")

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

Example Usage: ManagedIdentitiesClient.UserAssignedIdentitiesListByResourceGroup

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

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

Example Usage: ManagedIdentitiesClient.UserAssignedIdentitiesListBySubscription

ctx := context.TODO()
id := managedidentities.NewSubscriptionID("12345678-1234-9876-4563-123456789012")

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

Example Usage: ManagedIdentitiesClient.UserAssignedIdentitiesUpdate

ctx := context.TODO()
id := managedidentities.NewUserAssignedIdentityID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceValue")

payload := managedidentities.IdentityUpdate{
	// ...
}


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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Identity

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

type IdentityOperationPredicate

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

func (IdentityOperationPredicate) Matches

func (p IdentityOperationPredicate) Matches(input Identity) bool

type IdentityUpdate

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

type ManagedIdentitiesClient

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

func NewManagedIdentitiesClientWithBaseURI

func NewManagedIdentitiesClientWithBaseURI(endpoint string) ManagedIdentitiesClient

func (ManagedIdentitiesClient) SystemAssignedIdentitiesGetByScope

func (c ManagedIdentitiesClient) SystemAssignedIdentitiesGetByScope(ctx context.Context, id commonids.ScopeId) (result SystemAssignedIdentitiesGetByScopeOperationResponse, err error)

SystemAssignedIdentitiesGetByScope ...

func (ManagedIdentitiesClient) UserAssignedIdentitiesCreateOrUpdate

UserAssignedIdentitiesCreateOrUpdate ...

func (ManagedIdentitiesClient) UserAssignedIdentitiesDelete

UserAssignedIdentitiesDelete ...

func (ManagedIdentitiesClient) UserAssignedIdentitiesGet

UserAssignedIdentitiesGet ...

func (ManagedIdentitiesClient) UserAssignedIdentitiesListByResourceGroup

UserAssignedIdentitiesListByResourceGroup ...

func (ManagedIdentitiesClient) UserAssignedIdentitiesListByResourceGroupComplete

UserAssignedIdentitiesListByResourceGroupComplete retrieves all of the results into a single object

func (ManagedIdentitiesClient) UserAssignedIdentitiesListByResourceGroupCompleteMatchingPredicate

func (c ManagedIdentitiesClient) UserAssignedIdentitiesListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate IdentityOperationPredicate) (resp UserAssignedIdentitiesListByResourceGroupCompleteResult, err error)

UserAssignedIdentitiesListByResourceGroupCompleteMatchingPredicate retrieves all of the results and then applied the predicate

func (ManagedIdentitiesClient) UserAssignedIdentitiesListBySubscription

UserAssignedIdentitiesListBySubscription ...

func (ManagedIdentitiesClient) UserAssignedIdentitiesListBySubscriptionComplete

UserAssignedIdentitiesListBySubscriptionComplete retrieves all of the results into a single object

func (ManagedIdentitiesClient) UserAssignedIdentitiesListBySubscriptionCompleteMatchingPredicate

func (c ManagedIdentitiesClient) UserAssignedIdentitiesListBySubscriptionCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate IdentityOperationPredicate) (resp UserAssignedIdentitiesListBySubscriptionCompleteResult, err error)

UserAssignedIdentitiesListBySubscriptionCompleteMatchingPredicate retrieves all of the results and then applied the predicate

func (ManagedIdentitiesClient) UserAssignedIdentitiesUpdate

UserAssignedIdentitiesUpdate ...

type SystemAssignedIdentitiesGetByScopeOperationResponse

type SystemAssignedIdentitiesGetByScopeOperationResponse struct {
	HttpResponse *http.Response
	Model        *SystemAssignedIdentity
}

type SystemAssignedIdentity

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

type SystemAssignedIdentityProperties

type SystemAssignedIdentityProperties struct {
	ClientId        *string `json:"clientId,omitempty"`
	ClientSecretUrl *string `json:"clientSecretUrl,omitempty"`
	PrincipalId     *string `json:"principalId,omitempty"`
	TenantId        *string `json:"tenantId,omitempty"`
}

type UserAssignedIdentitiesCreateOrUpdateOperationResponse

type UserAssignedIdentitiesCreateOrUpdateOperationResponse struct {
	HttpResponse *http.Response
	Model        *Identity
}

type UserAssignedIdentitiesDeleteOperationResponse

type UserAssignedIdentitiesDeleteOperationResponse struct {
	HttpResponse *http.Response
}

type UserAssignedIdentitiesGetOperationResponse

type UserAssignedIdentitiesGetOperationResponse struct {
	HttpResponse *http.Response
	Model        *Identity
}

type UserAssignedIdentitiesListByResourceGroupCompleteResult

type UserAssignedIdentitiesListByResourceGroupCompleteResult struct {
	Items []Identity
}

type UserAssignedIdentitiesListByResourceGroupOperationResponse

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

func (UserAssignedIdentitiesListByResourceGroupOperationResponse) HasMore

func (UserAssignedIdentitiesListByResourceGroupOperationResponse) LoadMore

type UserAssignedIdentitiesListBySubscriptionCompleteResult

type UserAssignedIdentitiesListBySubscriptionCompleteResult struct {
	Items []Identity
}

type UserAssignedIdentitiesListBySubscriptionOperationResponse

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

func (UserAssignedIdentitiesListBySubscriptionOperationResponse) HasMore

func (UserAssignedIdentitiesListBySubscriptionOperationResponse) LoadMore

type UserAssignedIdentitiesUpdateOperationResponse

type UserAssignedIdentitiesUpdateOperationResponse struct {
	HttpResponse *http.Response
	Model        *Identity
}

type UserAssignedIdentityProperties

type UserAssignedIdentityProperties struct {
	ClientId    *string `json:"clientId,omitempty"`
	PrincipalId *string `json:"principalId,omitempty"`
	TenantId    *string `json:"tenantId,omitempty"`
}

Jump to

Keyboard shortcuts

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