Documentation ¶
Index ¶
- func ValidateRoleID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateServerGroupsv2ID(input interface{}, key string) (warnings []string, errors []error)
- type CreateOperationResponse
- type DeleteOperationResponse
- type ListByServerGroupOperationResponse
- type Role
- type RoleId
- type RoleListResult
- type RoleProperties
- type RolesClient
- func (c RolesClient) Create(ctx context.Context, id RoleId, input Role) (result CreateOperationResponse, err error)
- func (c RolesClient) CreateThenPoll(ctx context.Context, id RoleId, input Role) error
- func (c RolesClient) Delete(ctx context.Context, id RoleId) (result DeleteOperationResponse, err error)
- func (c RolesClient) DeleteThenPoll(ctx context.Context, id RoleId) error
- func (c RolesClient) ListByServerGroup(ctx context.Context, id ServerGroupsv2Id) (result ListByServerGroupOperationResponse, err error)
- type ServerGroupsv2Id
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateRoleID ¶
ValidateRoleID checks that 'input' can be parsed as a Role ID
func ValidateServerGroupsv2ID ¶
ValidateServerGroupsv2ID checks that 'input' can be parsed as a Server Groupsv 2 ID
Types ¶
type CreateOperationResponse ¶
type CreateOperationResponse struct { Poller polling.LongRunningPoller HttpResponse *http.Response }
type DeleteOperationResponse ¶
type DeleteOperationResponse struct { Poller polling.LongRunningPoller HttpResponse *http.Response }
type ListByServerGroupOperationResponse ¶
type ListByServerGroupOperationResponse struct { HttpResponse *http.Response Model *RoleListResult }
type Role ¶
type Role struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *RoleProperties `json:"properties"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Type *string `json:"type,omitempty"` }
type RoleId ¶
type RoleId struct { SubscriptionId string ResourceGroupName string ServerGroupName string RoleName string }
RoleId is a struct representing the Resource ID for a Role
func NewRoleID ¶
func NewRoleID(subscriptionId string, resourceGroupName string, serverGroupName string, roleName string) RoleId
NewRoleID returns a new RoleId struct
func ParseRoleID ¶
ParseRoleID parses 'input' into a RoleId
func ParseRoleIDInsensitively ¶
ParseRoleIDInsensitively parses 'input' case-insensitively into a RoleId note: this method should only be used for API response data and not user input
func (RoleId) Segments ¶
func (id RoleId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Role ID
type RoleListResult ¶
type RoleListResult struct {
Value *[]Role `json:"value,omitempty"`
}
type RoleProperties ¶
type RoleProperties struct {
Password string `json:"password"`
}
type RolesClient ¶
func NewRolesClientWithBaseURI ¶
func NewRolesClientWithBaseURI(endpoint string) RolesClient
func (RolesClient) Create ¶
func (c RolesClient) Create(ctx context.Context, id RoleId, input Role) (result CreateOperationResponse, err error)
Create ...
func (RolesClient) CreateThenPoll ¶
CreateThenPoll performs Create then polls until it's completed
func (RolesClient) Delete ¶
func (c RolesClient) Delete(ctx context.Context, id RoleId) (result DeleteOperationResponse, err error)
Delete ...
func (RolesClient) DeleteThenPoll ¶
func (c RolesClient) DeleteThenPoll(ctx context.Context, id RoleId) error
DeleteThenPoll performs Delete then polls until it's completed
func (RolesClient) ListByServerGroup ¶
func (c RolesClient) ListByServerGroup(ctx context.Context, id ServerGroupsv2Id) (result ListByServerGroupOperationResponse, err error)
ListByServerGroup ...
type ServerGroupsv2Id ¶
type ServerGroupsv2Id struct { SubscriptionId string ResourceGroupName string ServerGroupName string }
ServerGroupsv2Id is a struct representing the Resource ID for a Server Groupsv 2
func NewServerGroupsv2ID ¶
func NewServerGroupsv2ID(subscriptionId string, resourceGroupName string, serverGroupName string) ServerGroupsv2Id
NewServerGroupsv2ID returns a new ServerGroupsv2Id struct
func ParseServerGroupsv2ID ¶
func ParseServerGroupsv2ID(input string) (*ServerGroupsv2Id, error)
ParseServerGroupsv2ID parses 'input' into a ServerGroupsv2Id
func ParseServerGroupsv2IDInsensitively ¶
func ParseServerGroupsv2IDInsensitively(input string) (*ServerGroupsv2Id, error)
ParseServerGroupsv2IDInsensitively parses 'input' case-insensitively into a ServerGroupsv2Id note: this method should only be used for API response data and not user input
func (ServerGroupsv2Id) ID ¶
func (id ServerGroupsv2Id) ID() string
ID returns the formatted Server Groupsv 2 ID
func (ServerGroupsv2Id) Segments ¶
func (id ServerGroupsv2Id) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Server Groupsv 2 ID
func (ServerGroupsv2Id) String ¶
func (id ServerGroupsv2Id) String() string
String returns a human-readable description of this Server Groupsv 2 ID