README ¶
github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/servicerunners
Documentation
The servicerunners
SDK allows for interaction with the Azure Resource Manager Service devtestlab
(API Version 2018-09-15
).
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/devtestlab/2018-09-15/servicerunners"
Client Initialization
client := servicerunners.NewServiceRunnersClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer
Example Usage: ServiceRunnersClient.CreateOrUpdate
ctx := context.TODO()
id := servicerunners.NewServiceRunnerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "labValue", "serviceRunnerValue")
payload := servicerunners.ServiceRunner{
// ...
}
read, err := client.CreateOrUpdate(ctx, id, payload)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: ServiceRunnersClient.Delete
ctx := context.TODO()
id := servicerunners.NewServiceRunnerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "labValue", "serviceRunnerValue")
read, err := client.Delete(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: ServiceRunnersClient.Get
ctx := context.TODO()
id := servicerunners.NewServiceRunnerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "labValue", "serviceRunnerValue")
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
}
Documentation ¶
Index ¶
- func PossibleValuesForManagedIdentityType() []string
- func ValidateServiceRunnerID(input interface{}, key string) (warnings []string, errors []error)
- type CreateOrUpdateOperationResponse
- type DeleteOperationResponse
- type GetOperationResponse
- type IdentityProperties
- type ManagedIdentityType
- type ServiceRunner
- type ServiceRunnerId
- type ServiceRunnersClient
- func (c ServiceRunnersClient) CreateOrUpdate(ctx context.Context, id ServiceRunnerId, input ServiceRunner) (result CreateOrUpdateOperationResponse, err error)
- func (c ServiceRunnersClient) Delete(ctx context.Context, id ServiceRunnerId) (result DeleteOperationResponse, err error)
- func (c ServiceRunnersClient) Get(ctx context.Context, id ServiceRunnerId) (result GetOperationResponse, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForManagedIdentityType ¶
func PossibleValuesForManagedIdentityType() []string
func ValidateServiceRunnerID ¶
ValidateServiceRunnerID checks that 'input' can be parsed as a Service Runner ID
Types ¶
type CreateOrUpdateOperationResponse ¶
type CreateOrUpdateOperationResponse struct { HttpResponse *http.Response Model *ServiceRunner }
type DeleteOperationResponse ¶
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response Model *ServiceRunner }
type IdentityProperties ¶
type IdentityProperties struct { ClientSecretUrl *string `json:"clientSecretUrl,omitempty"` PrincipalId *string `json:"principalId,omitempty"` TenantId *string `json:"tenantId,omitempty"` Type *ManagedIdentityType `json:"type,omitempty"` }
type ManagedIdentityType ¶
type ManagedIdentityType string
const ( ManagedIdentityTypeNone ManagedIdentityType = "None" ManagedIdentityTypeSystemAssigned ManagedIdentityType = "SystemAssigned" ManagedIdentityTypeSystemAssignedUserAssigned ManagedIdentityType = "SystemAssigned,UserAssigned" ManagedIdentityTypeUserAssigned ManagedIdentityType = "UserAssigned" )
type ServiceRunner ¶
type ServiceRunnerId ¶
type ServiceRunnerId struct { SubscriptionId string ResourceGroupName string LabName string ServiceRunnerName string }
ServiceRunnerId is a struct representing the Resource ID for a Service Runner
func NewServiceRunnerID ¶
func NewServiceRunnerID(subscriptionId string, resourceGroupName string, labName string, serviceRunnerName string) ServiceRunnerId
NewServiceRunnerID returns a new ServiceRunnerId struct
func ParseServiceRunnerID ¶
func ParseServiceRunnerID(input string) (*ServiceRunnerId, error)
ParseServiceRunnerID parses 'input' into a ServiceRunnerId
func ParseServiceRunnerIDInsensitively ¶
func ParseServiceRunnerIDInsensitively(input string) (*ServiceRunnerId, error)
ParseServiceRunnerIDInsensitively parses 'input' case-insensitively into a ServiceRunnerId note: this method should only be used for API response data and not user input
func (ServiceRunnerId) ID ¶
func (id ServiceRunnerId) ID() string
ID returns the formatted Service Runner ID
func (ServiceRunnerId) Segments ¶
func (id ServiceRunnerId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Service Runner ID
func (ServiceRunnerId) String ¶
func (id ServiceRunnerId) String() string
String returns a human-readable description of this Service Runner ID
type ServiceRunnersClient ¶
type ServiceRunnersClient struct { Client autorest.Client // contains filtered or unexported fields }
func NewServiceRunnersClientWithBaseURI ¶
func NewServiceRunnersClientWithBaseURI(endpoint string) ServiceRunnersClient
func (ServiceRunnersClient) CreateOrUpdate ¶
func (c ServiceRunnersClient) CreateOrUpdate(ctx context.Context, id ServiceRunnerId, input ServiceRunner) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (ServiceRunnersClient) Delete ¶
func (c ServiceRunnersClient) Delete(ctx context.Context, id ServiceRunnerId) (result DeleteOperationResponse, err error)
Delete ...
func (ServiceRunnersClient) Get ¶
func (c ServiceRunnersClient) Get(ctx context.Context, id ServiceRunnerId) (result GetOperationResponse, err error)
Get ...