storagetables

package
v46.3.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package storagetables implements the Azure ARM Storagetables service API version 2019-02-02.

Index

Constants

View Source
const (
	// DefaultVersion is the default value for version
	DefaultVersion = "2019-02-02"
)

Variables

This section is empty.

Functions

func UserAgent

func UserAgent() string

UserAgent returns the UserAgent string to use when sending http.Requests.

func Version

func Version() string

Version returns the semantic version (see http://semver.org) of the client.

Types

type AccessPolicy

type AccessPolicy struct {
	// Start - The start datetime from which the policy is active.
	Start *date.Time `json:"Start,omitempty"`
	// Expiry - The datetime that the policy expires.
	Expiry *date.Time `json:"Expiry,omitempty"`
	// Permission - The permissions for the acl policy.
	Permission *string `json:"Permission,omitempty"`
}

AccessPolicy an Access policy.

type BaseClient

type BaseClient struct {
	autorest.Client
	URL     string
	Version string
}

BaseClient is the base client for Storagetables.

func New

func New(URL string) BaseClient

New creates an instance of the BaseClient client.

func NewWithoutDefaults

func NewWithoutDefaults(URL string, version string) BaseClient

NewWithoutDefaults creates an instance of the BaseClient client.

type CorsRule

type CorsRule struct {
	// AllowedOrigins - The origin domains that are permitted to make a request against the service via CORS. The origin domain is the domain from which the request originates. Note that the origin must be an exact case-sensitive match with the origin that the user age sends to the service. You can also use the wildcard character '*' to allow all origin domains to make requests via CORS.
	AllowedOrigins *string `json:"AllowedOrigins,omitempty"`
	// AllowedMethods - The methods (HTTP request verbs) that the origin domain may use for a CORS request. (comma separated)
	AllowedMethods *string `json:"AllowedMethods,omitempty"`
	// AllowedHeaders - The request headers that the origin domain may specify on the CORS request.
	AllowedHeaders *string `json:"AllowedHeaders,omitempty"`
	// ExposedHeaders - The response headers that may be sent in the response to the CORS request and exposed by the browser to the request issuer.
	ExposedHeaders *string `json:"ExposedHeaders,omitempty"`
	// MaxAgeInSeconds - The maximum amount time that a browser should cache the preflight OPTIONS request.
	MaxAgeInSeconds *int32 `json:"MaxAgeInSeconds,omitempty"`
}

CorsRule CORS is an HTTP feature that enables a web application running under one domain to access resources in another domain. Web browsers implement a security restriction known as same-origin policy that prevents a web page from calling APIs in a different domain; CORS provides a secure way to allow one domain (the origin domain) to call APIs in another domain.

type GeoReplication

type GeoReplication struct {
	// Status - The status of the secondary location. Possible values include: 'Live', 'Bootstrap', 'Unavailable'
	Status GeoReplicationStatusType `json:"Status,omitempty"`
	// LastSyncTime - A GMT date/time value, to the second. All primary writes preceding this value are guaranteed to be available for read operations at the secondary. Primary writes after this point in time may or may not be available for reads.
	LastSyncTime *date.TimeRFC1123 `json:"LastSyncTime,omitempty"`
}

GeoReplication ...

type GeoReplicationStatusType

type GeoReplicationStatusType string

GeoReplicationStatusType enumerates the values for geo replication status type.

const (
	// Bootstrap ...
	Bootstrap GeoReplicationStatusType = "bootstrap"
	// Live ...
	Live GeoReplicationStatusType = "live"
	// Unavailable ...
	Unavailable GeoReplicationStatusType = "unavailable"
)

func PossibleGeoReplicationStatusTypeValues

func PossibleGeoReplicationStatusTypeValues() []GeoReplicationStatusType

PossibleGeoReplicationStatusTypeValues returns an array of possible values for the GeoReplicationStatusType const type.

type ListSignedIdentifier

type ListSignedIdentifier struct {
	autorest.Response `json:"-"`
	Value             *[]SignedIdentifier `json:"value,omitempty"`
}

ListSignedIdentifier ...

type Logging

type Logging struct {
	// Version - The version of Analytics to configure.
	Version *string `json:"Version,omitempty"`
	// Delete - Indicates whether all delete requests should be logged.
	Delete *bool `json:"Delete,omitempty"`
	// Read - Indicates whether all read requests should be logged.
	Read *bool `json:"Read,omitempty"`
	// Write - Indicates whether all write requests should be logged.
	Write           *bool            `json:"Write,omitempty"`
	RetentionPolicy *RetentionPolicy `json:"RetentionPolicy,omitempty"`
}

Logging azure Analytics Logging settings.

type Metrics

type Metrics struct {
	// Version - The version of Analytics to configure.
	Version *string `json:"Version,omitempty"`
	// Enabled - Indicates whether metrics are enabled for the Table service.
	Enabled *bool `json:"Enabled,omitempty"`
	// IncludeAPIs - Indicates whether metrics should generate summary statistics for called API operations.
	IncludeAPIs     *bool            `json:"IncludeAPIs,omitempty"`
	RetentionPolicy *RetentionPolicy `json:"RetentionPolicy,omitempty"`
}

Metrics ...

type OdataMetadataFormat

type OdataMetadataFormat string

OdataMetadataFormat enumerates the values for odata metadata format.

const (
	// Applicationjsonodatafullmetadata ...
	Applicationjsonodatafullmetadata OdataMetadataFormat = "application/json;odata=fullmetadata"
	// Applicationjsonodataminimalmetadata ...
	Applicationjsonodataminimalmetadata OdataMetadataFormat = "application/json;odata=minimalmetadata"
	// Applicationjsonodatanometadata ...
	Applicationjsonodatanometadata OdataMetadataFormat = "application/json;odata=nometadata"
)

func PossibleOdataMetadataFormatValues

func PossibleOdataMetadataFormatValues() []OdataMetadataFormat

PossibleOdataMetadataFormatValues returns an array of possible values for the OdataMetadataFormat const type.

type ResponseFormat

type ResponseFormat string

ResponseFormat enumerates the values for response format.

const (
	// ReturnContent ...
	ReturnContent ResponseFormat = "return-content"
	// ReturnNoContent ...
	ReturnNoContent ResponseFormat = "return-no-content"
)

func PossibleResponseFormatValues

func PossibleResponseFormatValues() []ResponseFormat

PossibleResponseFormatValues returns an array of possible values for the ResponseFormat const type.

type RetentionPolicy

type RetentionPolicy struct {
	// Enabled - Indicates whether a retention policy is enabled for the service.
	Enabled *bool `json:"Enabled,omitempty"`
	// Days - Indicates the number of days that metrics or logging or soft-deleted data should be retained. All data older than this value will be deleted.
	Days *int32 `json:"Days,omitempty"`
}

RetentionPolicy the retention policy.

type ServiceClient

type ServiceClient struct {
	BaseClient
}

ServiceClient is the client for the Service methods of the Storagetables service.

func NewServiceClient

func NewServiceClient(URL string) ServiceClient

NewServiceClient creates an instance of the ServiceClient client.

func (ServiceClient) GetProperties

func (client ServiceClient) GetProperties(ctx context.Context, timeout *int32, requestID string) (result TableServiceProperties, err error)

GetProperties gets the properties of an account's Table service, including properties for Analytics and CORS (Cross-Origin Resource Sharing) rules. Parameters: timeout - the timeout parameter is expressed in seconds. requestID - provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when analytics logging is enabled.

func (ServiceClient) GetPropertiesPreparer

func (client ServiceClient) GetPropertiesPreparer(ctx context.Context, timeout *int32, requestID string) (*http.Request, error)

GetPropertiesPreparer prepares the GetProperties request.

func (ServiceClient) GetPropertiesResponder

func (client ServiceClient) GetPropertiesResponder(resp *http.Response) (result TableServiceProperties, err error)

GetPropertiesResponder handles the response to the GetProperties request. The method always closes the http.Response Body.

func (ServiceClient) GetPropertiesSender

func (client ServiceClient) GetPropertiesSender(req *http.Request) (*http.Response, error)

GetPropertiesSender sends the GetProperties request. The method will close the http.Response Body if it receives an error.

func (ServiceClient) GetStatistics

func (client ServiceClient) GetStatistics(ctx context.Context, timeout *int32, requestID string) (result TableServiceStats, err error)

GetStatistics retrieves statistics related to replication for the Table service. It is only available on the secondary location endpoint when read-access geo-redundant replication is enabled for the account. Parameters: timeout - the timeout parameter is expressed in seconds. requestID - provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when analytics logging is enabled.

func (ServiceClient) GetStatisticsPreparer

func (client ServiceClient) GetStatisticsPreparer(ctx context.Context, timeout *int32, requestID string) (*http.Request, error)

GetStatisticsPreparer prepares the GetStatistics request.

func (ServiceClient) GetStatisticsResponder

func (client ServiceClient) GetStatisticsResponder(resp *http.Response) (result TableServiceStats, err error)

GetStatisticsResponder handles the response to the GetStatistics request. The method always closes the http.Response Body.

func (ServiceClient) GetStatisticsSender

func (client ServiceClient) GetStatisticsSender(req *http.Request) (*http.Response, error)

GetStatisticsSender sends the GetStatistics request. The method will close the http.Response Body if it receives an error.

func (ServiceClient) SetProperties

func (client ServiceClient) SetProperties(ctx context.Context, tableServiceProperties TableServiceProperties, timeout *int32, requestID string) (result autorest.Response, err error)

SetProperties sets properties for an account's Table service endpoint, including properties for Analytics and CORS (Cross-Origin Resource Sharing) rules. Parameters: tableServiceProperties - the Table Service properties. timeout - the timeout parameter is expressed in seconds. requestID - provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when analytics logging is enabled.

func (ServiceClient) SetPropertiesPreparer

func (client ServiceClient) SetPropertiesPreparer(ctx context.Context, tableServiceProperties TableServiceProperties, timeout *int32, requestID string) (*http.Request, error)

SetPropertiesPreparer prepares the SetProperties request.

func (ServiceClient) SetPropertiesResponder

func (client ServiceClient) SetPropertiesResponder(resp *http.Response) (result autorest.Response, err error)

SetPropertiesResponder handles the response to the SetProperties request. The method always closes the http.Response Body.

func (ServiceClient) SetPropertiesSender

func (client ServiceClient) SetPropertiesSender(req *http.Request) (*http.Response, error)

SetPropertiesSender sends the SetProperties request. The method will close the http.Response Body if it receives an error.

type SetSetObject

type SetSetObject struct {
	autorest.Response `json:"-"`
	Value             map[string]interface{} `json:"value"`
}

SetSetObject ...

func (SetSetObject) MarshalJSON

func (sso SetSetObject) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for SetSetObject.

type SignedIdentifier

type SignedIdentifier struct {
	// ID - A unique id.
	ID *string `json:"Id,omitempty"`
	// AccessPolicy - The access policy.
	AccessPolicy *AccessPolicy `json:"AccessPolicy,omitempty"`
}

SignedIdentifier a signed identifier.

type TableClient

type TableClient struct {
	BaseClient
}

TableClient is the client for the Table methods of the Storagetables service.

func NewTableClient

func NewTableClient(URL string) TableClient

NewTableClient creates an instance of the TableClient client.

func (TableClient) Create

func (client TableClient) Create(ctx context.Context, tableProperties TableProperties, requestID string, formatParameter OdataMetadataFormat, responsePreference ResponseFormat) (result TableResponse, err error)

Create creates a new table under the given account. Parameters: tableProperties - the Table properties. requestID - provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when analytics logging is enabled. formatParameter - specifies the media type for the response. responsePreference - specifies whether the response should include the inserted entity in the payload. Possible values are return-no-content and return-content.

func (TableClient) CreatePreparer

func (client TableClient) CreatePreparer(ctx context.Context, tableProperties TableProperties, requestID string, formatParameter OdataMetadataFormat, responsePreference ResponseFormat) (*http.Request, error)

CreatePreparer prepares the Create request.

func (TableClient) CreateResponder

func (client TableClient) CreateResponder(resp *http.Response) (result TableResponse, err error)

CreateResponder handles the response to the Create request. The method always closes the http.Response Body.

func (TableClient) CreateSender

func (client TableClient) CreateSender(req *http.Request) (*http.Response, error)

CreateSender sends the Create request. The method will close the http.Response Body if it receives an error.

func (TableClient) Delete

func (client TableClient) Delete(ctx context.Context, table string, requestID string) (result autorest.Response, err error)

Delete operation permanently deletes the specified table. Parameters: table - the name of the table. requestID - provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when analytics logging is enabled.

func (TableClient) DeleteEntity

func (client TableClient) DeleteEntity(ctx context.Context, table string, partitionKey string, rowKey string, ifMatch string, timeout *int32, requestID string, formatParameter OdataMetadataFormat) (result autorest.Response, err error)

DeleteEntity deletes the specified entity in a table. Parameters: table - the name of the table. partitionKey - the partition key of the entity. rowKey - the row key of the entity. ifMatch - match condition for an entity to be deleted. If specified and a matching entity is not found, an error will be raised. To force an unconditional delete, set to the wildcard character (*). timeout - the timeout parameter is expressed in seconds. requestID - provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when analytics logging is enabled. formatParameter - specifies the media type for the response.

func (TableClient) DeleteEntityPreparer

func (client TableClient) DeleteEntityPreparer(ctx context.Context, table string, partitionKey string, rowKey string, ifMatch string, timeout *int32, requestID string, formatParameter OdataMetadataFormat) (*http.Request, error)

DeleteEntityPreparer prepares the DeleteEntity request.

func (TableClient) DeleteEntityResponder

func (client TableClient) DeleteEntityResponder(resp *http.Response) (result autorest.Response, err error)

DeleteEntityResponder handles the response to the DeleteEntity request. The method always closes the http.Response Body.

func (TableClient) DeleteEntitySender

func (client TableClient) DeleteEntitySender(req *http.Request) (*http.Response, error)

DeleteEntitySender sends the DeleteEntity request. The method will close the http.Response Body if it receives an error.

func (TableClient) DeletePreparer

func (client TableClient) DeletePreparer(ctx context.Context, table string, requestID string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (TableClient) DeleteResponder

func (client TableClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (TableClient) DeleteSender

func (client TableClient) DeleteSender(req *http.Request) (*http.Response, error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (TableClient) GetAccessPolicy

func (client TableClient) GetAccessPolicy(ctx context.Context, table string, timeout *int32, requestID string) (result ListSignedIdentifier, err error)

GetAccessPolicy retrieves details about any stored access policies specified on the table that may be used with Shared Access Signatures. Parameters: table - the name of the table. timeout - the timeout parameter is expressed in seconds. requestID - provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when analytics logging is enabled.

func (TableClient) GetAccessPolicyPreparer

func (client TableClient) GetAccessPolicyPreparer(ctx context.Context, table string, timeout *int32, requestID string) (*http.Request, error)

GetAccessPolicyPreparer prepares the GetAccessPolicy request.

func (TableClient) GetAccessPolicyResponder

func (client TableClient) GetAccessPolicyResponder(resp *http.Response) (result ListSignedIdentifier, err error)

GetAccessPolicyResponder handles the response to the GetAccessPolicy request. The method always closes the http.Response Body.

func (TableClient) GetAccessPolicySender

func (client TableClient) GetAccessPolicySender(req *http.Request) (*http.Response, error)

GetAccessPolicySender sends the GetAccessPolicy request. The method will close the http.Response Body if it receives an error.

func (TableClient) InsertEntity

func (client TableClient) InsertEntity(ctx context.Context, table string, timeout *int32, requestID string, formatParameter OdataMetadataFormat, tableEntityProperties map[string]interface{}, responsePreference ResponseFormat) (result SetSetObject, err error)

InsertEntity insert entity in a table. Parameters: table - the name of the table. timeout - the timeout parameter is expressed in seconds. requestID - provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when analytics logging is enabled. formatParameter - specifies the media type for the response. tableEntityProperties - the properties for the table entity. responsePreference - specifies whether the response should include the inserted entity in the payload. Possible values are return-no-content and return-content.

func (TableClient) InsertEntityPreparer

func (client TableClient) InsertEntityPreparer(ctx context.Context, table string, timeout *int32, requestID string, formatParameter OdataMetadataFormat, tableEntityProperties map[string]interface{}, responsePreference ResponseFormat) (*http.Request, error)

InsertEntityPreparer prepares the InsertEntity request.

func (TableClient) InsertEntityResponder

func (client TableClient) InsertEntityResponder(resp *http.Response) (result SetSetObject, err error)

InsertEntityResponder handles the response to the InsertEntity request. The method always closes the http.Response Body.

func (TableClient) InsertEntitySender

func (client TableClient) InsertEntitySender(req *http.Request) (*http.Response, error)

InsertEntitySender sends the InsertEntity request. The method will close the http.Response Body if it receives an error.

func (TableClient) MergeEntity

func (client TableClient) MergeEntity(ctx context.Context, table string, partitionKey string, rowKey string, timeout *int32, requestID string, formatParameter OdataMetadataFormat, tableEntityProperties map[string]interface{}, ifMatch string) (result autorest.Response, err error)

MergeEntity merge entity in a table. Parameters: table - the name of the table. partitionKey - the partition key of the entity. rowKey - the row key of the entity. timeout - the timeout parameter is expressed in seconds. requestID - provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when analytics logging is enabled. formatParameter - specifies the media type for the response. tableEntityProperties - the properties for the table entity. ifMatch - match condition for an entity to be updated. If specified and a matching entity is not found, an error will be raised. To force an unconditional update, set to the wildcard character (*). If not specified, an insert will be performed when no existing entity is found to update and a merge will be performed if an existing entity is found.

func (TableClient) MergeEntityPreparer

func (client TableClient) MergeEntityPreparer(ctx context.Context, table string, partitionKey string, rowKey string, timeout *int32, requestID string, formatParameter OdataMetadataFormat, tableEntityProperties map[string]interface{}, ifMatch string) (*http.Request, error)

MergeEntityPreparer prepares the MergeEntity request.

func (TableClient) MergeEntityResponder

func (client TableClient) MergeEntityResponder(resp *http.Response) (result autorest.Response, err error)

MergeEntityResponder handles the response to the MergeEntity request. The method always closes the http.Response Body.

func (TableClient) MergeEntitySender

func (client TableClient) MergeEntitySender(req *http.Request) (*http.Response, error)

MergeEntitySender sends the MergeEntity request. The method will close the http.Response Body if it receives an error.

func (TableClient) Query

func (client TableClient) Query(ctx context.Context, requestID string, formatParameter OdataMetadataFormat, top *int32, selectParameter string, filter string, nextTableName string) (result TableQueryResponse, err error)

Query queries tables under the given account. Parameters: requestID - provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when analytics logging is enabled. formatParameter - specifies the media type for the response. top - maximum number of records to return. selectParameter - select expression using OData notation. Limits the columns on each record to just those requested, e.g. "$select=PolicyAssignmentId, ResourceId". filter - oData filter expression. nextTableName - a table query continuation token from a previous call.

func (TableClient) QueryEntities

func (client TableClient) QueryEntities(ctx context.Context, table string, timeout *int32, requestID string, formatParameter OdataMetadataFormat, top *int32, selectParameter string, filter string, nextPartitionKey string, nextRowKey string) (result TableEntityQueryResponse, err error)

QueryEntities queries entities in a table. Parameters: table - the name of the table. timeout - the timeout parameter is expressed in seconds. requestID - provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when analytics logging is enabled. formatParameter - specifies the media type for the response. top - maximum number of records to return. selectParameter - select expression using OData notation. Limits the columns on each record to just those requested, e.g. "$select=PolicyAssignmentId, ResourceId". filter - oData filter expression. nextPartitionKey - an entity query continuation token from a previous call. nextRowKey - an entity query continuation token from a previous call.

func (TableClient) QueryEntitiesPreparer

func (client TableClient) QueryEntitiesPreparer(ctx context.Context, table string, timeout *int32, requestID string, formatParameter OdataMetadataFormat, top *int32, selectParameter string, filter string, nextPartitionKey string, nextRowKey string) (*http.Request, error)

QueryEntitiesPreparer prepares the QueryEntities request.

func (TableClient) QueryEntitiesResponder

func (client TableClient) QueryEntitiesResponder(resp *http.Response) (result TableEntityQueryResponse, err error)

QueryEntitiesResponder handles the response to the QueryEntities request. The method always closes the http.Response Body.

func (TableClient) QueryEntitiesSender

func (client TableClient) QueryEntitiesSender(req *http.Request) (*http.Response, error)

QueryEntitiesSender sends the QueryEntities request. The method will close the http.Response Body if it receives an error.

func (TableClient) QueryEntitiesWithPartitionAndRowKey

func (client TableClient) QueryEntitiesWithPartitionAndRowKey(ctx context.Context, table string, partitionKey string, rowKey string, timeout *int32, requestID string, formatParameter OdataMetadataFormat, selectParameter string, filter string) (result TableEntityQueryResponse, err error)

QueryEntitiesWithPartitionAndRowKey queries entities in a table. Parameters: table - the name of the table. partitionKey - the partition key of the entity. rowKey - the row key of the entity. timeout - the timeout parameter is expressed in seconds. requestID - provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when analytics logging is enabled. formatParameter - specifies the media type for the response. selectParameter - select expression using OData notation. Limits the columns on each record to just those requested, e.g. "$select=PolicyAssignmentId, ResourceId". filter - oData filter expression.

func (TableClient) QueryEntitiesWithPartitionAndRowKeyPreparer

func (client TableClient) QueryEntitiesWithPartitionAndRowKeyPreparer(ctx context.Context, table string, partitionKey string, rowKey string, timeout *int32, requestID string, formatParameter OdataMetadataFormat, selectParameter string, filter string) (*http.Request, error)

QueryEntitiesWithPartitionAndRowKeyPreparer prepares the QueryEntitiesWithPartitionAndRowKey request.

func (TableClient) QueryEntitiesWithPartitionAndRowKeyResponder

func (client TableClient) QueryEntitiesWithPartitionAndRowKeyResponder(resp *http.Response) (result TableEntityQueryResponse, err error)

QueryEntitiesWithPartitionAndRowKeyResponder handles the response to the QueryEntitiesWithPartitionAndRowKey request. The method always closes the http.Response Body.

func (TableClient) QueryEntitiesWithPartitionAndRowKeySender

func (client TableClient) QueryEntitiesWithPartitionAndRowKeySender(req *http.Request) (*http.Response, error)

QueryEntitiesWithPartitionAndRowKeySender sends the QueryEntitiesWithPartitionAndRowKey request. The method will close the http.Response Body if it receives an error.

func (TableClient) QueryPreparer

func (client TableClient) QueryPreparer(ctx context.Context, requestID string, formatParameter OdataMetadataFormat, top *int32, selectParameter string, filter string, nextTableName string) (*http.Request, error)

QueryPreparer prepares the Query request.

func (TableClient) QueryResponder

func (client TableClient) QueryResponder(resp *http.Response) (result TableQueryResponse, err error)

QueryResponder handles the response to the Query request. The method always closes the http.Response Body.

func (TableClient) QuerySender

func (client TableClient) QuerySender(req *http.Request) (*http.Response, error)

QuerySender sends the Query request. The method will close the http.Response Body if it receives an error.

func (TableClient) SetAccessPolicy

func (client TableClient) SetAccessPolicy(ctx context.Context, table string, tableACL []SignedIdentifier, timeout *int32, requestID string) (result autorest.Response, err error)

SetAccessPolicy sets stored access policies for the table that may be used with Shared Access Signatures. Parameters: table - the name of the table. tableACL - the acls for the table. timeout - the timeout parameter is expressed in seconds. requestID - provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when analytics logging is enabled.

func (TableClient) SetAccessPolicyPreparer

func (client TableClient) SetAccessPolicyPreparer(ctx context.Context, table string, tableACL []SignedIdentifier, timeout *int32, requestID string) (*http.Request, error)

SetAccessPolicyPreparer prepares the SetAccessPolicy request.

func (TableClient) SetAccessPolicyResponder

func (client TableClient) SetAccessPolicyResponder(resp *http.Response) (result autorest.Response, err error)

SetAccessPolicyResponder handles the response to the SetAccessPolicy request. The method always closes the http.Response Body.

func (TableClient) SetAccessPolicySender

func (client TableClient) SetAccessPolicySender(req *http.Request) (*http.Response, error)

SetAccessPolicySender sends the SetAccessPolicy request. The method will close the http.Response Body if it receives an error.

func (TableClient) UpdateEntity

func (client TableClient) UpdateEntity(ctx context.Context, table string, partitionKey string, rowKey string, timeout *int32, requestID string, formatParameter OdataMetadataFormat, tableEntityProperties map[string]interface{}, ifMatch string) (result autorest.Response, err error)

UpdateEntity update entity in a table. Parameters: table - the name of the table. partitionKey - the partition key of the entity. rowKey - the row key of the entity. timeout - the timeout parameter is expressed in seconds. requestID - provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when analytics logging is enabled. formatParameter - specifies the media type for the response. tableEntityProperties - the properties for the table entity. ifMatch - match condition for an entity to be updated. If specified and a matching entity is not found, an error will be raised. To force an unconditional update, set to the wildcard character (*). If not specified, an insert will be performed when no existing entity is found to update and a replace will be performed if an existing entity is found.

func (TableClient) UpdateEntityPreparer

func (client TableClient) UpdateEntityPreparer(ctx context.Context, table string, partitionKey string, rowKey string, timeout *int32, requestID string, formatParameter OdataMetadataFormat, tableEntityProperties map[string]interface{}, ifMatch string) (*http.Request, error)

UpdateEntityPreparer prepares the UpdateEntity request.

func (TableClient) UpdateEntityResponder

func (client TableClient) UpdateEntityResponder(resp *http.Response) (result autorest.Response, err error)

UpdateEntityResponder handles the response to the UpdateEntity request. The method always closes the http.Response Body.

func (TableClient) UpdateEntitySender

func (client TableClient) UpdateEntitySender(req *http.Request) (*http.Response, error)

UpdateEntitySender sends the UpdateEntity request. The method will close the http.Response Body if it receives an error.

type TableEntityQueryResponse

type TableEntityQueryResponse struct {
	autorest.Response `json:"-"`
	// OdataMetadata - The metadata response of the table.
	OdataMetadata *string `json:"odata.metadata,omitempty"`
	// Value - List of table entities.
	Value *[]map[string]interface{} `json:"value,omitempty"`
}

TableEntityQueryResponse the properties for the table entity query response.

type TableProperties

type TableProperties struct {
	// TableName - The name of the table to create.
	TableName *string `json:"TableName,omitempty"`
}

TableProperties the properties for creating a table.

type TableQueryResponse

type TableQueryResponse struct {
	autorest.Response `json:"-"`
	// OdataMetadata - The metadata response of the table.
	OdataMetadata *string `json:"odata.metadata,omitempty"`
	// Value - List of tables.
	Value *[]TableResponseProperties `json:"value,omitempty"`
}

TableQueryResponse the properties for the table query response.

type TableResponse

type TableResponse struct {
	autorest.Response `json:"-"`
	// OdataMetadata - The metadata response of the table.
	OdataMetadata *string `json:"odata.metadata,omitempty"`
	// TableName - The name of the table.
	TableName *string `json:"TableName,omitempty"`
	// OdataType - The odata type of the table.
	OdataType *string `json:"odata.type,omitempty"`
	// OdataID - The id of the table.
	OdataID *string `json:"odata.id,omitempty"`
	// OdataEditLink - The edit link of the table.
	OdataEditLink *string `json:"odata.editLink,omitempty"`
}

TableResponse the response for a single table.

type TableResponseProperties

type TableResponseProperties struct {
	// TableName - The name of the table.
	TableName *string `json:"TableName,omitempty"`
	// OdataType - The odata type of the table.
	OdataType *string `json:"odata.type,omitempty"`
	// OdataID - The id of the table.
	OdataID *string `json:"odata.id,omitempty"`
	// OdataEditLink - The edit link of the table.
	OdataEditLink *string `json:"odata.editLink,omitempty"`
}

TableResponseProperties the properties for the table response.

type TableServiceError

type TableServiceError struct {
	// Message - The error message.
	Message *string `json:"Message,omitempty"`
}

TableServiceError table Service error.

type TableServiceProperties

type TableServiceProperties struct {
	autorest.Response `json:"-"`
	// Logging - Azure Analytics Logging settings.
	Logging *Logging `json:"Logging,omitempty"`
	// HourMetrics - A summary of request statistics grouped by API in hourly aggregates for tables.
	HourMetrics *Metrics `json:"HourMetrics,omitempty"`
	// MinuteMetrics - A summary of request statistics grouped by API in minute aggregates for tables.
	MinuteMetrics *Metrics `json:"MinuteMetrics,omitempty"`
	// Cors - The set of CORS rules.
	Cors *[]CorsRule `json:"Cors,omitempty"`
}

TableServiceProperties table Service Properties.

type TableServiceStats

type TableServiceStats struct {
	autorest.Response `json:"-"`
	// GeoReplication - Geo-Replication information for the Secondary Storage Service.
	GeoReplication *GeoReplication `json:"GeoReplication,omitempty"`
}

TableServiceStats stats for the service.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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