certificateobjectglobalrulestack

package
v0.20231109.1094450 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2023 License: MPL-2.0 Imports: 12 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/certificateobjectglobalrulestack Documentation

The certificateobjectglobalrulestack SDK allows for interaction with the Azure Resource Manager Service paloaltonetworks (API Version 2023-09-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/paloaltonetworks/2023-09-01/certificateobjectglobalrulestack"

Client Initialization

client := certificateobjectglobalrulestack.NewCertificateObjectGlobalRulestackClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: CertificateObjectGlobalRulestackClient.CreateOrUpdate

ctx := context.TODO()
id := certificateobjectglobalrulestack.NewCertificateID("globalRulestackValue", "certificateValue")

payload := certificateobjectglobalrulestack.CertificateObjectGlobalRulestackResource{
	// ...
}


if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Example Usage: CertificateObjectGlobalRulestackClient.Delete

ctx := context.TODO()
id := certificateobjectglobalrulestack.NewCertificateID("globalRulestackValue", "certificateValue")

if err := client.DeleteThenPoll(ctx, id); err != nil {
	// handle the error
}

Example Usage: CertificateObjectGlobalRulestackClient.Get

ctx := context.TODO()
id := certificateobjectglobalrulestack.NewCertificateID("globalRulestackValue", "certificateValue")

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: CertificateObjectGlobalRulestackClient.List

ctx := context.TODO()
id := certificateobjectglobalrulestack.NewGlobalRulestackID("globalRulestackValue")

// alternatively `client.List(ctx, id)` can be used to do batched pagination
items, err := client.ListComplete(ctx, id)
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 PossibleValuesForBooleanEnum

func PossibleValuesForBooleanEnum() []string

func PossibleValuesForProvisioningState

func PossibleValuesForProvisioningState() []string

func ValidateCertificateID

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

ValidateCertificateID checks that 'input' can be parsed as a Certificate ID

func ValidateGlobalRulestackID

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

ValidateGlobalRulestackID checks that 'input' can be parsed as a Global Rulestack ID

Types

type BooleanEnum

type BooleanEnum string
const (
	BooleanEnumFALSE BooleanEnum = "FALSE"
	BooleanEnumTRUE  BooleanEnum = "TRUE"
)

func (*BooleanEnum) UnmarshalJSON

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

type CertificateId

type CertificateId struct {
	GlobalRulestackName string
	CertificateName     string
}

CertificateId is a struct representing the Resource ID for a Certificate

func NewCertificateID

func NewCertificateID(globalRulestackName string, certificateName string) CertificateId

NewCertificateID returns a new CertificateId struct

func ParseCertificateID

func ParseCertificateID(input string) (*CertificateId, error)

ParseCertificateID parses 'input' into a CertificateId

func ParseCertificateIDInsensitively

func ParseCertificateIDInsensitively(input string) (*CertificateId, error)

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

func (CertificateId) ID

func (id CertificateId) ID() string

ID returns the formatted Certificate ID

func (CertificateId) Segments

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

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

func (CertificateId) String

func (id CertificateId) String() string

String returns a human-readable description of this Certificate ID

type CertificateObject

type CertificateObject struct {
	AuditComment                *string            `json:"auditComment,omitempty"`
	CertificateSelfSigned       BooleanEnum        `json:"certificateSelfSigned"`
	CertificateSignerResourceId *string            `json:"certificateSignerResourceId,omitempty"`
	Description                 *string            `json:"description,omitempty"`
	Etag                        *string            `json:"etag,omitempty"`
	ProvisioningState           *ProvisioningState `json:"provisioningState,omitempty"`
}

type CertificateObjectGlobalRulestackClient

type CertificateObjectGlobalRulestackClient struct {
	Client *resourcemanager.Client
}

func NewCertificateObjectGlobalRulestackClientWithBaseURI

func NewCertificateObjectGlobalRulestackClientWithBaseURI(sdkApi sdkEnv.Api) (*CertificateObjectGlobalRulestackClient, error)

func (CertificateObjectGlobalRulestackClient) CreateOrUpdate

CreateOrUpdate ...

func (CertificateObjectGlobalRulestackClient) CreateOrUpdateThenPoll

CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed

func (CertificateObjectGlobalRulestackClient) Delete

Delete ...

func (CertificateObjectGlobalRulestackClient) DeleteThenPoll

DeleteThenPoll performs Delete then polls until it's completed

func (CertificateObjectGlobalRulestackClient) Get

Get ...

func (CertificateObjectGlobalRulestackClient) List

List ...

func (CertificateObjectGlobalRulestackClient) ListComplete

ListComplete retrieves all the results into a single object

func (CertificateObjectGlobalRulestackClient) ListCompleteMatchingPredicate

ListCompleteMatchingPredicate retrieves all the results and then applies the predicate

type CertificateObjectGlobalRulestackResource

type CertificateObjectGlobalRulestackResource struct {
	Id         *string                `json:"id,omitempty"`
	Name       *string                `json:"name,omitempty"`
	Properties CertificateObject      `json:"properties"`
	SystemData *systemdata.SystemData `json:"systemData,omitempty"`
	Type       *string                `json:"type,omitempty"`
}

type CertificateObjectGlobalRulestackResourceOperationPredicate

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

func (CertificateObjectGlobalRulestackResourceOperationPredicate) Matches

type CreateOrUpdateOperationResponse

type CreateOrUpdateOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
}

type DeleteOperationResponse

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

type GetOperationResponse

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

type GlobalRulestackId

type GlobalRulestackId struct {
	GlobalRulestackName string
}

GlobalRulestackId is a struct representing the Resource ID for a Global Rulestack

func NewGlobalRulestackID

func NewGlobalRulestackID(globalRulestackName string) GlobalRulestackId

NewGlobalRulestackID returns a new GlobalRulestackId struct

func ParseGlobalRulestackID

func ParseGlobalRulestackID(input string) (*GlobalRulestackId, error)

ParseGlobalRulestackID parses 'input' into a GlobalRulestackId

func ParseGlobalRulestackIDInsensitively

func ParseGlobalRulestackIDInsensitively(input string) (*GlobalRulestackId, error)

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

func (GlobalRulestackId) ID

func (id GlobalRulestackId) ID() string

ID returns the formatted Global Rulestack ID

func (GlobalRulestackId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Global Rulestack ID

func (GlobalRulestackId) String

func (id GlobalRulestackId) String() string

String returns a human-readable description of this Global Rulestack ID

type ListCompleteResult

type ListCompleteResult struct {
	Items []CertificateObjectGlobalRulestackResource
}

type ListOperationResponse

type ListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]CertificateObjectGlobalRulestackResource
}

type ProvisioningState

type ProvisioningState string
const (
	ProvisioningStateAccepted     ProvisioningState = "Accepted"
	ProvisioningStateCanceled     ProvisioningState = "Canceled"
	ProvisioningStateCreating     ProvisioningState = "Creating"
	ProvisioningStateDeleted      ProvisioningState = "Deleted"
	ProvisioningStateDeleting     ProvisioningState = "Deleting"
	ProvisioningStateFailed       ProvisioningState = "Failed"
	ProvisioningStateNotSpecified ProvisioningState = "NotSpecified"
	ProvisioningStateSucceeded    ProvisioningState = "Succeeded"
	ProvisioningStateUpdating     ProvisioningState = "Updating"
)

func (*ProvisioningState) UnmarshalJSON

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