d4apicollectionlist

package
v0.20240119.1092300 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2024 License: MPL-2.0 Imports: 9 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/security/2023-11-15/d4apicollectionlist Documentation

The d4apicollectionlist SDK allows for interaction with the Azure Resource Manager Service security (API Version 2023-11-15).

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/security/2023-11-15/d4apicollectionlist"

Client Initialization

client := d4apicollectionlist.NewD4APICollectionListClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: D4APICollectionListClient.APICollectionsListByAzureApiManagementService

ctx := context.TODO()
id := d4apicollectionlist.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue")

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

Example Usage: D4APICollectionListClient.APICollectionsListByResourceGroup

ctx := context.TODO()
id := d4apicollectionlist.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group")

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

Example Usage: D4APICollectionListClient.APICollectionsListBySubscription

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

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

func PossibleValuesForProvisioningState() []string

func ValidateServiceID

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

ValidateServiceID checks that 'input' can be parsed as a Service ID

Types

type APICollectionsListByAzureApiManagementServiceCompleteResult

type APICollectionsListByAzureApiManagementServiceCompleteResult struct {
	Items []ApiCollection
}

type APICollectionsListByAzureApiManagementServiceOperationResponse

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

func (APICollectionsListByAzureApiManagementServiceOperationResponse) HasMore

func (APICollectionsListByAzureApiManagementServiceOperationResponse) LoadMore

type APICollectionsListByResourceGroupCompleteResult

type APICollectionsListByResourceGroupCompleteResult struct {
	Items []ApiCollection
}

type APICollectionsListByResourceGroupOperationResponse

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

func (APICollectionsListByResourceGroupOperationResponse) HasMore

func (APICollectionsListByResourceGroupOperationResponse) LoadMore

type APICollectionsListBySubscriptionCompleteResult

type APICollectionsListBySubscriptionCompleteResult struct {
	Items []ApiCollection
}

type APICollectionsListBySubscriptionOperationResponse

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

func (APICollectionsListBySubscriptionOperationResponse) HasMore

func (APICollectionsListBySubscriptionOperationResponse) LoadMore

type ApiCollection

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

type ApiCollectionOperationPredicate

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

func (ApiCollectionOperationPredicate) Matches

type ApiCollectionProperties

type ApiCollectionProperties struct {
	BaseUrl                                      *string            `json:"baseUrl,omitempty"`
	DiscoveredVia                                *string            `json:"discoveredVia,omitempty"`
	DisplayName                                  *string            `json:"displayName,omitempty"`
	NumberOfApiEndpoints                         *int64             `json:"numberOfApiEndpoints,omitempty"`
	NumberOfApiEndpointsWithSensitiveDataExposed *int64             `json:"numberOfApiEndpointsWithSensitiveDataExposed,omitempty"`
	NumberOfExternalApiEndpoints                 *int64             `json:"numberOfExternalApiEndpoints,omitempty"`
	NumberOfInactiveApiEndpoints                 *int64             `json:"numberOfInactiveApiEndpoints,omitempty"`
	NumberOfUnauthenticatedApiEndpoints          *int64             `json:"numberOfUnauthenticatedApiEndpoints,omitempty"`
	ProvisioningState                            *ProvisioningState `json:"provisioningState,omitempty"`
	SensitivityLabel                             *string            `json:"sensitivityLabel,omitempty"`
}

type D4APICollectionListClient

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

func NewD4APICollectionListClientWithBaseURI

func NewD4APICollectionListClientWithBaseURI(endpoint string) D4APICollectionListClient

func (D4APICollectionListClient) APICollectionsListByAzureApiManagementService

func (c D4APICollectionListClient) APICollectionsListByAzureApiManagementService(ctx context.Context, id ServiceId) (resp APICollectionsListByAzureApiManagementServiceOperationResponse, err error)

APICollectionsListByAzureApiManagementService ...

func (D4APICollectionListClient) APICollectionsListByAzureApiManagementServiceComplete

func (c D4APICollectionListClient) APICollectionsListByAzureApiManagementServiceComplete(ctx context.Context, id ServiceId) (APICollectionsListByAzureApiManagementServiceCompleteResult, error)

APICollectionsListByAzureApiManagementServiceComplete retrieves all of the results into a single object

func (D4APICollectionListClient) APICollectionsListByAzureApiManagementServiceCompleteMatchingPredicate

func (c D4APICollectionListClient) APICollectionsListByAzureApiManagementServiceCompleteMatchingPredicate(ctx context.Context, id ServiceId, predicate ApiCollectionOperationPredicate) (resp APICollectionsListByAzureApiManagementServiceCompleteResult, err error)

APICollectionsListByAzureApiManagementServiceCompleteMatchingPredicate retrieves all of the results and then applied the predicate

func (D4APICollectionListClient) APICollectionsListByResourceGroup

APICollectionsListByResourceGroup ...

func (D4APICollectionListClient) APICollectionsListByResourceGroupComplete

APICollectionsListByResourceGroupComplete retrieves all of the results into a single object

func (D4APICollectionListClient) APICollectionsListByResourceGroupCompleteMatchingPredicate

func (c D4APICollectionListClient) APICollectionsListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate ApiCollectionOperationPredicate) (resp APICollectionsListByResourceGroupCompleteResult, err error)

APICollectionsListByResourceGroupCompleteMatchingPredicate retrieves all of the results and then applied the predicate

func (D4APICollectionListClient) APICollectionsListBySubscription

APICollectionsListBySubscription ...

func (D4APICollectionListClient) APICollectionsListBySubscriptionComplete

APICollectionsListBySubscriptionComplete retrieves all of the results into a single object

func (D4APICollectionListClient) APICollectionsListBySubscriptionCompleteMatchingPredicate

func (c D4APICollectionListClient) APICollectionsListBySubscriptionCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate ApiCollectionOperationPredicate) (resp APICollectionsListBySubscriptionCompleteResult, err error)

APICollectionsListBySubscriptionCompleteMatchingPredicate retrieves all of the results and then applied the predicate

type ProvisioningState

type ProvisioningState string
const (
	ProvisioningStateCanceled   ProvisioningState = "Canceled"
	ProvisioningStateFailed     ProvisioningState = "Failed"
	ProvisioningStateInProgress ProvisioningState = "InProgress"
	ProvisioningStateSucceeded  ProvisioningState = "Succeeded"
)

type ServiceId

type ServiceId struct {
	SubscriptionId    string
	ResourceGroupName string
	ServiceName       string
}

ServiceId is a struct representing the Resource ID for a Service

func NewServiceID

func NewServiceID(subscriptionId string, resourceGroupName string, serviceName string) ServiceId

NewServiceID returns a new ServiceId struct

func ParseServiceID

func ParseServiceID(input string) (*ServiceId, error)

ParseServiceID parses 'input' into a ServiceId

func ParseServiceIDInsensitively

func ParseServiceIDInsensitively(input string) (*ServiceId, error)

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

func (*ServiceId) FromParseResult added in v0.20231127.1171502

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

func (ServiceId) ID

func (id ServiceId) ID() string

ID returns the formatted Service ID

func (ServiceId) Segments

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

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

func (ServiceId) String

func (id ServiceId) String() string

String returns a human-readable description of this Service ID

Jump to

Keyboard shortcuts

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