tenants

package
v0.20230725.1162434 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2023 License: MPL-2.0 Imports: 7 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-12-01/tenants Documentation

The tenants SDK allows for interaction with the Azure Resource Manager Service resources (API Version 2022-12-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/resources/2022-12-01/tenants"

Client Initialization

client := tenants.NewTenantsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: TenantsClient.CheckResourceName

ctx := context.TODO()

payload := tenants.ResourceName{
	// ...
}


read, err := client.CheckResourceName(ctx, payload)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: TenantsClient.List

ctx := context.TODO()


// alternatively `client.List(ctx)` can be used to do batched pagination
items, err := client.ListComplete(ctx)
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 PossibleValuesForResourceNameStatus

func PossibleValuesForResourceNameStatus() []string

func PossibleValuesForTenantCategory

func PossibleValuesForTenantCategory() []string

Types

type CheckResourceNameOperationResponse

type CheckResourceNameOperationResponse struct {
	HttpResponse *http.Response
	Model        *CheckResourceNameResult
}

type CheckResourceNameResult

type CheckResourceNameResult struct {
	Name   *string             `json:"name,omitempty"`
	Status *ResourceNameStatus `json:"status,omitempty"`
	Type   *string             `json:"type,omitempty"`
}

type ListCompleteResult

type ListCompleteResult struct {
	Items []TenantIdDescription
}

type ListOperationResponse

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

func (ListOperationResponse) HasMore

func (r ListOperationResponse) HasMore() bool

func (ListOperationResponse) LoadMore

func (r ListOperationResponse) LoadMore(ctx context.Context) (resp ListOperationResponse, err error)

type ResourceName

type ResourceName struct {
	Name string `json:"name"`
	Type string `json:"type"`
}

type ResourceNameStatus

type ResourceNameStatus string
const (
	ResourceNameStatusAllowed  ResourceNameStatus = "Allowed"
	ResourceNameStatusReserved ResourceNameStatus = "Reserved"
)

type TenantCategory

type TenantCategory string
const (
	TenantCategoryHome        TenantCategory = "Home"
	TenantCategoryManagedBy   TenantCategory = "ManagedBy"
	TenantCategoryProjectedBy TenantCategory = "ProjectedBy"
)

type TenantIdDescription

type TenantIdDescription struct {
	Country               *string         `json:"country,omitempty"`
	CountryCode           *string         `json:"countryCode,omitempty"`
	DefaultDomain         *string         `json:"defaultDomain,omitempty"`
	DisplayName           *string         `json:"displayName,omitempty"`
	Domains               *[]string       `json:"domains,omitempty"`
	Id                    *string         `json:"id,omitempty"`
	TenantBrandingLogoUrl *string         `json:"tenantBrandingLogoUrl,omitempty"`
	TenantCategory        *TenantCategory `json:"tenantCategory,omitempty"`
	TenantId              *string         `json:"tenantId,omitempty"`
	TenantType            *string         `json:"tenantType,omitempty"`
}

type TenantIdDescriptionOperationPredicate

type TenantIdDescriptionOperationPredicate struct {
	Country               *string
	CountryCode           *string
	DefaultDomain         *string
	DisplayName           *string
	Id                    *string
	TenantBrandingLogoUrl *string
	TenantId              *string
	TenantType            *string
}

func (TenantIdDescriptionOperationPredicate) Matches

type TenantsClient

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

func NewTenantsClientWithBaseURI

func NewTenantsClientWithBaseURI(endpoint string) TenantsClient

func (TenantsClient) CheckResourceName

func (c TenantsClient) CheckResourceName(ctx context.Context, input ResourceName) (result CheckResourceNameOperationResponse, err error)

CheckResourceName ...

func (TenantsClient) List

func (c TenantsClient) List(ctx context.Context) (resp ListOperationResponse, err error)

List ...

func (TenantsClient) ListComplete

func (c TenantsClient) ListComplete(ctx context.Context) (ListCompleteResult, error)

ListComplete retrieves all of the results into a single object

func (TenantsClient) ListCompleteMatchingPredicate

func (c TenantsClient) ListCompleteMatchingPredicate(ctx context.Context, predicate TenantIdDescriptionOperationPredicate) (resp ListCompleteResult, err error)

ListCompleteMatchingPredicate retrieves all of the results and then applied the predicate

Jump to

Keyboard shortcuts

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