tableservice

package
v0.20230727.1090744 Latest Latest
Warning

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

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

README

github.com/hashicorp/go-azure-sdk/resource-manager/storage/2022-09-01/tableservice Documentation

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

Client Initialization

client := tableservice.NewTableServiceClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: TableServiceClient.TableCreate

ctx := context.TODO()
id := tableservice.NewTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue", "tableValue")

payload := tableservice.Table{
	// ...
}


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

Example Usage: TableServiceClient.TableDelete

ctx := context.TODO()
id := tableservice.NewTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue", "tableValue")

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

Example Usage: TableServiceClient.TableGet

ctx := context.TODO()
id := tableservice.NewTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue", "tableValue")

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

Example Usage: TableServiceClient.TableList

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

// alternatively `client.TableList(ctx, id)` can be used to do batched pagination
items, err := client.TableListComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: TableServiceClient.TableUpdate

ctx := context.TODO()
id := tableservice.NewTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue", "tableValue")

payload := tableservice.Table{
	// ...
}


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

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

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

func ValidateTableID

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

ValidateTableID checks that 'input' can be parsed as a Table ID

Types

type StorageAccountId

type StorageAccountId struct {
	SubscriptionId     string
	ResourceGroupName  string
	StorageAccountName string
}

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

func NewStorageAccountID

func NewStorageAccountID(subscriptionId string, resourceGroupName string, storageAccountName 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

type Table

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

type TableAccessPolicy

type TableAccessPolicy struct {
	ExpiryTime *string `json:"expiryTime,omitempty"`
	Permission string  `json:"permission"`
	StartTime  *string `json:"startTime,omitempty"`
}

func (*TableAccessPolicy) GetExpiryTimeAsTime

func (o *TableAccessPolicy) GetExpiryTimeAsTime() (*time.Time, error)

func (*TableAccessPolicy) GetStartTimeAsTime

func (o *TableAccessPolicy) GetStartTimeAsTime() (*time.Time, error)

func (*TableAccessPolicy) SetExpiryTimeAsTime

func (o *TableAccessPolicy) SetExpiryTimeAsTime(input time.Time)

func (*TableAccessPolicy) SetStartTimeAsTime

func (o *TableAccessPolicy) SetStartTimeAsTime(input time.Time)

type TableCreateOperationResponse

type TableCreateOperationResponse struct {
	HttpResponse *http.Response
	Model        *Table
}

type TableDeleteOperationResponse

type TableDeleteOperationResponse struct {
	HttpResponse *http.Response
}

type TableGetOperationResponse

type TableGetOperationResponse struct {
	HttpResponse *http.Response
	Model        *Table
}

type TableId

type TableId struct {
	SubscriptionId     string
	ResourceGroupName  string
	StorageAccountName string
	TableName          string
}

TableId is a struct representing the Resource ID for a Table

func NewTableID

func NewTableID(subscriptionId string, resourceGroupName string, storageAccountName string, tableName string) TableId

NewTableID returns a new TableId struct

func ParseTableID

func ParseTableID(input string) (*TableId, error)

ParseTableID parses 'input' into a TableId

func ParseTableIDInsensitively

func ParseTableIDInsensitively(input string) (*TableId, error)

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

func (TableId) ID

func (id TableId) ID() string

ID returns the formatted Table ID

func (TableId) Segments

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

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

func (TableId) String

func (id TableId) String() string

String returns a human-readable description of this Table ID

type TableListCompleteResult

type TableListCompleteResult struct {
	Items []Table
}

type TableListOperationResponse

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

func (TableListOperationResponse) HasMore

func (r TableListOperationResponse) HasMore() bool

func (TableListOperationResponse) LoadMore

type TableOperationPredicate

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

func (TableOperationPredicate) Matches

func (p TableOperationPredicate) Matches(input Table) bool

type TableProperties

type TableProperties struct {
	SignedIdentifiers *[]TableSignedIdentifier `json:"signedIdentifiers,omitempty"`
	TableName         *string                  `json:"tableName,omitempty"`
}

type TableServiceClient

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

func NewTableServiceClientWithBaseURI

func NewTableServiceClientWithBaseURI(endpoint string) TableServiceClient

func (TableServiceClient) TableCreate

func (c TableServiceClient) TableCreate(ctx context.Context, id TableId, input Table) (result TableCreateOperationResponse, err error)

TableCreate ...

func (TableServiceClient) TableDelete

func (c TableServiceClient) TableDelete(ctx context.Context, id TableId) (result TableDeleteOperationResponse, err error)

TableDelete ...

func (TableServiceClient) TableGet

func (c TableServiceClient) TableGet(ctx context.Context, id TableId) (result TableGetOperationResponse, err error)

TableGet ...

func (TableServiceClient) TableList

TableList ...

func (TableServiceClient) TableListComplete

TableListComplete retrieves all of the results into a single object

func (TableServiceClient) TableListCompleteMatchingPredicate

func (c TableServiceClient) TableListCompleteMatchingPredicate(ctx context.Context, id StorageAccountId, predicate TableOperationPredicate) (resp TableListCompleteResult, err error)

TableListCompleteMatchingPredicate retrieves all of the results and then applied the predicate

func (TableServiceClient) TableUpdate

func (c TableServiceClient) TableUpdate(ctx context.Context, id TableId, input Table) (result TableUpdateOperationResponse, err error)

TableUpdate ...

type TableSignedIdentifier

type TableSignedIdentifier struct {
	AccessPolicy *TableAccessPolicy `json:"accessPolicy,omitempty"`
	Id           string             `json:"id"`
}

type TableUpdateOperationResponse

type TableUpdateOperationResponse struct {
	HttpResponse *http.Response
	Model        *Table
}

Jump to

Keyboard shortcuts

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