entities

package
v0.20230918.1115907 Latest Latest
Warning

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

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

README

github.com/hashicorp/go-azure-sdk/resource-manager/managementgroups/2021-04-01/entities Documentation

The entities SDK allows for interaction with the Azure Resource Manager Service managementgroups (API Version 2021-04-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/managementgroups/2021-04-01/entities"

Client Initialization

client := entities.NewEntitiesClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: EntitiesClient.List

ctx := context.TODO()


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

func PossibleValuesForEntitySearchType() []string

func PossibleValuesForEntityViewParameterType

func PossibleValuesForEntityViewParameterType() []string

func PossibleValuesForPermissions

func PossibleValuesForPermissions() []string

Types

type EntitiesClient

type EntitiesClient struct {
	Client *resourcemanager.Client
}

func NewEntitiesClientWithBaseURI

func NewEntitiesClientWithBaseURI(sdkApi sdkEnv.Api) (*EntitiesClient, error)

func (EntitiesClient) List

List ...

func (EntitiesClient) ListComplete

ListComplete retrieves all the results into a single object

func (EntitiesClient) ListCompleteMatchingPredicate

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

ListCompleteMatchingPredicate retrieves all the results and then applies the predicate

type EntityInfo

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

type EntityInfoOperationPredicate

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

func (EntityInfoOperationPredicate) Matches

func (p EntityInfoOperationPredicate) Matches(input EntityInfo) bool

type EntityInfoProperties

type EntityInfoProperties struct {
	DisplayName            *string                `json:"displayName,omitempty"`
	InheritedPermissions   *Permissions           `json:"inheritedPermissions,omitempty"`
	NumberOfChildGroups    *int64                 `json:"numberOfChildGroups,omitempty"`
	NumberOfChildren       *int64                 `json:"numberOfChildren,omitempty"`
	NumberOfDescendants    *int64                 `json:"numberOfDescendants,omitempty"`
	Parent                 *EntityParentGroupInfo `json:"parent,omitempty"`
	ParentDisplayNameChain *[]string              `json:"parentDisplayNameChain,omitempty"`
	ParentNameChain        *[]string              `json:"parentNameChain,omitempty"`
	Permissions            *Permissions           `json:"permissions,omitempty"`
	TenantId               *string                `json:"tenantId,omitempty"`
}

type EntityParentGroupInfo

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

type EntitySearchType

type EntitySearchType string
const (
	EntitySearchTypeAllowedChildren             EntitySearchType = "AllowedChildren"
	EntitySearchTypeAllowedParents              EntitySearchType = "AllowedParents"
	EntitySearchTypeChildrenOnly                EntitySearchType = "ChildrenOnly"
	EntitySearchTypeParentAndFirstLevelChildren EntitySearchType = "ParentAndFirstLevelChildren"
	EntitySearchTypeParentOnly                  EntitySearchType = "ParentOnly"
)

func (*EntitySearchType) UnmarshalJSON added in v0.20230516.1215417

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

type EntityViewParameterType

type EntityViewParameterType string
const (
	EntityViewParameterTypeAudit             EntityViewParameterType = "Audit"
	EntityViewParameterTypeFullHierarchy     EntityViewParameterType = "FullHierarchy"
	EntityViewParameterTypeGroupsOnly        EntityViewParameterType = "GroupsOnly"
	EntityViewParameterTypeSubscriptionsOnly EntityViewParameterType = "SubscriptionsOnly"
)

func (*EntityViewParameterType) UnmarshalJSON added in v0.20230516.1215417

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

type ListCompleteResult

type ListCompleteResult struct {
	Items []EntityInfo
}

type ListOperationOptions

type ListOperationOptions struct {
	CacheControl *string
	Filter       *string
	GroupName    *string
	Search       *EntitySearchType
	Select       *string
	Skip         *int64
	Top          *int64
	View         *EntityViewParameterType
}

func DefaultListOperationOptions

func DefaultListOperationOptions() ListOperationOptions

func (ListOperationOptions) ToHeaders added in v0.20230516.1215417

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

func (ListOperationOptions) ToOData added in v0.20230516.1215417

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

func (ListOperationOptions) ToQuery added in v0.20230516.1215417

type ListOperationResponse

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

type Permissions

type Permissions string
const (
	PermissionsDelete   Permissions = "delete"
	PermissionsEdit     Permissions = "edit"
	PermissionsNoaccess Permissions = "noaccess"
	PermissionsView     Permissions = "view"
)

func (*Permissions) UnmarshalJSON added in v0.20230516.1215417

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

Jump to

Keyboard shortcuts

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