gatewaylistdebugcredentials

package
v0.20241126.1723 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: MPL-2.0 Imports: 11 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewaylistdebugcredentials Documentation

The gatewaylistdebugcredentials SDK allows for interaction with Azure Resource Manager apimanagement (API Version 2024-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-sdk/resource-manager/apimanagement/2024-05-01/gatewaylistdebugcredentials"

Client Initialization

client := gatewaylistdebugcredentials.NewGatewayListDebugCredentialsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: GatewayListDebugCredentialsClient.GatewayListDebugCredentials

ctx := context.TODO()
id := gatewaylistdebugcredentials.NewServiceGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "gatewayId")

payload := gatewaylistdebugcredentials.GatewayListDebugCredentialsContract{
	// ...
}


read, err := client.GatewayListDebugCredentials(ctx, id, payload)
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 PossibleValuesForGatewayListDebugCredentialsContractPurpose

func PossibleValuesForGatewayListDebugCredentialsContractPurpose() []string

func ValidateServiceGatewayID

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

ValidateServiceGatewayID checks that 'input' can be parsed as a Service Gateway ID

Types

type GatewayDebugCredentialsContract

type GatewayDebugCredentialsContract struct {
	Token *string `json:"token,omitempty"`
}

type GatewayListDebugCredentialsClient

type GatewayListDebugCredentialsClient struct {
	Client *resourcemanager.Client
}

func NewGatewayListDebugCredentialsClientWithBaseURI

func NewGatewayListDebugCredentialsClientWithBaseURI(sdkApi sdkEnv.Api) (*GatewayListDebugCredentialsClient, error)

func (GatewayListDebugCredentialsClient) GatewayListDebugCredentials

GatewayListDebugCredentials ...

type GatewayListDebugCredentialsContract

type GatewayListDebugCredentialsContract struct {
	ApiId                  string                                       `json:"apiId"`
	CredentialsExpireAfter *string                                      `json:"credentialsExpireAfter,omitempty"`
	Purposes               []GatewayListDebugCredentialsContractPurpose `json:"purposes"`
}

type GatewayListDebugCredentialsContractPurpose

type GatewayListDebugCredentialsContractPurpose string
const (
	GatewayListDebugCredentialsContractPurposeTracing GatewayListDebugCredentialsContractPurpose = "tracing"
)

func (*GatewayListDebugCredentialsContractPurpose) UnmarshalJSON

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

type GatewayListDebugCredentialsOperationResponse

type GatewayListDebugCredentialsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *GatewayDebugCredentialsContract
}

type ServiceGatewayId

type ServiceGatewayId struct {
	SubscriptionId    string
	ResourceGroupName string
	ServiceName       string
	GatewayId         string
}

ServiceGatewayId is a struct representing the Resource ID for a Service Gateway

func NewServiceGatewayID

func NewServiceGatewayID(subscriptionId string, resourceGroupName string, serviceName string, gatewayId string) ServiceGatewayId

NewServiceGatewayID returns a new ServiceGatewayId struct

func ParseServiceGatewayID

func ParseServiceGatewayID(input string) (*ServiceGatewayId, error)

ParseServiceGatewayID parses 'input' into a ServiceGatewayId

func ParseServiceGatewayIDInsensitively

func ParseServiceGatewayIDInsensitively(input string) (*ServiceGatewayId, error)

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

func (*ServiceGatewayId) FromParseResult

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

func (ServiceGatewayId) ID

func (id ServiceGatewayId) ID() string

ID returns the formatted Service Gateway ID

func (ServiceGatewayId) Segments

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

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

func (ServiceGatewayId) String

func (id ServiceGatewayId) String() string

String returns a human-readable description of this Service Gateway ID

Jump to

Keyboard shortcuts

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