managementgroups

package
v0.20240701.1082110 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2024 License: MPL-2.0 Imports: 15 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/managementgroups/2020-05-01/managementgroups Documentation

The managementgroups SDK allows for interaction with the Azure Resource Manager Service managementgroups (API Version 2020-05-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-helpers/resourcemanager/commonids"
import "github.com/hashicorp/go-azure-sdk/resource-manager/managementgroups/2020-05-01/managementgroups"

Client Initialization

client := managementgroups.NewManagementGroupsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: ManagementGroupsClient.CreateOrUpdate

ctx := context.TODO()
id := commonids.NewManagementGroupID("groupIdValue")

payload := managementgroups.CreateManagementGroupRequest{
	// ...
}


if err := client.CreateOrUpdateThenPoll(ctx, id, payload, managementgroups.DefaultCreateOrUpdateOperationOptions()); err != nil {
	// handle the error
}

Example Usage: ManagementGroupsClient.Delete

ctx := context.TODO()
id := commonids.NewManagementGroupID("groupIdValue")

if err := client.DeleteThenPoll(ctx, id, managementgroups.DefaultDeleteOperationOptions()); err != nil {
	// handle the error
}

Example Usage: ManagementGroupsClient.Get

ctx := context.TODO()
id := commonids.NewManagementGroupID("groupIdValue")

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

Example Usage: ManagementGroupsClient.GetDescendants

ctx := context.TODO()
id := commonids.NewManagementGroupID("groupIdValue")

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

Example Usage: ManagementGroupsClient.HierarchySettingsCreateOrUpdate

ctx := context.TODO()
id := commonids.NewManagementGroupID("groupIdValue")

payload := managementgroups.CreateOrUpdateSettingsRequest{
	// ...
}


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

Example Usage: ManagementGroupsClient.HierarchySettingsDelete

ctx := context.TODO()
id := commonids.NewManagementGroupID("groupIdValue")

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

Example Usage: ManagementGroupsClient.HierarchySettingsGet

ctx := context.TODO()
id := commonids.NewManagementGroupID("groupIdValue")

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

Example Usage: ManagementGroupsClient.HierarchySettingsList

ctx := context.TODO()
id := commonids.NewManagementGroupID("groupIdValue")

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

Example Usage: ManagementGroupsClient.HierarchySettingsUpdate

ctx := context.TODO()
id := commonids.NewManagementGroupID("groupIdValue")

payload := managementgroups.CreateOrUpdateSettingsRequest{
	// ...
}


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

Example Usage: ManagementGroupsClient.List

ctx := context.TODO()


// alternatively `client.List(ctx, managementgroups.DefaultListOperationOptions())` can be used to do batched pagination
items, err := client.ListComplete(ctx, managementgroups.DefaultListOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: ManagementGroupsClient.SubscriptionsCreate

ctx := context.TODO()
id := managementgroups.NewSubscriptionID("groupIdValue", "12345678-1234-9876-4563-123456789012")

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

Example Usage: ManagementGroupsClient.SubscriptionsDelete

ctx := context.TODO()
id := managementgroups.NewSubscriptionID("groupIdValue", "12345678-1234-9876-4563-123456789012")

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

Example Usage: ManagementGroupsClient.SubscriptionsGetSubscription

ctx := context.TODO()
id := managementgroups.NewSubscriptionID("groupIdValue", "12345678-1234-9876-4563-123456789012")

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

Example Usage: ManagementGroupsClient.SubscriptionsGetSubscriptionsUnderManagementGroup

ctx := context.TODO()
id := commonids.NewManagementGroupID("groupIdValue")

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

Example Usage: ManagementGroupsClient.Update

ctx := context.TODO()
id := commonids.NewManagementGroupID("groupIdValue")

payload := managementgroups.PatchManagementGroupRequest{
	// ...
}


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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForExpand

func PossibleValuesForExpand() []string

func PossibleValuesForManagementGroupChildType added in v0.20240320.1143605

func PossibleValuesForManagementGroupChildType() []string

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 AzureAsyncOperationResults

type AzureAsyncOperationResults struct {
	Id         *string                        `json:"id,omitempty"`
	Name       *string                        `json:"name,omitempty"`
	Properties *ManagementGroupInfoProperties `json:"properties,omitempty"`
	Status     *string                        `json:"status,omitempty"`
	Type       *string                        `json:"type,omitempty"`
}

type CreateManagementGroupChildInfo

type CreateManagementGroupChildInfo struct {
	Children    *[]CreateManagementGroupChildInfo `json:"children,omitempty"`
	DisplayName *string                           `json:"displayName,omitempty"`
	Id          *string                           `json:"id,omitempty"`
	Name        *string                           `json:"name,omitempty"`
	Type        *ManagementGroupChildType         `json:"type,omitempty"`
}

type CreateManagementGroupDetails

type CreateManagementGroupDetails struct {
	Parent      *CreateParentGroupInfo `json:"parent,omitempty"`
	UpdatedBy   *string                `json:"updatedBy,omitempty"`
	UpdatedTime *string                `json:"updatedTime,omitempty"`
	Version     *float64               `json:"version,omitempty"`
}

func (*CreateManagementGroupDetails) GetUpdatedTimeAsTime

func (o *CreateManagementGroupDetails) GetUpdatedTimeAsTime() (*time.Time, error)

func (*CreateManagementGroupDetails) SetUpdatedTimeAsTime

func (o *CreateManagementGroupDetails) SetUpdatedTimeAsTime(input time.Time)

type CreateManagementGroupProperties

type CreateManagementGroupProperties struct {
	Children    *[]CreateManagementGroupChildInfo `json:"children,omitempty"`
	Details     *CreateManagementGroupDetails     `json:"details,omitempty"`
	DisplayName *string                           `json:"displayName,omitempty"`
	TenantId    *string                           `json:"tenantId,omitempty"`
}

type CreateManagementGroupRequest

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

type CreateOrUpdateOperationOptions

type CreateOrUpdateOperationOptions struct {
	CacheControl *string
}

func DefaultCreateOrUpdateOperationOptions

func DefaultCreateOrUpdateOperationOptions() CreateOrUpdateOperationOptions

func (CreateOrUpdateOperationOptions) ToHeaders

func (CreateOrUpdateOperationOptions) ToOData

func (CreateOrUpdateOperationOptions) ToQuery

type CreateOrUpdateOperationResponse

type CreateOrUpdateOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ManagementGroup
}

type CreateOrUpdateSettingsProperties

type CreateOrUpdateSettingsProperties struct {
	DefaultManagementGroup               *string `json:"defaultManagementGroup,omitempty"`
	RequireAuthorizationForGroupCreation *bool   `json:"requireAuthorizationForGroupCreation,omitempty"`
}

type CreateOrUpdateSettingsRequest

type CreateOrUpdateSettingsRequest struct {
	Properties *CreateOrUpdateSettingsProperties `json:"properties,omitempty"`
}

type CreateParentGroupInfo

type CreateParentGroupInfo struct {
	DisplayName *string `json:"displayName,omitempty"`
	Id          *string `json:"id,omitempty"`
	Name        *string `json:"name,omitempty"`
}

type DeleteOperationOptions

type DeleteOperationOptions struct {
	CacheControl *string
}

func DefaultDeleteOperationOptions

func DefaultDeleteOperationOptions() DeleteOperationOptions

func (DeleteOperationOptions) ToHeaders

func (o DeleteOperationOptions) ToHeaders() *client.Headers

func (DeleteOperationOptions) ToOData

func (o DeleteOperationOptions) ToOData() *odata.Query

func (DeleteOperationOptions) ToQuery

type DeleteOperationResponse

type DeleteOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *AzureAsyncOperationResults
}

type DescendantInfo

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

type DescendantInfoOperationPredicate

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

func (DescendantInfoOperationPredicate) Matches

type DescendantInfoProperties

type DescendantInfoProperties struct {
	DisplayName *string                    `json:"displayName,omitempty"`
	Parent      *DescendantParentGroupInfo `json:"parent,omitempty"`
}

type DescendantParentGroupInfo

type DescendantParentGroupInfo struct {
	Id *string `json:"id,omitempty"`
}

type Expand

type Expand string
const (
	ExpandChildren Expand = "children"
	ExpandPath     Expand = "path"
)

func (*Expand) UnmarshalJSON

func (s *Expand) UnmarshalJSON(bytes []byte) error

type GetDescendantsCompleteResult

type GetDescendantsCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []DescendantInfo
}

type GetDescendantsCustomPager added in v0.20240628.1153531

type GetDescendantsCustomPager struct {
	NextLink *odata.Link `json:"nextLink"`
}
func (p *GetDescendantsCustomPager) NextPageLink() *odata.Link

type GetDescendantsOperationOptions

type GetDescendantsOperationOptions struct {
	Top *int64
}

func DefaultGetDescendantsOperationOptions

func DefaultGetDescendantsOperationOptions() GetDescendantsOperationOptions

func (GetDescendantsOperationOptions) ToHeaders

func (GetDescendantsOperationOptions) ToOData

func (GetDescendantsOperationOptions) ToQuery

type GetDescendantsOperationResponse

type GetDescendantsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]DescendantInfo
}

type GetOperationOptions

type GetOperationOptions struct {
	CacheControl *string
	Expand       *Expand
	Filter       *string
	Recurse      *bool
}

func DefaultGetOperationOptions

func DefaultGetOperationOptions() GetOperationOptions

func (GetOperationOptions) ToHeaders

func (o GetOperationOptions) ToHeaders() *client.Headers

func (GetOperationOptions) ToOData

func (o GetOperationOptions) ToOData() *odata.Query

func (GetOperationOptions) ToQuery

func (o GetOperationOptions) ToQuery() *client.QueryParams

type GetOperationResponse

type GetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ManagementGroup
}

type HierarchySettings

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

type HierarchySettingsCreateOrUpdateOperationResponse

type HierarchySettingsCreateOrUpdateOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *HierarchySettings
}

type HierarchySettingsDeleteOperationResponse

type HierarchySettingsDeleteOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type HierarchySettingsGetOperationResponse

type HierarchySettingsGetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *HierarchySettings
}

type HierarchySettingsInfo

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

type HierarchySettingsList

type HierarchySettingsList struct {
	NextLink *string                  `json:"@nextLink,omitempty"`
	Value    *[]HierarchySettingsInfo `json:"value,omitempty"`
}

type HierarchySettingsListOperationResponse

type HierarchySettingsListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *HierarchySettingsList
}

type HierarchySettingsProperties

type HierarchySettingsProperties struct {
	DefaultManagementGroup               *string `json:"defaultManagementGroup,omitempty"`
	RequireAuthorizationForGroupCreation *bool   `json:"requireAuthorizationForGroupCreation,omitempty"`
	TenantId                             *string `json:"tenantId,omitempty"`
}

type HierarchySettingsUpdateOperationResponse

type HierarchySettingsUpdateOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *HierarchySettings
}

type ListCompleteResult

type ListCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []ManagementGroupInfo
}

type ListCustomPager added in v0.20240628.1153531

type ListCustomPager struct {
	NextLink *odata.Link `json:"@nextLink"`
}
func (p *ListCustomPager) NextPageLink() *odata.Link

type ListOperationOptions

type ListOperationOptions struct {
	CacheControl *string
}

func DefaultListOperationOptions

func DefaultListOperationOptions() ListOperationOptions

func (ListOperationOptions) ToHeaders

func (o ListOperationOptions) ToHeaders() *client.Headers

func (ListOperationOptions) ToOData

func (o ListOperationOptions) ToOData() *odata.Query

func (ListOperationOptions) ToQuery

type ListOperationResponse

type ListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]ManagementGroupInfo
}

type ManagementGroup

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

type ManagementGroupChildInfo

type ManagementGroupChildInfo struct {
	Children    *[]ManagementGroupChildInfo `json:"children,omitempty"`
	DisplayName *string                     `json:"displayName,omitempty"`
	Id          *string                     `json:"id,omitempty"`
	Name        *string                     `json:"name,omitempty"`
	Type        *ManagementGroupChildType   `json:"type,omitempty"`
}

type ManagementGroupChildType added in v0.20240320.1143605

type ManagementGroupChildType string
const (
	ManagementGroupChildTypeMicrosoftPointManagementManagementGroups ManagementGroupChildType = "Microsoft.Management/managementGroups"
	ManagementGroupChildTypeSubscriptions                            ManagementGroupChildType = "/subscriptions"
)

func (*ManagementGroupChildType) UnmarshalJSON added in v0.20240320.1143605

func (s *ManagementGroupChildType) UnmarshalJSON(bytes []byte) error

type ManagementGroupDetails

type ManagementGroupDetails struct {
	Parent      *ParentGroupInfo              `json:"parent,omitempty"`
	Path        *[]ManagementGroupPathElement `json:"path,omitempty"`
	UpdatedBy   *string                       `json:"updatedBy,omitempty"`
	UpdatedTime *string                       `json:"updatedTime,omitempty"`
	Version     *float64                      `json:"version,omitempty"`
}

func (*ManagementGroupDetails) GetUpdatedTimeAsTime

func (o *ManagementGroupDetails) GetUpdatedTimeAsTime() (*time.Time, error)

func (*ManagementGroupDetails) SetUpdatedTimeAsTime

func (o *ManagementGroupDetails) SetUpdatedTimeAsTime(input time.Time)

type ManagementGroupInfo

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

type ManagementGroupInfoOperationPredicate

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

func (ManagementGroupInfoOperationPredicate) Matches

type ManagementGroupInfoProperties

type ManagementGroupInfoProperties struct {
	DisplayName *string `json:"displayName,omitempty"`
	TenantId    *string `json:"tenantId,omitempty"`
}

type ManagementGroupPathElement

type ManagementGroupPathElement struct {
	DisplayName *string `json:"displayName,omitempty"`
	Name        *string `json:"name,omitempty"`
}

type ManagementGroupProperties

type ManagementGroupProperties struct {
	Children    *[]ManagementGroupChildInfo `json:"children,omitempty"`
	Details     *ManagementGroupDetails     `json:"details,omitempty"`
	DisplayName *string                     `json:"displayName,omitempty"`
	TenantId    *string                     `json:"tenantId,omitempty"`
}

type ManagementGroupsClient

type ManagementGroupsClient struct {
	Client *resourcemanager.Client
}

func NewManagementGroupsClientWithBaseURI

func NewManagementGroupsClientWithBaseURI(sdkApi sdkEnv.Api) (*ManagementGroupsClient, error)

func (ManagementGroupsClient) CreateOrUpdate

CreateOrUpdate ...

func (ManagementGroupsClient) CreateOrUpdateThenPoll

CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed

func (ManagementGroupsClient) Delete

Delete ...

func (ManagementGroupsClient) DeleteThenPoll

DeleteThenPoll performs Delete then polls until it's completed

func (ManagementGroupsClient) Get

Get ...

func (ManagementGroupsClient) GetDescendants

GetDescendants ...

func (ManagementGroupsClient) GetDescendantsComplete

GetDescendantsComplete retrieves all the results into a single object

func (ManagementGroupsClient) GetDescendantsCompleteMatchingPredicate

GetDescendantsCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (ManagementGroupsClient) HierarchySettingsCreateOrUpdate

HierarchySettingsCreateOrUpdate ...

func (ManagementGroupsClient) HierarchySettingsDelete

HierarchySettingsDelete ...

func (ManagementGroupsClient) HierarchySettingsGet

HierarchySettingsGet ...

func (ManagementGroupsClient) HierarchySettingsList

HierarchySettingsList ...

func (ManagementGroupsClient) HierarchySettingsUpdate

HierarchySettingsUpdate ...

func (ManagementGroupsClient) List

List ...

func (ManagementGroupsClient) ListComplete

ListComplete retrieves all the results into a single object

func (ManagementGroupsClient) ListCompleteMatchingPredicate

func (c ManagementGroupsClient) ListCompleteMatchingPredicate(ctx context.Context, options ListOperationOptions, predicate ManagementGroupInfoOperationPredicate) (result ListCompleteResult, err error)

ListCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (ManagementGroupsClient) SubscriptionsCreate added in v0.20240701.1082110

SubscriptionsCreate ...

func (ManagementGroupsClient) SubscriptionsDelete added in v0.20240701.1082110

SubscriptionsDelete ...

func (ManagementGroupsClient) SubscriptionsGetSubscription added in v0.20240701.1082110

SubscriptionsGetSubscription ...

func (ManagementGroupsClient) SubscriptionsGetSubscriptionsUnderManagementGroup added in v0.20240701.1082110

func (c ManagementGroupsClient) SubscriptionsGetSubscriptionsUnderManagementGroup(ctx context.Context, id commonids.ManagementGroupId) (result SubscriptionsGetSubscriptionsUnderManagementGroupOperationResponse, err error)

SubscriptionsGetSubscriptionsUnderManagementGroup ...

func (ManagementGroupsClient) SubscriptionsGetSubscriptionsUnderManagementGroupComplete added in v0.20240701.1082110

func (c ManagementGroupsClient) SubscriptionsGetSubscriptionsUnderManagementGroupComplete(ctx context.Context, id commonids.ManagementGroupId) (SubscriptionsGetSubscriptionsUnderManagementGroupCompleteResult, error)

SubscriptionsGetSubscriptionsUnderManagementGroupComplete retrieves all the results into a single object

func (ManagementGroupsClient) SubscriptionsGetSubscriptionsUnderManagementGroupCompleteMatchingPredicate added in v0.20240701.1082110

func (c ManagementGroupsClient) SubscriptionsGetSubscriptionsUnderManagementGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ManagementGroupId, predicate SubscriptionUnderManagementGroupOperationPredicate) (result SubscriptionsGetSubscriptionsUnderManagementGroupCompleteResult, err error)

SubscriptionsGetSubscriptionsUnderManagementGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (ManagementGroupsClient) Update

Update ...

type ParentGroupInfo

type ParentGroupInfo struct {
	DisplayName *string `json:"displayName,omitempty"`
	Id          *string `json:"id,omitempty"`
	Name        *string `json:"name,omitempty"`
}

type PatchManagementGroupRequest

type PatchManagementGroupRequest struct {
	DisplayName   *string `json:"displayName,omitempty"`
	ParentGroupId *string `json:"parentGroupId,omitempty"`
}

type SubscriptionId

type SubscriptionId struct {
	GroupId        string
	SubscriptionId string
}

SubscriptionId is a struct representing the Resource ID for a Subscription

func NewSubscriptionID

func NewSubscriptionID(groupId string, 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) FromParseResult

func (id *SubscriptionId) FromParseResult(input resourceids.ParseResult) error

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 SubscriptionUnderManagementGroup

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

type SubscriptionUnderManagementGroupOperationPredicate

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

func (SubscriptionUnderManagementGroupOperationPredicate) Matches

type SubscriptionUnderManagementGroupProperties

type SubscriptionUnderManagementGroupProperties struct {
	DisplayName *string                    `json:"displayName,omitempty"`
	Parent      *DescendantParentGroupInfo `json:"parent,omitempty"`
	State       *string                    `json:"state,omitempty"`
	Tenant      *string                    `json:"tenant,omitempty"`
}

type SubscriptionsCreateOperationOptions added in v0.20240701.1082110

type SubscriptionsCreateOperationOptions struct {
	CacheControl *string
}

func DefaultSubscriptionsCreateOperationOptions added in v0.20240701.1082110

func DefaultSubscriptionsCreateOperationOptions() SubscriptionsCreateOperationOptions

func (SubscriptionsCreateOperationOptions) ToHeaders added in v0.20240701.1082110

func (SubscriptionsCreateOperationOptions) ToOData added in v0.20240701.1082110

func (SubscriptionsCreateOperationOptions) ToQuery added in v0.20240701.1082110

type SubscriptionsCreateOperationResponse added in v0.20240701.1082110

type SubscriptionsCreateOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *SubscriptionUnderManagementGroup
}

type SubscriptionsDeleteOperationOptions added in v0.20240701.1082110

type SubscriptionsDeleteOperationOptions struct {
	CacheControl *string
}

func DefaultSubscriptionsDeleteOperationOptions added in v0.20240701.1082110

func DefaultSubscriptionsDeleteOperationOptions() SubscriptionsDeleteOperationOptions

func (SubscriptionsDeleteOperationOptions) ToHeaders added in v0.20240701.1082110

func (SubscriptionsDeleteOperationOptions) ToOData added in v0.20240701.1082110

func (SubscriptionsDeleteOperationOptions) ToQuery added in v0.20240701.1082110

type SubscriptionsDeleteOperationResponse added in v0.20240701.1082110

type SubscriptionsDeleteOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type SubscriptionsGetSubscriptionOperationOptions added in v0.20240701.1082110

type SubscriptionsGetSubscriptionOperationOptions struct {
	CacheControl *string
}

func DefaultSubscriptionsGetSubscriptionOperationOptions added in v0.20240701.1082110

func DefaultSubscriptionsGetSubscriptionOperationOptions() SubscriptionsGetSubscriptionOperationOptions

func (SubscriptionsGetSubscriptionOperationOptions) ToHeaders added in v0.20240701.1082110

func (SubscriptionsGetSubscriptionOperationOptions) ToOData added in v0.20240701.1082110

func (SubscriptionsGetSubscriptionOperationOptions) ToQuery added in v0.20240701.1082110

type SubscriptionsGetSubscriptionOperationResponse added in v0.20240701.1082110

type SubscriptionsGetSubscriptionOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *SubscriptionUnderManagementGroup
}

type SubscriptionsGetSubscriptionsUnderManagementGroupCompleteResult added in v0.20240701.1082110

type SubscriptionsGetSubscriptionsUnderManagementGroupCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []SubscriptionUnderManagementGroup
}

type SubscriptionsGetSubscriptionsUnderManagementGroupCustomPager added in v0.20240701.1082110

type SubscriptionsGetSubscriptionsUnderManagementGroupCustomPager struct {
	NextLink *odata.Link `json:"nextLink"`
}

type SubscriptionsGetSubscriptionsUnderManagementGroupOperationResponse added in v0.20240701.1082110

type SubscriptionsGetSubscriptionsUnderManagementGroupOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]SubscriptionUnderManagementGroup
}

type UpdateOperationOptions

type UpdateOperationOptions struct {
	CacheControl *string
}

func DefaultUpdateOperationOptions

func DefaultUpdateOperationOptions() UpdateOperationOptions

func (UpdateOperationOptions) ToHeaders

func (o UpdateOperationOptions) ToHeaders() *client.Headers

func (UpdateOperationOptions) ToOData

func (o UpdateOperationOptions) ToOData() *odata.Query

func (UpdateOperationOptions) ToQuery

type UpdateOperationResponse

type UpdateOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ManagementGroup
}

Jump to

Keyboard shortcuts

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