tenants

package
v2.96.0 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2022 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForBillingType

func PossibleValuesForBillingType() []string

func PossibleValuesForLocation

func PossibleValuesForLocation() []string

func PossibleValuesForSkuName

func PossibleValuesForSkuName() []string

func PossibleValuesForSkuTier

func PossibleValuesForSkuTier() []string

func ValidateB2CDirectoryID

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

ValidateB2CDirectoryID checks that 'input' can be parsed as a B 2 C Directory ID

func ValidateResourceGroupID

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

ValidateResourceGroupID checks that 'input' can be parsed as a Resource Group ID

func ValidateSubscriptionID

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

ValidateSubscriptionID checks that 'input' can be parsed as a Subscription ID

Types

type B2CDirectoryId

type B2CDirectoryId struct {
	SubscriptionId string
	ResourceGroup  string
	DirectoryName  string
}

B2CDirectoryId is a struct representing the Resource ID for a B 2 C Directory

func NewB2CDirectoryID

func NewB2CDirectoryID(subscriptionId string, resourceGroup string, directoryName string) B2CDirectoryId

NewB2CDirectoryID returns a new B2CDirectoryId struct

func ParseB2CDirectoryID

func ParseB2CDirectoryID(input string) (*B2CDirectoryId, error)

ParseB2CDirectoryID parses 'input' into a B2CDirectoryId

func ParseB2CDirectoryIDInsensitively

func ParseB2CDirectoryIDInsensitively(input string) (*B2CDirectoryId, error)

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

func (B2CDirectoryId) ID

func (id B2CDirectoryId) ID() string

ID returns the formatted B 2 C Directory ID

func (B2CDirectoryId) Segments

func (id B2CDirectoryId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this B 2 C Directory ID

func (B2CDirectoryId) String

func (id B2CDirectoryId) String() string

String returns a human-readable description of this B 2 C Directory ID

type BillingConfig

type BillingConfig struct {
	BillingType           *BillingType `json:"billingType,omitempty"`
	EffectiveStartDateUtc *string      `json:"effectiveStartDateUtc,omitempty"`
}

type BillingType

type BillingType string
const (
	BillingTypeAuths              BillingType = "auths"
	BillingTypeMonthlyActiveUsers BillingType = "mau"
)

type CheckNameAvailabilityRequest

type CheckNameAvailabilityRequest struct {
	CountryCode *string `json:"countryCode,omitempty"`
	Name        *string `json:"name,omitempty"`
}

type CheckNameAvailabilityResponse

type CheckNameAvailabilityResponse struct {
	HttpResponse *http.Response
	Model        *CheckNameAvailabilityResult
}

type CheckNameAvailabilityResult

type CheckNameAvailabilityResult struct {
	Message       *string `json:"message,omitempty"`
	NameAvailable *bool   `json:"nameAvailable,omitempty"`
	Reason        *string `json:"reason,omitempty"`
}

type CreateResponse

type CreateResponse struct {
	Poller       polling.LongRunningPoller
	HttpResponse *http.Response
}

type CreateTenant

type CreateTenant struct {
	Location   Location                  `json:"location"`
	Properties TenantPropertiesForCreate `json:"properties"`
	Sku        Sku                       `json:"sku"`
	Tags       *map[string]string        `json:"tags,omitempty"`
}

type CreateTenantProperties

type CreateTenantProperties struct {
	CountryCode string `json:"countryCode"`
	DisplayName string `json:"displayName"`
}

type DeleteResponse

type DeleteResponse struct {
	Poller       polling.LongRunningPoller
	HttpResponse *http.Response
}

type GetResponse

type GetResponse struct {
	HttpResponse *http.Response
	Model        *Tenant
}

type ListByResourceGroupCompleteResult

type ListByResourceGroupCompleteResult struct {
	Items []Tenant
}

type ListByResourceGroupResponse

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

func (ListByResourceGroupResponse) HasMore

func (r ListByResourceGroupResponse) HasMore() bool

func (ListByResourceGroupResponse) LoadMore

type ListBySubscriptionCompleteResult

type ListBySubscriptionCompleteResult struct {
	Items []Tenant
}

type ListBySubscriptionResponse

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

func (ListBySubscriptionResponse) HasMore

func (r ListBySubscriptionResponse) HasMore() bool

func (ListBySubscriptionResponse) LoadMore

type Location

type Location string
const (
	LocationAsiaPacific  Location = "Asia Pacific"
	LocationAustralia    Location = "Australia"
	LocationEurope       Location = "Europe"
	LocationGlobal       Location = "Global"
	LocationUnitedStates Location = "United States"
)

type ResourceGroupId

type ResourceGroupId struct {
	SubscriptionId string
	ResourceGroup  string
}

ResourceGroupId is a struct representing the Resource ID for a Resource Group

func NewResourceGroupID

func NewResourceGroupID(subscriptionId string, resourceGroup string) ResourceGroupId

NewResourceGroupID returns a new ResourceGroupId struct

func ParseResourceGroupID

func ParseResourceGroupID(input string) (*ResourceGroupId, error)

ParseResourceGroupID parses 'input' into a ResourceGroupId

func ParseResourceGroupIDInsensitively

func ParseResourceGroupIDInsensitively(input string) (*ResourceGroupId, error)

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

func (ResourceGroupId) ID

func (id ResourceGroupId) ID() string

ID returns the formatted Resource Group ID

func (ResourceGroupId) Segments

func (id ResourceGroupId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Resource Group ID

func (ResourceGroupId) String

func (id ResourceGroupId) String() string

String returns a human-readable description of this Resource Group ID

type Sku

type Sku struct {
	Name SkuName `json:"name"`
	Tier SkuTier `json:"tier"`
}

type SkuName

type SkuName string
const (
	SkuNamePremiumP1 SkuName = "PremiumP1"
	SkuNamePremiumP2 SkuName = "PremiumP2"
	SkuNameStandard  SkuName = "Standard"
)

type SkuTier

type SkuTier string
const (
	SkuTierA0 SkuTier = "A0"
)

type SubscriptionId

type SubscriptionId struct {
	SubscriptionId string
}

SubscriptionId is a struct representing the Resource ID for a Subscription

func NewSubscriptionID

func NewSubscriptionID(subscriptionId string) SubscriptionId

NewSubscriptionID returns a new SubscriptionId struct

func ParseSubscriptionID

func ParseSubscriptionID(input string) (*SubscriptionId, error)

ParseSubscriptionID parses 'input' into a SubscriptionId

func ParseSubscriptionIDInsensitively

func ParseSubscriptionIDInsensitively(input string) (*SubscriptionId, error)

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

func (SubscriptionId) ID

func (id SubscriptionId) ID() string

ID returns the formatted Subscription ID

func (SubscriptionId) Segments

func (id SubscriptionId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Subscription ID

func (SubscriptionId) String

func (id SubscriptionId) String() string

String returns a human-readable description of this Subscription ID

type Tenant

type Tenant struct {
	Id         *string            `json:"id,omitempty"`
	Location   *Location          `json:"location,omitempty"`
	Name       *string            `json:"name,omitempty"`
	Properties *TenantProperties  `json:"properties,omitempty"`
	Sku        *Sku               `json:"sku,omitempty"`
	Tags       *map[string]string `json:"tags,omitempty"`
	Type       *string            `json:"type,omitempty"`
}

type TenantPredicate

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

func (TenantPredicate) Matches

func (p TenantPredicate) Matches(input Tenant) bool

type TenantProperties

type TenantProperties struct {
	BillingConfig *BillingConfig `json:"billingConfig,omitempty"`
	CountryCode   *string        `json:"countryCode,omitempty"`
	DisplayName   *string        `json:"displayName,omitempty"`
	TenantId      *string        `json:"tenantId,omitempty"`
}

type TenantPropertiesForCreate

type TenantPropertiesForCreate struct {
	CreateTenantProperties CreateTenantProperties `json:"createTenantProperties"`
}

type TenantsClient

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

func NewTenantsClientWithBaseURI

func NewTenantsClientWithBaseURI(endpoint string) TenantsClient

func (TenantsClient) CheckNameAvailability

func (c TenantsClient) CheckNameAvailability(ctx context.Context, id SubscriptionId, input CheckNameAvailabilityRequest) (result CheckNameAvailabilityResponse, err error)

CheckNameAvailability ...

func (TenantsClient) Create

func (c TenantsClient) Create(ctx context.Context, id B2CDirectoryId, input CreateTenant) (result CreateResponse, err error)

Create ...

func (TenantsClient) CreateThenPoll

func (c TenantsClient) CreateThenPoll(ctx context.Context, id B2CDirectoryId, input CreateTenant) error

CreateThenPoll performs Create then polls until it's completed

func (TenantsClient) Delete

func (c TenantsClient) Delete(ctx context.Context, id B2CDirectoryId) (result DeleteResponse, err error)

Delete ...

func (TenantsClient) DeleteThenPoll

func (c TenantsClient) DeleteThenPoll(ctx context.Context, id B2CDirectoryId) error

DeleteThenPoll performs Delete then polls until it's completed

func (TenantsClient) Get

func (c TenantsClient) Get(ctx context.Context, id B2CDirectoryId) (result GetResponse, err error)

Get ...

func (TenantsClient) ListByResourceGroup

func (c TenantsClient) ListByResourceGroup(ctx context.Context, id ResourceGroupId) (resp ListByResourceGroupResponse, err error)

ListByResourceGroup ...

func (TenantsClient) ListByResourceGroupComplete

func (c TenantsClient) ListByResourceGroupComplete(ctx context.Context, id ResourceGroupId) (ListByResourceGroupCompleteResult, error)

ListByResourceGroupComplete retrieves all of the results into a single object

func (TenantsClient) ListByResourceGroupCompleteMatchingPredicate

func (c TenantsClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id ResourceGroupId, predicate TenantPredicate) (resp ListByResourceGroupCompleteResult, err error)

ListByResourceGroupCompleteMatchingPredicate retrieves all of the results and then applied the predicate

func (TenantsClient) ListBySubscription

func (c TenantsClient) ListBySubscription(ctx context.Context, id SubscriptionId) (resp ListBySubscriptionResponse, err error)

ListBySubscription ...

func (TenantsClient) ListBySubscriptionComplete

func (c TenantsClient) ListBySubscriptionComplete(ctx context.Context, id SubscriptionId) (ListBySubscriptionCompleteResult, error)

ListBySubscriptionComplete retrieves all of the results into a single object

func (TenantsClient) ListBySubscriptionCompleteMatchingPredicate

func (c TenantsClient) ListBySubscriptionCompleteMatchingPredicate(ctx context.Context, id SubscriptionId, predicate TenantPredicate) (resp ListBySubscriptionCompleteResult, err error)

ListBySubscriptionCompleteMatchingPredicate retrieves all of the results and then applied the predicate

func (TenantsClient) Update

func (c TenantsClient) Update(ctx context.Context, id B2CDirectoryId, input UpdateTenant) (result UpdateResponse, err error)

Update ...

type UpdateResponse

type UpdateResponse struct {
	HttpResponse *http.Response
	Model        *Tenant
}

type UpdateTenant

type UpdateTenant struct {
	Properties UpdateTenantProperties `json:"properties"`
	Sku        Sku                    `json:"sku"`
	Tags       *map[string]string     `json:"tags,omitempty"`
}

type UpdateTenantProperties

type UpdateTenantProperties struct {
	BillingConfig *BillingConfig `json:"billingConfig,omitempty"`
}

Jump to

Keyboard shortcuts

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