serviceprincipals

package
v0.20240301.1111622 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: MPL-2.0 Imports: 9 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/serviceprincipals Documentation

The serviceprincipals SDK allows for interaction with the Azure Resource Manager Service automanage (API Version 2022-05-04).

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-helpers/resourcemanager/commonids"
import "github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/serviceprincipals"

Client Initialization

client := serviceprincipals.NewServicePrincipalsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: ServicePrincipalsClient.Get

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

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: ServicePrincipalsClient.ListBySubscription

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

read, err := client.ListBySubscription(ctx, id)
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 GetOperationResponse

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

type ListBySubscriptionOperationResponse

type ListBySubscriptionOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ServicePrincipalListResult
}

type ServicePrincipal

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

type ServicePrincipalListResult

type ServicePrincipalListResult struct {
	Value *[]ServicePrincipal `json:"value,omitempty"`
}

type ServicePrincipalProperties

type ServicePrincipalProperties struct {
	AuthorizationSet   *bool   `json:"authorizationSet,omitempty"`
	ServicePrincipalId *string `json:"servicePrincipalId,omitempty"`
}

type ServicePrincipalsClient

type ServicePrincipalsClient struct {
	Client *resourcemanager.Client
}

func NewServicePrincipalsClientWithBaseURI

func NewServicePrincipalsClientWithBaseURI(sdkApi sdkEnv.Api) (*ServicePrincipalsClient, error)

func (ServicePrincipalsClient) Get

Get ...

func (ServicePrincipalsClient) ListBySubscription

ListBySubscription ...

Jump to

Keyboard shortcuts

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