encryptionscopes

package
v0.20220715.1104737 Latest Latest
Warning

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

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

README

github.com/hashicorp/go-azure-sdk/resource-manager/storage/2021-04-01/encryptionscopes Documentation

The encryptionscopes SDK allows for interaction with the Azure Resource Manager Service storage (API Version 2021-04-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/storage/2021-04-01/encryptionscopes"

Client Initialization

client := encryptionscopes.NewEncryptionScopesClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: EncryptionScopesClient.Get

ctx := context.TODO()
id := encryptionscopes.NewEncryptionScopeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue", "encryptionScopeValue")

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

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

// 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
}

Example Usage: EncryptionScopesClient.Patch

ctx := context.TODO()
id := encryptionscopes.NewEncryptionScopeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue", "encryptionScopeValue")

payload := encryptionscopes.EncryptionScope{
	// ...
}


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

Example Usage: EncryptionScopesClient.Put

ctx := context.TODO()
id := encryptionscopes.NewEncryptionScopeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue", "encryptionScopeValue")

payload := encryptionscopes.EncryptionScope{
	// ...
}


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

func PossibleValuesForEncryptionScopeSource() []string

func PossibleValuesForEncryptionScopeState

func PossibleValuesForEncryptionScopeState() []string

func ValidateEncryptionScopeID

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

ValidateEncryptionScopeID checks that 'input' can be parsed as a Encryption Scope ID

func ValidateStorageAccountID

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

ValidateStorageAccountID checks that 'input' can be parsed as a Storage Account ID

Types

type EncryptionScope

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

type EncryptionScopeId

type EncryptionScopeId struct {
	SubscriptionId      string
	ResourceGroupName   string
	AccountName         string
	EncryptionScopeName string
}

EncryptionScopeId is a struct representing the Resource ID for a Encryption Scope

func NewEncryptionScopeID

func NewEncryptionScopeID(subscriptionId string, resourceGroupName string, accountName string, encryptionScopeName string) EncryptionScopeId

NewEncryptionScopeID returns a new EncryptionScopeId struct

func ParseEncryptionScopeID

func ParseEncryptionScopeID(input string) (*EncryptionScopeId, error)

ParseEncryptionScopeID parses 'input' into a EncryptionScopeId

func ParseEncryptionScopeIDInsensitively

func ParseEncryptionScopeIDInsensitively(input string) (*EncryptionScopeId, error)

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

func (EncryptionScopeId) ID

func (id EncryptionScopeId) ID() string

ID returns the formatted Encryption Scope ID

func (EncryptionScopeId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Encryption Scope ID

func (EncryptionScopeId) String

func (id EncryptionScopeId) String() string

String returns a human-readable description of this Encryption Scope ID

type EncryptionScopeKeyVaultProperties

type EncryptionScopeKeyVaultProperties struct {
	CurrentVersionedKeyIdentifier *string `json:"currentVersionedKeyIdentifier,omitempty"`
	KeyUri                        *string `json:"keyUri,omitempty"`
	LastKeyRotationTimestamp      *string `json:"lastKeyRotationTimestamp,omitempty"`
}

func (*EncryptionScopeKeyVaultProperties) GetLastKeyRotationTimestampAsTime

func (o *EncryptionScopeKeyVaultProperties) GetLastKeyRotationTimestampAsTime() (*time.Time, error)

func (*EncryptionScopeKeyVaultProperties) SetLastKeyRotationTimestampAsTime

func (o *EncryptionScopeKeyVaultProperties) SetLastKeyRotationTimestampAsTime(input time.Time)

type EncryptionScopeOperationPredicate

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

func (EncryptionScopeOperationPredicate) Matches

type EncryptionScopeProperties

type EncryptionScopeProperties struct {
	CreationTime                    *string                            `json:"creationTime,omitempty"`
	KeyVaultProperties              *EncryptionScopeKeyVaultProperties `json:"keyVaultProperties,omitempty"`
	LastModifiedTime                *string                            `json:"lastModifiedTime,omitempty"`
	RequireInfrastructureEncryption *bool                              `json:"requireInfrastructureEncryption,omitempty"`
	Source                          *EncryptionScopeSource             `json:"source,omitempty"`
	State                           *EncryptionScopeState              `json:"state,omitempty"`
}

func (*EncryptionScopeProperties) GetCreationTimeAsTime

func (o *EncryptionScopeProperties) GetCreationTimeAsTime() (*time.Time, error)

func (*EncryptionScopeProperties) GetLastModifiedTimeAsTime

func (o *EncryptionScopeProperties) GetLastModifiedTimeAsTime() (*time.Time, error)

func (*EncryptionScopeProperties) SetCreationTimeAsTime

func (o *EncryptionScopeProperties) SetCreationTimeAsTime(input time.Time)

func (*EncryptionScopeProperties) SetLastModifiedTimeAsTime

func (o *EncryptionScopeProperties) SetLastModifiedTimeAsTime(input time.Time)

type EncryptionScopeSource

type EncryptionScopeSource string
const (
	EncryptionScopeSourceMicrosoftPointKeyVault EncryptionScopeSource = "Microsoft.KeyVault"
	EncryptionScopeSourceMicrosoftPointStorage  EncryptionScopeSource = "Microsoft.Storage"
)

type EncryptionScopeState

type EncryptionScopeState string
const (
	EncryptionScopeStateDisabled EncryptionScopeState = "Disabled"
	EncryptionScopeStateEnabled  EncryptionScopeState = "Enabled"
)

type EncryptionScopesClient

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

func NewEncryptionScopesClientWithBaseURI

func NewEncryptionScopesClientWithBaseURI(endpoint string) EncryptionScopesClient

func (EncryptionScopesClient) Get

Get ...

func (EncryptionScopesClient) List

List ...

func (EncryptionScopesClient) ListComplete

ListComplete retrieves all of the results into a single object

func (EncryptionScopesClient) ListCompleteMatchingPredicate

func (c EncryptionScopesClient) ListCompleteMatchingPredicate(ctx context.Context, id StorageAccountId, predicate EncryptionScopeOperationPredicate) (resp ListCompleteResult, err error)

ListCompleteMatchingPredicate retrieves all of the results and then applied the predicate

func (EncryptionScopesClient) Patch

Patch ...

func (EncryptionScopesClient) Put

Put ...

type GetOperationResponse

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

type ListCompleteResult

type ListCompleteResult struct {
	Items []EncryptionScope
}

type ListOperationResponse

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

func (ListOperationResponse) HasMore

func (r ListOperationResponse) HasMore() bool

func (ListOperationResponse) LoadMore

func (r ListOperationResponse) LoadMore(ctx context.Context) (resp ListOperationResponse, err error)

type PatchOperationResponse

type PatchOperationResponse struct {
	HttpResponse *http.Response
	Model        *EncryptionScope
}

type PutOperationResponse

type PutOperationResponse struct {
	HttpResponse *http.Response
	Model        *EncryptionScope
}

type StorageAccountId

type StorageAccountId struct {
	SubscriptionId    string
	ResourceGroupName string
	AccountName       string
}

StorageAccountId is a struct representing the Resource ID for a Storage Account

func NewStorageAccountID

func NewStorageAccountID(subscriptionId string, resourceGroupName string, accountName string) StorageAccountId

NewStorageAccountID returns a new StorageAccountId struct

func ParseStorageAccountID

func ParseStorageAccountID(input string) (*StorageAccountId, error)

ParseStorageAccountID parses 'input' into a StorageAccountId

func ParseStorageAccountIDInsensitively

func ParseStorageAccountIDInsensitively(input string) (*StorageAccountId, error)

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

func (StorageAccountId) ID

func (id StorageAccountId) ID() string

ID returns the formatted Storage Account ID

func (StorageAccountId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Storage Account ID

func (StorageAccountId) String

func (id StorageAccountId) String() string

String returns a human-readable description of this Storage Account ID

Jump to

Keyboard shortcuts

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