tableservice

package
v0.20231117.1130141 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2023 License: MPL-2.0 Imports: 12 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 ValidateTableID

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

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

Types

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
	OData        *odata.OData
	Model        *Table
}

type TableDeleteOperationResponse

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

type TableGetOperationResponse

type TableGetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	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
	OData        *odata.OData
	Model        *[]Table
}

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 *resourcemanager.Client
}

func NewTableServiceClientWithBaseURI

func NewTableServiceClientWithBaseURI(sdkApi sdkEnv.Api) (*TableServiceClient, error)

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

func (TableServiceClient) TableListCompleteMatchingPredicate

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

TableListCompleteMatchingPredicate retrieves all the results and then applies 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
	OData        *odata.OData
	Model        *Table
}

Jump to

Keyboard shortcuts

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