d4apicollection

package
v0.20240321.1111417 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: MPL-2.0 Imports: 10 Imported by: 0

README

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

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

Client Initialization

client := d4apicollection.NewD4APICollectionClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: D4APICollectionClient.APICollectionsGetByAzureApiManagementService

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

read, err := client.APICollectionsGetByAzureApiManagementService(ctx, id)
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 PossibleValuesForProvisioningState

func PossibleValuesForProvisioningState() []string

func ValidateApiCollectionID

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

ValidateApiCollectionID checks that 'input' can be parsed as a Api Collection ID

Types

type APICollectionsGetByAzureApiManagementServiceOperationResponse

type APICollectionsGetByAzureApiManagementServiceOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ApiCollection
}

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 ApiCollectionId

type ApiCollectionId struct {
	SubscriptionId    string
	ResourceGroupName string
	ServiceName       string
	ApiId             string
}

ApiCollectionId is a struct representing the Resource ID for a Api Collection

func NewApiCollectionID

func NewApiCollectionID(subscriptionId string, resourceGroupName string, serviceName string, apiId string) ApiCollectionId

NewApiCollectionID returns a new ApiCollectionId struct

func ParseApiCollectionID

func ParseApiCollectionID(input string) (*ApiCollectionId, error)

ParseApiCollectionID parses 'input' into a ApiCollectionId

func ParseApiCollectionIDInsensitively

func ParseApiCollectionIDInsensitively(input string) (*ApiCollectionId, error)

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

func (*ApiCollectionId) FromParseResult

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

func (ApiCollectionId) ID

func (id ApiCollectionId) ID() string

ID returns the formatted Api Collection ID

func (ApiCollectionId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Api Collection ID

func (ApiCollectionId) String

func (id ApiCollectionId) String() string

String returns a human-readable description of this Api Collection ID

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 D4APICollectionClient

type D4APICollectionClient struct {
	Client *resourcemanager.Client
}

func NewD4APICollectionClientWithBaseURI

func NewD4APICollectionClientWithBaseURI(sdkApi sdkEnv.Api) (*D4APICollectionClient, error)

func (D4APICollectionClient) APICollectionsGetByAzureApiManagementService

func (c D4APICollectionClient) APICollectionsGetByAzureApiManagementService(ctx context.Context, id ApiCollectionId) (result APICollectionsGetByAzureApiManagementServiceOperationResponse, err error)

APICollectionsGetByAzureApiManagementService ...

type ProvisioningState

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

func (*ProvisioningState) UnmarshalJSON added in v0.20240228.1142829

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

Jump to

Keyboard shortcuts

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