servicerunners

package
v0.20230823.1052657 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2023 License: MPL-2.0 Imports: 10 Imported by: 1

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForManagedIdentityType

func PossibleValuesForManagedIdentityType() []string

func ValidateServiceRunnerID

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

ValidateServiceRunnerID checks that 'input' can be parsed as a Service Runner ID

Types

type CreateOrUpdateOperationResponse

type CreateOrUpdateOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ServiceRunner
}

type DeleteOperationResponse

type DeleteOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type GetOperationResponse

type GetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	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"
)

func (*ManagedIdentityType) UnmarshalJSON added in v0.20230815.1165905

func (s *ManagedIdentityType) UnmarshalJSON(bytes []byte) error

type ServiceRunner

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

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 *resourcemanager.Client
}

func NewServiceRunnersClientWithBaseURI

func NewServiceRunnersClientWithBaseURI(sdkApi sdkEnv.Api) (*ServiceRunnersClient, error)

func (ServiceRunnersClient) CreateOrUpdate

CreateOrUpdate ...

func (ServiceRunnersClient) Delete

Delete ...

func (ServiceRunnersClient) Get

Get ...

Jump to

Keyboard shortcuts

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