gatewayhostnameconfiguration

package
v0.20240731.1212841 Latest Latest
Warning

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

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

README

github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayhostnameconfiguration Documentation

The gatewayhostnameconfiguration SDK allows for interaction with the Azure Resource Manager Service apimanagement (API Version 2023-05-01-preview).

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/2023-05-01-preview/gatewayhostnameconfiguration"

Client Initialization

client := gatewayhostnameconfiguration.NewGatewayHostnameConfigurationClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: GatewayHostnameConfigurationClient.CreateOrUpdate

ctx := context.TODO()
id := gatewayhostnameconfiguration.NewHostnameConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "gatewayIdValue", "hcIdValue")

payload := gatewayhostnameconfiguration.GatewayHostnameConfigurationContract{
	// ...
}


read, err := client.CreateOrUpdate(ctx, id, payload, gatewayhostnameconfiguration.DefaultCreateOrUpdateOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: GatewayHostnameConfigurationClient.Delete

ctx := context.TODO()
id := gatewayhostnameconfiguration.NewHostnameConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "gatewayIdValue", "hcIdValue")

read, err := client.Delete(ctx, id, gatewayhostnameconfiguration.DefaultDeleteOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: GatewayHostnameConfigurationClient.Get

ctx := context.TODO()
id := gatewayhostnameconfiguration.NewHostnameConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "gatewayIdValue", "hcIdValue")

read, err := client.Get(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: GatewayHostnameConfigurationClient.GetEntityTag

ctx := context.TODO()
id := gatewayhostnameconfiguration.NewHostnameConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "gatewayIdValue", "hcIdValue")

read, err := client.GetEntityTag(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: GatewayHostnameConfigurationClient.ListByService

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

// alternatively `client.ListByService(ctx, id, gatewayhostnameconfiguration.DefaultListByServiceOperationOptions())` can be used to do batched pagination
items, err := client.ListByServiceComplete(ctx, id, gatewayhostnameconfiguration.DefaultListByServiceOperationOptions())
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 ValidateGatewayID

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

ValidateGatewayID checks that 'input' can be parsed as a Gateway ID

func ValidateHostnameConfigurationID

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

ValidateHostnameConfigurationID checks that 'input' can be parsed as a Hostname Configuration ID

Types

type CreateOrUpdateOperationOptions

type CreateOrUpdateOperationOptions struct {
	IfMatch *string
}

func DefaultCreateOrUpdateOperationOptions

func DefaultCreateOrUpdateOperationOptions() CreateOrUpdateOperationOptions

func (CreateOrUpdateOperationOptions) ToHeaders

func (CreateOrUpdateOperationOptions) ToOData

func (CreateOrUpdateOperationOptions) ToQuery

type CreateOrUpdateOperationResponse

type CreateOrUpdateOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *GatewayHostnameConfigurationContract
}

type DeleteOperationOptions

type DeleteOperationOptions struct {
	IfMatch *string
}

func DefaultDeleteOperationOptions

func DefaultDeleteOperationOptions() DeleteOperationOptions

func (DeleteOperationOptions) ToHeaders

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

func (DeleteOperationOptions) ToOData

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

func (DeleteOperationOptions) ToQuery

type DeleteOperationResponse

type DeleteOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type GatewayHostnameConfigurationClient

type GatewayHostnameConfigurationClient struct {
	Client *resourcemanager.Client
}

func NewGatewayHostnameConfigurationClientWithBaseURI

func NewGatewayHostnameConfigurationClientWithBaseURI(sdkApi sdkEnv.Api) (*GatewayHostnameConfigurationClient, error)

func (GatewayHostnameConfigurationClient) CreateOrUpdate

CreateOrUpdate ...

func (GatewayHostnameConfigurationClient) Delete

Delete ...

func (GatewayHostnameConfigurationClient) Get

Get ...

func (GatewayHostnameConfigurationClient) GetEntityTag

GetEntityTag ...

func (GatewayHostnameConfigurationClient) ListByService

ListByService ...

func (GatewayHostnameConfigurationClient) ListByServiceComplete

ListByServiceComplete retrieves all the results into a single object

func (GatewayHostnameConfigurationClient) ListByServiceCompleteMatchingPredicate

ListByServiceCompleteMatchingPredicate retrieves all the results and then applies the predicate

type GatewayHostnameConfigurationContract

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

type GatewayHostnameConfigurationContractOperationPredicate

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

func (GatewayHostnameConfigurationContractOperationPredicate) Matches

type GatewayHostnameConfigurationContractProperties

type GatewayHostnameConfigurationContractProperties struct {
	CertificateId              *string `json:"certificateId,omitempty"`
	HTTP2Enabled               *bool   `json:"http2Enabled,omitempty"`
	Hostname                   *string `json:"hostname,omitempty"`
	NegotiateClientCertificate *bool   `json:"negotiateClientCertificate,omitempty"`
	Tls10Enabled               *bool   `json:"tls10Enabled,omitempty"`
	Tls11Enabled               *bool   `json:"tls11Enabled,omitempty"`
}

type GatewayId

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

GatewayId is a struct representing the Resource ID for a Gateway

func NewGatewayID

func NewGatewayID(subscriptionId string, resourceGroupName string, serviceName string, gatewayId string) GatewayId

NewGatewayID returns a new GatewayId struct

func ParseGatewayID

func ParseGatewayID(input string) (*GatewayId, error)

ParseGatewayID parses 'input' into a GatewayId

func ParseGatewayIDInsensitively

func ParseGatewayIDInsensitively(input string) (*GatewayId, error)

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

func (*GatewayId) FromParseResult

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

func (GatewayId) ID

func (id GatewayId) ID() string

ID returns the formatted Gateway ID

func (GatewayId) Segments

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

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

func (GatewayId) String

func (id GatewayId) String() string

String returns a human-readable description of this Gateway ID

type GetEntityTagOperationResponse

type GetEntityTagOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type GetOperationResponse

type GetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *GatewayHostnameConfigurationContract
}

type HostnameConfigurationId

type HostnameConfigurationId struct {
	SubscriptionId    string
	ResourceGroupName string
	ServiceName       string
	GatewayId         string
	HcId              string
}

HostnameConfigurationId is a struct representing the Resource ID for a Hostname Configuration

func NewHostnameConfigurationID

func NewHostnameConfigurationID(subscriptionId string, resourceGroupName string, serviceName string, gatewayId string, hcId string) HostnameConfigurationId

NewHostnameConfigurationID returns a new HostnameConfigurationId struct

func ParseHostnameConfigurationID

func ParseHostnameConfigurationID(input string) (*HostnameConfigurationId, error)

ParseHostnameConfigurationID parses 'input' into a HostnameConfigurationId

func ParseHostnameConfigurationIDInsensitively

func ParseHostnameConfigurationIDInsensitively(input string) (*HostnameConfigurationId, error)

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

func (*HostnameConfigurationId) FromParseResult

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

func (HostnameConfigurationId) ID

ID returns the formatted Hostname Configuration ID

func (HostnameConfigurationId) Segments

Segments returns a slice of Resource ID Segments which comprise this Hostname Configuration ID

func (HostnameConfigurationId) String

func (id HostnameConfigurationId) String() string

String returns a human-readable description of this Hostname Configuration ID

type ListByServiceCompleteResult

type ListByServiceCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []GatewayHostnameConfigurationContract
}

type ListByServiceCustomPager added in v0.20240628.1153531

type ListByServiceCustomPager struct {
	NextLink *odata.Link `json:"nextLink"`
}
func (p *ListByServiceCustomPager) NextPageLink() *odata.Link

type ListByServiceOperationOptions

type ListByServiceOperationOptions struct {
	Filter *string
	Skip   *int64
	Top    *int64
}

func DefaultListByServiceOperationOptions

func DefaultListByServiceOperationOptions() ListByServiceOperationOptions

func (ListByServiceOperationOptions) ToHeaders

func (ListByServiceOperationOptions) ToOData

func (ListByServiceOperationOptions) ToQuery

type ListByServiceOperationResponse

type ListByServiceOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]GatewayHostnameConfigurationContract
}

Jump to

Keyboard shortcuts

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