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-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 := serviceprincipals.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 := serviceprincipals.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 ServicePrincipalsClient ¶
type ServicePrincipalsClient struct {
Client *resourcemanager.Client
}
func NewServicePrincipalsClientWithBaseURI ¶
func NewServicePrincipalsClientWithBaseURI(sdkApi sdkEnv.Api) (*ServicePrincipalsClient, error)
func (ServicePrincipalsClient) Get ¶
func (c ServicePrincipalsClient) Get(ctx context.Context, id commonids.SubscriptionId) (result GetOperationResponse, err error)
Get ...
func (ServicePrincipalsClient) ListBySubscription ¶
func (c ServicePrincipalsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error)
ListBySubscription ...
Click to show internal directories.
Click to hide internal directories.