gatewaycertificateauthority

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/2022-08-01/gatewaycertificateauthority Documentation

The gatewaycertificateauthority SDK allows for interaction with the Azure Resource Manager Service apimanagement (API Version 2022-08-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/2022-08-01/gatewaycertificateauthority"

Client Initialization

client := gatewaycertificateauthority.NewGatewayCertificateAuthorityClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: GatewayCertificateAuthorityClient.CreateOrUpdate

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

payload := gatewaycertificateauthority.GatewayCertificateAuthorityContract{
	// ...
}


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

Example Usage: GatewayCertificateAuthorityClient.Delete

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

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

Example Usage: GatewayCertificateAuthorityClient.Get

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

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: GatewayCertificateAuthorityClient.GetEntityTag

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

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: GatewayCertificateAuthorityClient.ListByService

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

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

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

ValidateCertificateAuthorityID checks that 'input' can be parsed as a Certificate Authority ID

func ValidateGatewayID

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

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

Types

type CertificateAuthorityId

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

CertificateAuthorityId is a struct representing the Resource ID for a Certificate Authority

func NewCertificateAuthorityID

func NewCertificateAuthorityID(subscriptionId string, resourceGroupName string, serviceName string, gatewayId string, certificateId string) CertificateAuthorityId

NewCertificateAuthorityID returns a new CertificateAuthorityId struct

func ParseCertificateAuthorityID

func ParseCertificateAuthorityID(input string) (*CertificateAuthorityId, error)

ParseCertificateAuthorityID parses 'input' into a CertificateAuthorityId

func ParseCertificateAuthorityIDInsensitively

func ParseCertificateAuthorityIDInsensitively(input string) (*CertificateAuthorityId, error)

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

func (*CertificateAuthorityId) FromParseResult

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

func (CertificateAuthorityId) ID

ID returns the formatted Certificate Authority ID

func (CertificateAuthorityId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Certificate Authority ID

func (CertificateAuthorityId) String

func (id CertificateAuthorityId) String() string

String returns a human-readable description of this Certificate Authority ID

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        *GatewayCertificateAuthorityContract
}

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 GatewayCertificateAuthorityClient

type GatewayCertificateAuthorityClient struct {
	Client *resourcemanager.Client
}

func NewGatewayCertificateAuthorityClientWithBaseURI

func NewGatewayCertificateAuthorityClientWithBaseURI(sdkApi sdkEnv.Api) (*GatewayCertificateAuthorityClient, error)

func (GatewayCertificateAuthorityClient) CreateOrUpdate

CreateOrUpdate ...

func (GatewayCertificateAuthorityClient) Delete

Delete ...

func (GatewayCertificateAuthorityClient) Get

Get ...

func (GatewayCertificateAuthorityClient) GetEntityTag

GetEntityTag ...

func (GatewayCertificateAuthorityClient) ListByService

ListByService ...

func (GatewayCertificateAuthorityClient) ListByServiceComplete

ListByServiceComplete retrieves all the results into a single object

func (GatewayCertificateAuthorityClient) ListByServiceCompleteMatchingPredicate

ListByServiceCompleteMatchingPredicate retrieves all the results and then applies the predicate

type GatewayCertificateAuthorityContract

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

type GatewayCertificateAuthorityContractOperationPredicate

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

func (GatewayCertificateAuthorityContractOperationPredicate) Matches

type GatewayCertificateAuthorityContractProperties

type GatewayCertificateAuthorityContractProperties struct {
	IsTrusted *bool `json:"isTrusted,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        *GatewayCertificateAuthorityContract
}

type ListByServiceCompleteResult

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

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        *[]GatewayCertificateAuthorityContract
}

Jump to

Keyboard shortcuts

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