roleeligibilityscheduleinstances

package
v0.20230309.1072929 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2023 License: MPL-2.0 Imports: 11 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleeligibilityscheduleinstances Documentation

The roleeligibilityscheduleinstances SDK allows for interaction with the Azure Resource Manager Service authorization (API Version 2020-10-01).

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/authorization/2020-10-01/roleeligibilityscheduleinstances"

Client Initialization

client := roleeligibilityscheduleinstances.NewRoleEligibilityScheduleInstancesClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: RoleEligibilityScheduleInstancesClient.Get

ctx := context.TODO()
id := roleeligibilityscheduleinstances.NewScopedRoleEligibilityScheduleInstanceID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "roleEligibilityScheduleInstanceValue")

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: RoleEligibilityScheduleInstancesClient.ListForScope

ctx := context.TODO()
id := roleeligibilityscheduleinstances.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group")

// alternatively `client.ListForScope(ctx, id, roleeligibilityscheduleinstances.DefaultListForScopeOperationOptions())` can be used to do batched pagination
items, err := client.ListForScopeComplete(ctx, id, roleeligibilityscheduleinstances.DefaultListForScopeOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForMemberType

func PossibleValuesForMemberType() []string

func PossibleValuesForPrincipalType

func PossibleValuesForPrincipalType() []string

func PossibleValuesForStatus

func PossibleValuesForStatus() []string

func ValidateScopedRoleEligibilityScheduleInstanceID

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

ValidateScopedRoleEligibilityScheduleInstanceID checks that 'input' can be parsed as a Scoped Role Eligibility Schedule Instance ID

Types

type ExpandedProperties

type ExpandedProperties struct {
	Principal      *ExpandedPropertiesPrincipal      `json:"principal,omitempty"`
	RoleDefinition *ExpandedPropertiesRoleDefinition `json:"roleDefinition,omitempty"`
	Scope          *ExpandedPropertiesScope          `json:"scope,omitempty"`
}

type ExpandedPropertiesPrincipal

type ExpandedPropertiesPrincipal struct {
	DisplayName *string `json:"displayName,omitempty"`
	Email       *string `json:"email,omitempty"`
	Id          *string `json:"id,omitempty"`
	Type        *string `json:"type,omitempty"`
}

type ExpandedPropertiesRoleDefinition

type ExpandedPropertiesRoleDefinition struct {
	DisplayName *string `json:"displayName,omitempty"`
	Id          *string `json:"id,omitempty"`
	Type        *string `json:"type,omitempty"`
}

type ExpandedPropertiesScope

type ExpandedPropertiesScope struct {
	DisplayName *string `json:"displayName,omitempty"`
	Id          *string `json:"id,omitempty"`
	Type        *string `json:"type,omitempty"`
}

type GetOperationResponse

type GetOperationResponse struct {
	HttpResponse *http.Response
	Model        *RoleEligibilityScheduleInstance
}

type ListForScopeCompleteResult

type ListForScopeCompleteResult struct {
	Items []RoleEligibilityScheduleInstance
}

type ListForScopeOperationOptions

type ListForScopeOperationOptions struct {
	Filter *string
}

func DefaultListForScopeOperationOptions

func DefaultListForScopeOperationOptions() ListForScopeOperationOptions

type ListForScopeOperationResponse

type ListForScopeOperationResponse struct {
	HttpResponse *http.Response
	Model        *[]RoleEligibilityScheduleInstance
	// contains filtered or unexported fields
}

func (ListForScopeOperationResponse) HasMore

func (r ListForScopeOperationResponse) HasMore() bool

func (ListForScopeOperationResponse) LoadMore

type MemberType

type MemberType string
const (
	MemberTypeDirect    MemberType = "Direct"
	MemberTypeGroup     MemberType = "Group"
	MemberTypeInherited MemberType = "Inherited"
)

type PrincipalType

type PrincipalType string
const (
	PrincipalTypeDevice           PrincipalType = "Device"
	PrincipalTypeForeignGroup     PrincipalType = "ForeignGroup"
	PrincipalTypeGroup            PrincipalType = "Group"
	PrincipalTypeServicePrincipal PrincipalType = "ServicePrincipal"
	PrincipalTypeUser             PrincipalType = "User"
)

type RoleEligibilityScheduleInstance

type RoleEligibilityScheduleInstance struct {
	Id         *string                                    `json:"id,omitempty"`
	Name       *string                                    `json:"name,omitempty"`
	Properties *RoleEligibilityScheduleInstanceProperties `json:"properties,omitempty"`
	Type       *string                                    `json:"type,omitempty"`
}

type RoleEligibilityScheduleInstanceOperationPredicate

type RoleEligibilityScheduleInstanceOperationPredicate struct {
	Id   *string
	Name *string
	Type *string
}

func (RoleEligibilityScheduleInstanceOperationPredicate) Matches

type RoleEligibilityScheduleInstanceProperties

type RoleEligibilityScheduleInstanceProperties struct {
	Condition                 *string             `json:"condition,omitempty"`
	ConditionVersion          *string             `json:"conditionVersion,omitempty"`
	CreatedOn                 *string             `json:"createdOn,omitempty"`
	EndDateTime               *string             `json:"endDateTime,omitempty"`
	ExpandedProperties        *ExpandedProperties `json:"expandedProperties,omitempty"`
	MemberType                *MemberType         `json:"memberType,omitempty"`
	PrincipalId               *string             `json:"principalId,omitempty"`
	PrincipalType             *PrincipalType      `json:"principalType,omitempty"`
	RoleDefinitionId          *string             `json:"roleDefinitionId,omitempty"`
	RoleEligibilityScheduleId *string             `json:"roleEligibilityScheduleId,omitempty"`
	Scope                     *string             `json:"scope,omitempty"`
	StartDateTime             *string             `json:"startDateTime,omitempty"`
	Status                    *Status             `json:"status,omitempty"`
}

func (*RoleEligibilityScheduleInstanceProperties) GetCreatedOnAsTime

func (o *RoleEligibilityScheduleInstanceProperties) GetCreatedOnAsTime() (*time.Time, error)

func (*RoleEligibilityScheduleInstanceProperties) GetEndDateTimeAsTime

func (o *RoleEligibilityScheduleInstanceProperties) GetEndDateTimeAsTime() (*time.Time, error)

func (*RoleEligibilityScheduleInstanceProperties) GetStartDateTimeAsTime

func (o *RoleEligibilityScheduleInstanceProperties) GetStartDateTimeAsTime() (*time.Time, error)

func (*RoleEligibilityScheduleInstanceProperties) SetCreatedOnAsTime

func (o *RoleEligibilityScheduleInstanceProperties) SetCreatedOnAsTime(input time.Time)

func (*RoleEligibilityScheduleInstanceProperties) SetEndDateTimeAsTime

func (o *RoleEligibilityScheduleInstanceProperties) SetEndDateTimeAsTime(input time.Time)

func (*RoleEligibilityScheduleInstanceProperties) SetStartDateTimeAsTime

func (o *RoleEligibilityScheduleInstanceProperties) SetStartDateTimeAsTime(input time.Time)

type RoleEligibilityScheduleInstancesClient

type RoleEligibilityScheduleInstancesClient struct {
	Client autorest.Client
	// contains filtered or unexported fields
}

func NewRoleEligibilityScheduleInstancesClientWithBaseURI

func NewRoleEligibilityScheduleInstancesClientWithBaseURI(endpoint string) RoleEligibilityScheduleInstancesClient

func (RoleEligibilityScheduleInstancesClient) Get

Get ...

func (RoleEligibilityScheduleInstancesClient) ListForScope

ListForScope ...

func (RoleEligibilityScheduleInstancesClient) ListForScopeComplete

ListForScopeComplete retrieves all of the results into a single object

func (RoleEligibilityScheduleInstancesClient) ListForScopeCompleteMatchingPredicate

ListForScopeCompleteMatchingPredicate retrieves all of the results and then applied the predicate

type ScopedRoleEligibilityScheduleInstanceId

type ScopedRoleEligibilityScheduleInstanceId struct {
	Scope                               string
	RoleEligibilityScheduleInstanceName string
}

ScopedRoleEligibilityScheduleInstanceId is a struct representing the Resource ID for a Scoped Role Eligibility Schedule Instance

func NewScopedRoleEligibilityScheduleInstanceID

func NewScopedRoleEligibilityScheduleInstanceID(scope string, roleEligibilityScheduleInstanceName string) ScopedRoleEligibilityScheduleInstanceId

NewScopedRoleEligibilityScheduleInstanceID returns a new ScopedRoleEligibilityScheduleInstanceId struct

func ParseScopedRoleEligibilityScheduleInstanceID

func ParseScopedRoleEligibilityScheduleInstanceID(input string) (*ScopedRoleEligibilityScheduleInstanceId, error)

ParseScopedRoleEligibilityScheduleInstanceID parses 'input' into a ScopedRoleEligibilityScheduleInstanceId

func ParseScopedRoleEligibilityScheduleInstanceIDInsensitively

func ParseScopedRoleEligibilityScheduleInstanceIDInsensitively(input string) (*ScopedRoleEligibilityScheduleInstanceId, error)

ParseScopedRoleEligibilityScheduleInstanceIDInsensitively parses 'input' case-insensitively into a ScopedRoleEligibilityScheduleInstanceId note: this method should only be used for API response data and not user input

func (ScopedRoleEligibilityScheduleInstanceId) ID

ID returns the formatted Scoped Role Eligibility Schedule Instance ID

func (ScopedRoleEligibilityScheduleInstanceId) Segments

Segments returns a slice of Resource ID Segments which comprise this Scoped Role Eligibility Schedule Instance ID

func (ScopedRoleEligibilityScheduleInstanceId) String

String returns a human-readable description of this Scoped Role Eligibility Schedule Instance ID

type Status

type Status string
const (
	StatusAccepted                    Status = "Accepted"
	StatusAdminApproved               Status = "AdminApproved"
	StatusAdminDenied                 Status = "AdminDenied"
	StatusCanceled                    Status = "Canceled"
	StatusDenied                      Status = "Denied"
	StatusFailed                      Status = "Failed"
	StatusFailedAsResourceIsLocked    Status = "FailedAsResourceIsLocked"
	StatusGranted                     Status = "Granted"
	StatusInvalid                     Status = "Invalid"
	StatusPendingAdminDecision        Status = "PendingAdminDecision"
	StatusPendingApproval             Status = "PendingApproval"
	StatusPendingApprovalProvisioning Status = "PendingApprovalProvisioning"
	StatusPendingEvaluation           Status = "PendingEvaluation"
	StatusPendingExternalProvisioning Status = "PendingExternalProvisioning"
	StatusPendingProvisioning         Status = "PendingProvisioning"
	StatusPendingRevocation           Status = "PendingRevocation"
	StatusPendingScheduleCreation     Status = "PendingScheduleCreation"
	StatusProvisioned                 Status = "Provisioned"
	StatusProvisioningStarted         Status = "ProvisioningStarted"
	StatusRevoked                     Status = "Revoked"
	StatusScheduleCreated             Status = "ScheduleCreated"
	StatusTimedOut                    Status = "TimedOut"
)

Jump to

Keyboard shortcuts

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