eligiblechildresources

package
v0.20230707.1120450 Latest Latest
Warning

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

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

README

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

The eligiblechildresources 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/eligiblechildresources"

Client Initialization

client := eligiblechildresources.NewEligibleChildResourcesClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: EligibleChildResourcesClient.Get

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

// alternatively `client.Get(ctx, id, eligiblechildresources.DefaultGetOperationOptions())` can be used to do batched pagination
items, err := client.GetComplete(ctx, id, eligiblechildresources.DefaultGetOperationOptions())
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

This section is empty.

Types

type EligibleChildResource

type EligibleChildResource struct {
	Id   *string `json:"id,omitempty"`
	Name *string `json:"name,omitempty"`
	Type *string `json:"type,omitempty"`
}

type EligibleChildResourceOperationPredicate

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

func (EligibleChildResourceOperationPredicate) Matches

type EligibleChildResourcesClient

type EligibleChildResourcesClient struct {
	Client *resourcemanager.Client
}

func NewEligibleChildResourcesClientWithBaseURI

func NewEligibleChildResourcesClientWithBaseURI(api environments.Api) (*EligibleChildResourcesClient, error)

func (EligibleChildResourcesClient) Get

Get ...

func (EligibleChildResourcesClient) GetComplete

GetComplete retrieves all the results into a single object

func (EligibleChildResourcesClient) GetCompleteMatchingPredicate

GetCompleteMatchingPredicate retrieves all the results and then applies the predicate

type GetCompleteResult

type GetCompleteResult struct {
	Items []EligibleChildResource
}

type GetOperationOptions

type GetOperationOptions struct {
	Filter *string
}

func DefaultGetOperationOptions

func DefaultGetOperationOptions() GetOperationOptions

func (GetOperationOptions) ToHeaders added in v0.20230516.1215417

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

func (GetOperationOptions) ToOData added in v0.20230516.1215417

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

func (GetOperationOptions) ToQuery added in v0.20230516.1215417

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

type GetOperationResponse

type GetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]EligibleChildResource
}

Jump to

Keyboard shortcuts

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