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 DeleteOperationResponse ¶
type ListByServerGroupOperationResponse ¶
type ListByServerGroupOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *RoleListResult }
type Role ¶
type Role struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *RoleProperties `json:"properties,omitempty"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Type *string `json:"type,omitempty"` }
type RoleId ¶
type RoleId struct { SubscriptionId string ResourceGroupName string ServerGroupsv2Name string RoleName string }
RoleId is a struct representing the Resource ID for a Role
func NewRoleID ¶
func NewRoleID(subscriptionId string, resourceGroupName string, serverGroupsv2Name 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) FromParseResult ¶
func (id *RoleId) FromParseResult(input resourceids.ParseResult) error
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 ¶
type RolesClient struct {
Client *resourcemanager.Client
}
func NewRolesClientWithBaseURI ¶
func NewRolesClientWithBaseURI(sdkApi sdkEnv.Api) (*RolesClient, error)
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 ServerGroupsv2Name string }
ServerGroupsv2Id is a struct representing the Resource ID for a Server Groupsv 2
func NewServerGroupsv2ID ¶
func NewServerGroupsv2ID(subscriptionId string, resourceGroupName string, serverGroupsv2Name 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) FromParseResult ¶
func (id *ServerGroupsv2Id) FromParseResult(input resourceids.ParseResult) error
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