gatewaycertificateauthority

package
v0.20230123.1111713 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2023 License: MPL-2.0 Imports: 8 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2021-08-01/gatewaycertificateauthority Documentation

The gatewaycertificateauthority SDK allows for interaction with the Azure Resource Manager Service apimanagement (API Version 2021-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/2021-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 added in v0.20220907.1111434

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 added in v0.20220907.1111434

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 added in v0.20220907.1111434

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

NewCertificateAuthorityID returns a new CertificateAuthorityId struct

func ParseCertificateAuthorityID added in v0.20220907.1111434

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

ParseCertificateAuthorityID parses 'input' into a CertificateAuthorityId

func ParseCertificateAuthorityIDInsensitively added in v0.20220907.1111434

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) ID added in v0.20220907.1111434

ID returns the formatted Certificate Authority ID

func (CertificateAuthorityId) Segments added in v0.20220907.1111434

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

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

func (CertificateAuthorityId) String added in v0.20220907.1111434

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

type CreateOrUpdateOperationResponse

type CreateOrUpdateOperationResponse struct {
	HttpResponse *http.Response
	Model        *GatewayCertificateAuthorityContract
}

type DeleteOperationOptions

type DeleteOperationOptions struct {
	IfMatch *string
}

func DefaultDeleteOperationOptions

func DefaultDeleteOperationOptions() DeleteOperationOptions

type DeleteOperationResponse

type DeleteOperationResponse struct {
	HttpResponse *http.Response
}

type GatewayCertificateAuthorityClient

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

func NewGatewayCertificateAuthorityClientWithBaseURI

func NewGatewayCertificateAuthorityClientWithBaseURI(endpoint string) GatewayCertificateAuthorityClient

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 of the results into a single object

func (GatewayCertificateAuthorityClient) ListByServiceCompleteMatchingPredicate

ListByServiceCompleteMatchingPredicate retrieves all of the results and then applied 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) 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
}

type GetOperationResponse

type GetOperationResponse struct {
	HttpResponse *http.Response
	Model        *GatewayCertificateAuthorityContract
}

type ListByServiceCompleteResult

type ListByServiceCompleteResult struct {
	Items []GatewayCertificateAuthorityContract
}

type ListByServiceOperationOptions

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

func DefaultListByServiceOperationOptions

func DefaultListByServiceOperationOptions() ListByServiceOperationOptions

type ListByServiceOperationResponse

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

func (ListByServiceOperationResponse) HasMore

func (ListByServiceOperationResponse) LoadMore

Jump to

Keyboard shortcuts

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