attestationproviders

package
v0.20240206.1080438 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2024 License: MPL-2.0 Imports: 12 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/attestation/2021-06-01/attestationproviders Documentation

The attestationproviders SDK allows for interaction with the Azure Resource Manager Service attestation (API Version 2021-06-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-helpers/resourcemanager/commonids"
import "github.com/hashicorp/go-azure-sdk/resource-manager/attestation/2021-06-01/attestationproviders"

Client Initialization

client := attestationproviders.NewAttestationProvidersClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: AttestationProvidersClient.Create

ctx := context.TODO()
id := attestationproviders.NewAttestationProvidersID("12345678-1234-9876-4563-123456789012", "example-resource-group", "attestationProviderValue")

payload := attestationproviders.AttestationServiceCreationParams{
	// ...
}


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

Example Usage: AttestationProvidersClient.Delete

ctx := context.TODO()
id := attestationproviders.NewAttestationProvidersID("12345678-1234-9876-4563-123456789012", "example-resource-group", "attestationProviderValue")

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

Example Usage: AttestationProvidersClient.Get

ctx := context.TODO()
id := attestationproviders.NewAttestationProvidersID("12345678-1234-9876-4563-123456789012", "example-resource-group", "attestationProviderValue")

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: AttestationProvidersClient.GetDefaultByLocation

ctx := context.TODO()
id := attestationproviders.NewLocationID("12345678-1234-9876-4563-123456789012", "locationValue")

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

Example Usage: AttestationProvidersClient.List

ctx := context.TODO()
id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012")

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

Example Usage: AttestationProvidersClient.ListByResourceGroup

ctx := context.TODO()
id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group")

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

Example Usage: AttestationProvidersClient.ListDefault

ctx := context.TODO()
id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012")

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

Example Usage: AttestationProvidersClient.Update

ctx := context.TODO()
id := attestationproviders.NewAttestationProvidersID("12345678-1234-9876-4563-123456789012", "example-resource-group", "attestationProviderValue")

payload := attestationproviders.AttestationServicePatchParams{
	// ...
}


read, err := client.Update(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 PossibleValuesForAttestationServiceStatus

func PossibleValuesForAttestationServiceStatus() []string

func PossibleValuesForPrivateEndpointConnectionProvisioningState

func PossibleValuesForPrivateEndpointConnectionProvisioningState() []string

func PossibleValuesForPrivateEndpointServiceConnectionStatus

func PossibleValuesForPrivateEndpointServiceConnectionStatus() []string

func PossibleValuesForPublicNetworkAccessType

func PossibleValuesForPublicNetworkAccessType() []string

func PossibleValuesForTpmAttestationAuthenticationType

func PossibleValuesForTpmAttestationAuthenticationType() []string

func ValidateAttestationProvidersID

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

ValidateAttestationProvidersID checks that 'input' can be parsed as a Attestation Providers ID

func ValidateLocationID

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

ValidateLocationID checks that 'input' can be parsed as a Location ID

Types

type AttestationProviderListResult

type AttestationProviderListResult struct {
	SystemData *systemdata.SystemData  `json:"systemData,omitempty"`
	Value      *[]AttestationProviders `json:"value,omitempty"`
}

type AttestationProviders

type AttestationProviders struct {
	Id         *string                `json:"id,omitempty"`
	Location   string                 `json:"location"`
	Name       *string                `json:"name,omitempty"`
	Properties *StatusResult          `json:"properties,omitempty"`
	SystemData *systemdata.SystemData `json:"systemData,omitempty"`
	Tags       *map[string]string     `json:"tags,omitempty"`
	Type       *string                `json:"type,omitempty"`
}

type AttestationProvidersClient

type AttestationProvidersClient struct {
	Client *resourcemanager.Client
}

func NewAttestationProvidersClientWithBaseURI

func NewAttestationProvidersClientWithBaseURI(sdkApi sdkEnv.Api) (*AttestationProvidersClient, error)

func (AttestationProvidersClient) Create

Create ...

func (AttestationProvidersClient) Delete

Delete ...

func (AttestationProvidersClient) Get

Get ...

func (AttestationProvidersClient) GetDefaultByLocation

GetDefaultByLocation ...

func (AttestationProvidersClient) List

List ...

func (AttestationProvidersClient) ListByResourceGroup

ListByResourceGroup ...

func (AttestationProvidersClient) ListDefault

ListDefault ...

func (AttestationProvidersClient) Update

Update ...

type AttestationProvidersId

type AttestationProvidersId struct {
	SubscriptionId          string
	ResourceGroupName       string
	AttestationProviderName string
}

AttestationProvidersId is a struct representing the Resource ID for a Attestation Providers

func NewAttestationProvidersID

func NewAttestationProvidersID(subscriptionId string, resourceGroupName string, attestationProviderName string) AttestationProvidersId

NewAttestationProvidersID returns a new AttestationProvidersId struct

func ParseAttestationProvidersID

func ParseAttestationProvidersID(input string) (*AttestationProvidersId, error)

ParseAttestationProvidersID parses 'input' into a AttestationProvidersId

func ParseAttestationProvidersIDInsensitively

func ParseAttestationProvidersIDInsensitively(input string) (*AttestationProvidersId, error)

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

func (*AttestationProvidersId) FromParseResult

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

func (AttestationProvidersId) ID

ID returns the formatted Attestation Providers ID

func (AttestationProvidersId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Attestation Providers ID

func (AttestationProvidersId) String

func (id AttestationProvidersId) String() string

String returns a human-readable description of this Attestation Providers ID

type AttestationServiceCreationParams

type AttestationServiceCreationParams struct {
	Location   string                                   `json:"location"`
	Properties AttestationServiceCreationSpecificParams `json:"properties"`
	Tags       *map[string]string                       `json:"tags,omitempty"`
}

type AttestationServiceCreationSpecificParams

type AttestationServiceCreationSpecificParams struct {
	PolicySigningCertificates    *JsonWebKeySet                    `json:"policySigningCertificates,omitempty"`
	PublicNetworkAccess          *PublicNetworkAccessType          `json:"publicNetworkAccess,omitempty"`
	TpmAttestationAuthentication *TpmAttestationAuthenticationType `json:"tpmAttestationAuthentication,omitempty"`
}

type AttestationServicePatchParams

type AttestationServicePatchParams struct {
	Properties *AttestationServicePatchSpecificParams `json:"properties,omitempty"`
	Tags       *map[string]string                     `json:"tags,omitempty"`
}

type AttestationServicePatchSpecificParams

type AttestationServicePatchSpecificParams struct {
	PublicNetworkAccess          *PublicNetworkAccessType          `json:"publicNetworkAccess,omitempty"`
	TpmAttestationAuthentication *TpmAttestationAuthenticationType `json:"tpmAttestationAuthentication,omitempty"`
}

type AttestationServiceStatus

type AttestationServiceStatus string
const (
	AttestationServiceStatusError    AttestationServiceStatus = "Error"
	AttestationServiceStatusNotReady AttestationServiceStatus = "NotReady"
	AttestationServiceStatusReady    AttestationServiceStatus = "Ready"
)

func (*AttestationServiceStatus) UnmarshalJSON

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

type CreateOperationResponse

type CreateOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *AttestationProviders
}

type DeleteOperationResponse

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

type GetDefaultByLocationOperationResponse

type GetDefaultByLocationOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *AttestationProviders
}

type GetOperationResponse

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

type JsonWebKey

type JsonWebKey struct {
	Alg *string   `json:"alg,omitempty"`
	Crv *string   `json:"crv,omitempty"`
	D   *string   `json:"d,omitempty"`
	Dp  *string   `json:"dp,omitempty"`
	Dq  *string   `json:"dq,omitempty"`
	E   *string   `json:"e,omitempty"`
	K   *string   `json:"k,omitempty"`
	Kid *string   `json:"kid,omitempty"`
	Kty string    `json:"kty"`
	N   *string   `json:"n,omitempty"`
	P   *string   `json:"p,omitempty"`
	Q   *string   `json:"q,omitempty"`
	Qi  *string   `json:"qi,omitempty"`
	Use *string   `json:"use,omitempty"`
	X   *string   `json:"x,omitempty"`
	X5c *[]string `json:"x5c,omitempty"`
	Y   *string   `json:"y,omitempty"`
}

type JsonWebKeySet

type JsonWebKeySet struct {
	Keys *[]JsonWebKey `json:"keys,omitempty"`
}

type ListByResourceGroupOperationResponse

type ListByResourceGroupOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *AttestationProviderListResult
}

type ListDefaultOperationResponse

type ListDefaultOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *AttestationProviderListResult
}

type ListOperationResponse

type ListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *AttestationProviderListResult
}

type LocationId

type LocationId struct {
	SubscriptionId string
	LocationName   string
}

LocationId is a struct representing the Resource ID for a Location

func NewLocationID

func NewLocationID(subscriptionId string, locationName string) LocationId

NewLocationID returns a new LocationId struct

func ParseLocationID

func ParseLocationID(input string) (*LocationId, error)

ParseLocationID parses 'input' into a LocationId

func ParseLocationIDInsensitively

func ParseLocationIDInsensitively(input string) (*LocationId, error)

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

func (*LocationId) FromParseResult

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

func (LocationId) ID

func (id LocationId) ID() string

ID returns the formatted Location ID

func (LocationId) Segments

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

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

func (LocationId) String

func (id LocationId) String() string

String returns a human-readable description of this Location ID

type PrivateEndpoint

type PrivateEndpoint struct {
	Id *string `json:"id,omitempty"`
}

type PrivateEndpointConnection

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

type PrivateEndpointConnectionProperties

type PrivateEndpointConnectionProperties struct {
	PrivateEndpoint                   *PrivateEndpoint                            `json:"privateEndpoint,omitempty"`
	PrivateLinkServiceConnectionState PrivateLinkServiceConnectionState           `json:"privateLinkServiceConnectionState"`
	ProvisioningState                 *PrivateEndpointConnectionProvisioningState `json:"provisioningState,omitempty"`
}

type PrivateEndpointConnectionProvisioningState

type PrivateEndpointConnectionProvisioningState string
const (
	PrivateEndpointConnectionProvisioningStateCreating  PrivateEndpointConnectionProvisioningState = "Creating"
	PrivateEndpointConnectionProvisioningStateDeleting  PrivateEndpointConnectionProvisioningState = "Deleting"
	PrivateEndpointConnectionProvisioningStateFailed    PrivateEndpointConnectionProvisioningState = "Failed"
	PrivateEndpointConnectionProvisioningStateSucceeded PrivateEndpointConnectionProvisioningState = "Succeeded"
)

func (*PrivateEndpointConnectionProvisioningState) UnmarshalJSON

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

type PrivateEndpointServiceConnectionStatus

type PrivateEndpointServiceConnectionStatus string
const (
	PrivateEndpointServiceConnectionStatusApproved PrivateEndpointServiceConnectionStatus = "Approved"
	PrivateEndpointServiceConnectionStatusPending  PrivateEndpointServiceConnectionStatus = "Pending"
	PrivateEndpointServiceConnectionStatusRejected PrivateEndpointServiceConnectionStatus = "Rejected"
)

func (*PrivateEndpointServiceConnectionStatus) UnmarshalJSON

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

type PrivateLinkServiceConnectionState

type PrivateLinkServiceConnectionState struct {
	ActionsRequired *string                                 `json:"actionsRequired,omitempty"`
	Description     *string                                 `json:"description,omitempty"`
	Status          *PrivateEndpointServiceConnectionStatus `json:"status,omitempty"`
}

type PublicNetworkAccessType

type PublicNetworkAccessType string
const (
	PublicNetworkAccessTypeDisabled PublicNetworkAccessType = "Disabled"
	PublicNetworkAccessTypeEnabled  PublicNetworkAccessType = "Enabled"
)

func (*PublicNetworkAccessType) UnmarshalJSON

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

type StatusResult

type StatusResult struct {
	AttestUri                    *string                           `json:"attestUri,omitempty"`
	PrivateEndpointConnections   *[]PrivateEndpointConnection      `json:"privateEndpointConnections,omitempty"`
	PublicNetworkAccess          *PublicNetworkAccessType          `json:"publicNetworkAccess,omitempty"`
	Status                       *AttestationServiceStatus         `json:"status,omitempty"`
	TpmAttestationAuthentication *TpmAttestationAuthenticationType `json:"tpmAttestationAuthentication,omitempty"`
	TrustModel                   *string                           `json:"trustModel,omitempty"`
}

type TpmAttestationAuthenticationType

type TpmAttestationAuthenticationType string
const (
	TpmAttestationAuthenticationTypeDisabled TpmAttestationAuthenticationType = "Disabled"
	TpmAttestationAuthenticationTypeEnabled  TpmAttestationAuthenticationType = "Enabled"
)

func (*TpmAttestationAuthenticationType) UnmarshalJSON

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

type UpdateOperationResponse

type UpdateOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *AttestationProviders
}

Jump to

Keyboard shortcuts

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