Documentation ¶
Index ¶
- Constants
- type AccessPolicy
- type CorsRule
- type GeoReplication
- type GeoReplicationStatusType
- type Logging
- type Metrics
- type ODataMetadataFormat
- type QueryOptions
- type ResponseFormat
- type RetentionPolicy
- type ServiceClient
- func (s *ServiceClient) Endpoint() string
- func (client *ServiceClient) GetProperties(ctx context.Context, options *ServiceClientGetPropertiesOptions) (ServiceClientGetPropertiesResponse, error)
- func (client *ServiceClient) GetStatistics(ctx context.Context, options *ServiceClientGetStatisticsOptions) (ServiceClientGetStatisticsResponse, error)
- func (s *ServiceClient) Pipeline() runtime.Pipeline
- func (client *ServiceClient) SetProperties(ctx context.Context, tableServiceProperties TableServiceProperties, ...) (ServiceClientSetPropertiesResponse, error)
- type ServiceClientGetPropertiesOptions
- type ServiceClientGetPropertiesResponse
- type ServiceClientGetStatisticsOptions
- type ServiceClientGetStatisticsResponse
- type ServiceClientSetPropertiesOptions
- type ServiceClientSetPropertiesResponse
- type SignedIdentifier
- type TableClient
- func (client *TableClient) Create(ctx context.Context, tableProperties TableProperties, ...) (TableClientCreateResponse, error)
- func (client *TableClient) Delete(ctx context.Context, table string, options *TableClientDeleteOptions) (TableClientDeleteResponse, error)
- func (client *TableClient) DeleteEntity(ctx context.Context, table string, partitionKey string, rowKey string, ...) (TableClientDeleteEntityResponse, error)
- func (client *TableClient) DeleteEntityCreateRequest(ctx context.Context, table string, partitionKey string, rowKey string, ...) (*policy.Request, error)
- func (t *TableClient) Endpoint() string
- func (client *TableClient) GetAccessPolicy(ctx context.Context, table string, options *TableClientGetAccessPolicyOptions) (TableClientGetAccessPolicyResponse, error)
- func (client *TableClient) InsertEntity(ctx context.Context, table string, options *TableClientInsertEntityOptions, ...) (TableClientInsertEntityResponse, error)
- func (client *TableClient) InsertEntityCreateRequest(ctx context.Context, table string, options *TableClientInsertEntityOptions, ...) (*policy.Request, error)
- func (client *TableClient) MergeEntity(ctx context.Context, table string, partitionKey string, rowKey string, ...) (TableClientMergeEntityResponse, error)
- func (client *TableClient) MergeEntityCreateRequest(ctx context.Context, table string, partitionKey string, rowKey string, ...) (*policy.Request, error)
- func (t *TableClient) Pipeline() runtime.Pipeline
- func (client *TableClient) Query(ctx context.Context, options *TableClientQueryOptions, ...) (TableClientQueryResponse, error)
- func (client *TableClient) QueryEntities(ctx context.Context, table string, options *TableClientQueryEntitiesOptions, ...) (TableClientQueryEntitiesResponse, error)
- func (client *TableClient) QueryEntityWithPartitionAndRowKey(ctx context.Context, table string, partitionKey string, rowKey string, ...) (TableClientQueryEntityWithPartitionAndRowKeyResponse, error)
- func (client *TableClient) SetAccessPolicy(ctx context.Context, table string, options *TableClientSetAccessPolicyOptions) (TableClientSetAccessPolicyResponse, error)
- func (t *TableClient) Tracer() tracing.Tracer
- func (client *TableClient) UpdateEntity(ctx context.Context, table string, partitionKey string, rowKey string, ...) (TableClientUpdateEntityResponse, error)
- func (client *TableClient) UpdateEntityCreateRequest(ctx context.Context, table string, partitionKey string, rowKey string, ...) (*policy.Request, error)
- type TableClientCreateOptions
- type TableClientCreateResponse
- type TableClientDeleteEntityOptions
- type TableClientDeleteEntityResponse
- type TableClientDeleteOptions
- type TableClientDeleteResponse
- type TableClientGetAccessPolicyOptions
- type TableClientGetAccessPolicyResponse
- type TableClientInsertEntityOptions
- type TableClientInsertEntityResponse
- type TableClientMergeEntityOptions
- type TableClientMergeEntityResponse
- type TableClientQueryEntitiesOptions
- type TableClientQueryEntitiesResponse
- type TableClientQueryEntityWithPartitionAndRowKeyOptions
- type TableClientQueryEntityWithPartitionAndRowKeyResponse
- type TableClientQueryOptions
- type TableClientQueryResponse
- type TableClientSetAccessPolicyOptions
- type TableClientSetAccessPolicyResponse
- type TableClientUpdateEntityOptions
- type TableClientUpdateEntityResponse
- type TableEntityQueryResponse
- type TableProperties
- type TableQueryResponse
- type TableResponse
- type TableResponseProperties
- type TableServiceError
- type TableServiceProperties
- type TableServiceStats
Constants ¶
const ( ModuleName = "github.com/Azure/azure-sdk-for-go/sdk/data/aztables" Version = "v1.3.0" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessPolicy ¶
type AccessPolicy struct { // REQUIRED; The datetime that the policy expires. Expiry *time.Time `xml:"Expiry"` // REQUIRED; The permissions for the acl policy. Permission *string `xml:"Permission"` // REQUIRED; The start datetime from which the policy is active. Start *time.Time `xml:"Start"` }
AccessPolicy - An Access policy.
func (AccessPolicy) MarshalXML ¶
func (a AccessPolicy) MarshalXML(enc *xml.Encoder, start xml.StartElement) error
MarshalXML implements the xml.Marshaller interface for type AccessPolicy.
func (*AccessPolicy) UnmarshalXML ¶
func (a *AccessPolicy) UnmarshalXML(dec *xml.Decoder, start xml.StartElement) error
UnmarshalXML implements the xml.Unmarshaller interface for type AccessPolicy.
type CorsRule ¶
type CorsRule struct { // REQUIRED; The request headers that the origin domain may specify on the CORS request. AllowedHeaders *string `xml:"AllowedHeaders"` // REQUIRED; The methods (HTTP request verbs) that the origin domain may use for a CORS request. (comma separated) AllowedMethods *string `xml:"AllowedMethods"` // REQUIRED; 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 `xml:"AllowedOrigins"` // REQUIRED; 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 `xml:"ExposedHeaders"` // REQUIRED; The maximum amount time that a browser should cache the preflight OPTIONS request. MaxAgeInSeconds *int32 `xml:"MaxAgeInSeconds"` }
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 { // REQUIRED; 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 *time.Time `xml:"LastSyncTime"` // REQUIRED; The status of the secondary location. Status *GeoReplicationStatusType `xml:"Status"` }
func (GeoReplication) MarshalXML ¶
func (g GeoReplication) MarshalXML(enc *xml.Encoder, start xml.StartElement) error
MarshalXML implements the xml.Marshaller interface for type GeoReplication.
func (*GeoReplication) UnmarshalXML ¶
func (g *GeoReplication) UnmarshalXML(dec *xml.Decoder, start xml.StartElement) error
UnmarshalXML implements the xml.Unmarshaller interface for type GeoReplication.
type GeoReplicationStatusType ¶
type GeoReplicationStatusType string
GeoReplicationStatusType - The status of the secondary location.
const ( GeoReplicationStatusTypeBootstrap GeoReplicationStatusType = "bootstrap" GeoReplicationStatusTypeLive GeoReplicationStatusType = "live" )
func PossibleGeoReplicationStatusTypeValues ¶
func PossibleGeoReplicationStatusTypeValues() []GeoReplicationStatusType
PossibleGeoReplicationStatusTypeValues returns the possible values for the GeoReplicationStatusType const type.
type Logging ¶
type Logging struct { // REQUIRED; Indicates whether all delete requests should be logged. Delete *bool `xml:"Delete"` // REQUIRED; Indicates whether all read requests should be logged. Read *bool `xml:"Read"` // REQUIRED; The retention policy. RetentionPolicy *RetentionPolicy `xml:"RetentionPolicy"` // REQUIRED; The version of Analytics to configure. Version *string `xml:"Version"` // REQUIRED; Indicates whether all write requests should be logged. Write *bool `xml:"Write"` }
Logging - Azure Analytics Logging settings.
type Metrics ¶
type Metrics struct { // REQUIRED; Indicates whether metrics are enabled for the Table service. Enabled *bool `xml:"Enabled"` // Indicates whether metrics should generate summary statistics for called API operations. IncludeAPIs *bool `xml:"IncludeAPIs"` // The retention policy. RetentionPolicy *RetentionPolicy `xml:"RetentionPolicy"` // The version of Analytics to configure. Version *string `xml:"Version"` }
type ODataMetadataFormat ¶
type ODataMetadataFormat string
const ( ODataMetadataFormatApplicationJSONODataFullmetadata ODataMetadataFormat = "application/json;odata=fullmetadata" ODataMetadataFormatApplicationJSONODataMinimalmetadata ODataMetadataFormat = "application/json;odata=minimalmetadata" ODataMetadataFormatApplicationJSONODataNometadata ODataMetadataFormat = "application/json;odata=nometadata" )
func PossibleODataMetadataFormatValues ¶
func PossibleODataMetadataFormatValues() []ODataMetadataFormat
PossibleODataMetadataFormatValues returns the possible values for the ODataMetadataFormat const type.
type QueryOptions ¶
type QueryOptions struct { // OData filter expression. Filter *string // Specifies the media type for the response. Format *ODataMetadataFormat // Select expression using OData notation. Limits the columns on each record to just those requested, e.g. "$select=PolicyAssignmentId, // ResourceId". Select *string // Maximum number of records to return. Top *int32 }
QueryOptions contains a group of parameters for the TableClient.Query method.
type ResponseFormat ¶
type ResponseFormat string
const ( ResponseFormatReturnContent ResponseFormat = "return-content" ResponseFormatReturnNoContent ResponseFormat = "return-no-content" )
func PossibleResponseFormatValues ¶
func PossibleResponseFormatValues() []ResponseFormat
PossibleResponseFormatValues returns the possible values for the ResponseFormat const type.
type RetentionPolicy ¶
type RetentionPolicy struct { // REQUIRED; Indicates whether a retention policy is enabled for the service. Enabled *bool `xml:"Enabled"` // 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 `xml:"Days"` }
RetentionPolicy - The retention policy.
type ServiceClient ¶
type ServiceClient struct {
// contains filtered or unexported fields
}
ServiceClient contains the methods for the Service group. Don't use this type directly, use a constructor function instead.
func NewServiceClient ¶
func NewServiceClient(endpoint string, client *azcore.Client) *ServiceClient
func (*ServiceClient) Endpoint ¶ added in v1.1.0
func (s *ServiceClient) Endpoint() string
func (*ServiceClient) GetProperties ¶
func (client *ServiceClient) GetProperties(ctx context.Context, options *ServiceClientGetPropertiesOptions) (ServiceClientGetPropertiesResponse, error)
GetProperties - Gets the properties of an account's Table service, including properties for Analytics and CORS (Cross-Origin Resource Sharing) rules. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2019-02-02
- options - ServiceClientGetPropertiesOptions contains the optional parameters for the ServiceClient.GetProperties method.
func (*ServiceClient) GetStatistics ¶
func (client *ServiceClient) GetStatistics(ctx context.Context, options *ServiceClientGetStatisticsOptions) (ServiceClientGetStatisticsResponse, 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. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2019-02-02
- options - ServiceClientGetStatisticsOptions contains the optional parameters for the ServiceClient.GetStatistics method.
func (*ServiceClient) Pipeline ¶ added in v1.1.0
func (s *ServiceClient) Pipeline() runtime.Pipeline
func (*ServiceClient) SetProperties ¶
func (client *ServiceClient) SetProperties(ctx context.Context, tableServiceProperties TableServiceProperties, options *ServiceClientSetPropertiesOptions) (ServiceClientSetPropertiesResponse, error)
SetProperties - Sets properties for an account's Table service endpoint, including properties for Analytics and CORS (Cross-Origin Resource Sharing) rules. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2019-02-02
- tableServiceProperties - The Table Service properties.
- options - ServiceClientSetPropertiesOptions contains the optional parameters for the ServiceClient.SetProperties method.
type ServiceClientGetPropertiesOptions ¶ added in v0.5.0
type ServiceClientGetPropertiesOptions struct { // Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when analytics // logging is enabled. RequestID *string // The timeout parameter is expressed in seconds. Timeout *int32 }
ServiceClientGetPropertiesOptions contains the optional parameters for the ServiceClient.GetProperties method.
type ServiceClientGetPropertiesResponse ¶ added in v0.5.0
type ServiceClientGetPropertiesResponse struct { // Table Service Properties. TableServiceProperties // ClientRequestID contains the information returned from the x-ms-client-request-id header response. ClientRequestID *string // RequestID contains the information returned from the x-ms-request-id header response. RequestID *string // Version contains the information returned from the x-ms-version header response. Version *string }
ServiceClientGetPropertiesResponse contains the response from method ServiceClient.GetProperties.
type ServiceClientGetStatisticsOptions ¶ added in v0.5.0
type ServiceClientGetStatisticsOptions struct { // Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when analytics // logging is enabled. RequestID *string // The timeout parameter is expressed in seconds. Timeout *int32 }
ServiceClientGetStatisticsOptions contains the optional parameters for the ServiceClient.GetStatistics method.
type ServiceClientGetStatisticsResponse ¶ added in v0.5.0
type ServiceClientGetStatisticsResponse struct { // Stats for the service. TableServiceStats // ClientRequestID contains the information returned from the x-ms-client-request-id header response. ClientRequestID *string // Date contains the information returned from the Date header response. Date *time.Time // RequestID contains the information returned from the x-ms-request-id header response. RequestID *string // Version contains the information returned from the x-ms-version header response. Version *string }
ServiceClientGetStatisticsResponse contains the response from method ServiceClient.GetStatistics.
type ServiceClientSetPropertiesOptions ¶ added in v0.5.0
type ServiceClientSetPropertiesOptions struct { // Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when analytics // logging is enabled. RequestID *string // The timeout parameter is expressed in seconds. Timeout *int32 }
ServiceClientSetPropertiesOptions contains the optional parameters for the ServiceClient.SetProperties method.
type ServiceClientSetPropertiesResponse ¶ added in v0.5.0
type ServiceClientSetPropertiesResponse struct { // ClientRequestID contains the information returned from the x-ms-client-request-id header response. ClientRequestID *string // RequestID contains the information returned from the x-ms-request-id header response. RequestID *string // Version contains the information returned from the x-ms-version header response. Version *string }
ServiceClientSetPropertiesResponse contains the response from method ServiceClient.SetProperties.
type SignedIdentifier ¶
type SignedIdentifier struct { // REQUIRED; The access policy. AccessPolicy *AccessPolicy `xml:"AccessPolicy"` // REQUIRED; A unique id. ID *string `xml:"Id"` }
SignedIdentifier - A signed identifier.
type TableClient ¶
type TableClient struct {
// contains filtered or unexported fields
}
TableClient contains the methods for the Table group. Don't use this type directly, use a constructor function instead.
func NewTableClient ¶
func NewTableClient(endpoint string, client *azcore.Client) *TableClient
func (*TableClient) Create ¶
func (client *TableClient) Create(ctx context.Context, tableProperties TableProperties, options *TableClientCreateOptions, queryOptions *QueryOptions) (TableClientCreateResponse, error)
Create - Creates a new table under the given account. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2019-02-02
- tableProperties - The Table properties.
- options - TableClientCreateOptions contains the optional parameters for the TableClient.Create method.
- QueryOptions - QueryOptions contains a group of parameters for the TableClient.Query method.
func (*TableClient) Delete ¶
func (client *TableClient) Delete(ctx context.Context, table string, options *TableClientDeleteOptions) (TableClientDeleteResponse, error)
Delete - Operation permanently deletes the specified table. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2019-02-02
- table - The name of the table.
- options - TableClientDeleteOptions contains the optional parameters for the TableClient.Delete method.
func (*TableClient) DeleteEntity ¶
func (client *TableClient) DeleteEntity(ctx context.Context, table string, partitionKey string, rowKey string, ifMatch string, options *TableClientDeleteEntityOptions, queryOptions *QueryOptions) (TableClientDeleteEntityResponse, error)
DeleteEntity - Deletes the specified entity in a table. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2019-02-02
- 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 (*).
- options - TableClientDeleteEntityOptions contains the optional parameters for the TableClient.DeleteEntity method.
- QueryOptions - QueryOptions contains a group of parameters for the TableClient.Query method.
func (*TableClient) DeleteEntityCreateRequest ¶
func (client *TableClient) DeleteEntityCreateRequest(ctx context.Context, table string, partitionKey string, rowKey string, ifMatch string, options *TableClientDeleteEntityOptions, queryOptions *QueryOptions) (*policy.Request, error)
deleteEntityCreateRequest creates the DeleteEntity request.
func (*TableClient) Endpoint ¶ added in v1.1.0
func (t *TableClient) Endpoint() string
func (*TableClient) GetAccessPolicy ¶
func (client *TableClient) GetAccessPolicy(ctx context.Context, table string, options *TableClientGetAccessPolicyOptions) (TableClientGetAccessPolicyResponse, error)
GetAccessPolicy - Retrieves details about any stored access policies specified on the table that may be used with Shared Access Signatures. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2019-02-02
- table - The name of the table.
- options - TableClientGetAccessPolicyOptions contains the optional parameters for the TableClient.GetAccessPolicy method.
func (*TableClient) InsertEntity ¶
func (client *TableClient) InsertEntity(ctx context.Context, table string, options *TableClientInsertEntityOptions, queryOptions *QueryOptions) (TableClientInsertEntityResponse, error)
InsertEntity - Insert entity in a table. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2019-02-02
- table - The name of the table.
- options - TableClientInsertEntityOptions contains the optional parameters for the TableClient.InsertEntity method.
- QueryOptions - QueryOptions contains a group of parameters for the TableClient.Query method.
func (*TableClient) InsertEntityCreateRequest ¶
func (client *TableClient) InsertEntityCreateRequest(ctx context.Context, table string, options *TableClientInsertEntityOptions, queryOptions *QueryOptions) (*policy.Request, error)
insertEntityCreateRequest creates the InsertEntity request.
func (*TableClient) MergeEntity ¶
func (client *TableClient) MergeEntity(ctx context.Context, table string, partitionKey string, rowKey string, options *TableClientMergeEntityOptions, queryOptions *QueryOptions) (TableClientMergeEntityResponse, error)
MergeEntity - Merge entity in a table. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2019-02-02
- table - The name of the table.
- partitionKey - The partition key of the entity.
- rowKey - The row key of the entity.
- options - TableClientMergeEntityOptions contains the optional parameters for the TableClient.MergeEntity method.
- QueryOptions - QueryOptions contains a group of parameters for the TableClient.Query method.
func (*TableClient) MergeEntityCreateRequest ¶
func (client *TableClient) MergeEntityCreateRequest(ctx context.Context, table string, partitionKey string, rowKey string, options *TableClientMergeEntityOptions, queryOptions *QueryOptions) (*policy.Request, error)
mergeEntityCreateRequest creates the MergeEntity request.
func (*TableClient) Pipeline ¶ added in v1.1.0
func (t *TableClient) Pipeline() runtime.Pipeline
func (*TableClient) Query ¶
func (client *TableClient) Query(ctx context.Context, options *TableClientQueryOptions, queryOptions *QueryOptions) (TableClientQueryResponse, error)
Query - Queries tables under the given account. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2019-02-02
- options - TableClientQueryOptions contains the optional parameters for the TableClient.Query method.
- QueryOptions - QueryOptions contains a group of parameters for the TableClient.Query method.
func (*TableClient) QueryEntities ¶
func (client *TableClient) QueryEntities(ctx context.Context, table string, options *TableClientQueryEntitiesOptions, queryOptions *QueryOptions) (TableClientQueryEntitiesResponse, error)
QueryEntities - Queries entities in a table. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2019-02-02
- table - The name of the table.
- options - TableClientQueryEntitiesOptions contains the optional parameters for the TableClient.QueryEntities method.
- QueryOptions - QueryOptions contains a group of parameters for the TableClient.Query method.
func (*TableClient) QueryEntityWithPartitionAndRowKey ¶
func (client *TableClient) QueryEntityWithPartitionAndRowKey(ctx context.Context, table string, partitionKey string, rowKey string, options *TableClientQueryEntityWithPartitionAndRowKeyOptions, queryOptions *QueryOptions) (TableClientQueryEntityWithPartitionAndRowKeyResponse, error)
QueryEntityWithPartitionAndRowKey - Queries a single entity in a table. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2019-02-02
- table - The name of the table.
- partitionKey - The partition key of the entity.
- rowKey - The row key of the entity.
- options - TableClientQueryEntityWithPartitionAndRowKeyOptions contains the optional parameters for the TableClient.QueryEntityWithPartitionAndRowKey method.
- QueryOptions - QueryOptions contains a group of parameters for the TableClient.Query method.
func (*TableClient) SetAccessPolicy ¶
func (client *TableClient) SetAccessPolicy(ctx context.Context, table string, options *TableClientSetAccessPolicyOptions) (TableClientSetAccessPolicyResponse, error)
SetAccessPolicy - Sets stored access policies for the table that may be used with Shared Access Signatures. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2019-02-02
- table - The name of the table.
- options - TableClientSetAccessPolicyOptions contains the optional parameters for the TableClient.SetAccessPolicy method.
func (*TableClient) Tracer ¶ added in v1.1.0
func (t *TableClient) Tracer() tracing.Tracer
func (*TableClient) UpdateEntity ¶
func (client *TableClient) UpdateEntity(ctx context.Context, table string, partitionKey string, rowKey string, options *TableClientUpdateEntityOptions, queryOptions *QueryOptions) (TableClientUpdateEntityResponse, error)
UpdateEntity - Update entity in a table. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2019-02-02
- table - The name of the table.
- partitionKey - The partition key of the entity.
- rowKey - The row key of the entity.
- options - TableClientUpdateEntityOptions contains the optional parameters for the TableClient.UpdateEntity method.
- QueryOptions - QueryOptions contains a group of parameters for the TableClient.Query method.
func (*TableClient) UpdateEntityCreateRequest ¶
func (client *TableClient) UpdateEntityCreateRequest(ctx context.Context, table string, partitionKey string, rowKey string, options *TableClientUpdateEntityOptions, queryOptions *QueryOptions) (*policy.Request, error)
updateEntityCreateRequest creates the UpdateEntity request.
type TableClientCreateOptions ¶ added in v0.5.0
type TableClientCreateOptions struct { // Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when analytics // logging is enabled. RequestID *string // Specifies whether the response should include the inserted entity in the payload. Possible values are return-no-content // and return-content. ResponsePreference *ResponseFormat }
TableClientCreateOptions contains the optional parameters for the TableClient.Create method.
type TableClientCreateResponse ¶ added in v0.5.0
type TableClientCreateResponse struct { // The response for a single table. TableResponse // ClientRequestID contains the information returned from the x-ms-client-request-id header response. ClientRequestID *string // Date contains the information returned from the Date header response. Date *time.Time // PreferenceApplied contains the information returned from the Preference-Applied header response. PreferenceApplied *string // RequestID contains the information returned from the x-ms-request-id header response. RequestID *string // Version contains the information returned from the x-ms-version header response. Version *string }
TableClientCreateResponse contains the response from method TableClient.Create.
type TableClientDeleteEntityOptions ¶ added in v0.5.0
type TableClientDeleteEntityOptions struct { // Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when analytics // logging is enabled. RequestID *string // The timeout parameter is expressed in seconds. Timeout *int32 }
TableClientDeleteEntityOptions contains the optional parameters for the TableClient.DeleteEntity method.
type TableClientDeleteEntityResponse ¶ added in v0.5.0
type TableClientDeleteEntityResponse struct { // ClientRequestID contains the information returned from the x-ms-client-request-id header response. ClientRequestID *string // Date contains the information returned from the Date header response. Date *time.Time // RequestID contains the information returned from the x-ms-request-id header response. RequestID *string // Version contains the information returned from the x-ms-version header response. Version *string }
TableClientDeleteEntityResponse contains the response from method TableClient.DeleteEntity.
type TableClientDeleteOptions ¶ added in v0.5.0
type TableClientDeleteOptions struct { // Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when analytics // logging is enabled. RequestID *string }
TableClientDeleteOptions contains the optional parameters for the TableClient.Delete method.
type TableClientDeleteResponse ¶ added in v0.5.0
type TableClientDeleteResponse struct { // ClientRequestID contains the information returned from the x-ms-client-request-id header response. ClientRequestID *string // Date contains the information returned from the Date header response. Date *time.Time // RequestID contains the information returned from the x-ms-request-id header response. RequestID *string // Version contains the information returned from the x-ms-version header response. Version *string }
TableClientDeleteResponse contains the response from method TableClient.Delete.
type TableClientGetAccessPolicyOptions ¶ added in v0.5.0
type TableClientGetAccessPolicyOptions struct { // Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when analytics // logging is enabled. RequestID *string // The timeout parameter is expressed in seconds. Timeout *int32 }
TableClientGetAccessPolicyOptions contains the optional parameters for the TableClient.GetAccessPolicy method.
type TableClientGetAccessPolicyResponse ¶ added in v0.5.0
type TableClientGetAccessPolicyResponse struct { // ClientRequestID contains the information returned from the x-ms-client-request-id header response. ClientRequestID *string // Date contains the information returned from the Date header response. Date *time.Time // RequestID contains the information returned from the x-ms-request-id header response. RequestID *string // A collection of signed identifiers. SignedIdentifiers []*SignedIdentifier `xml:"SignedIdentifier"` // Version contains the information returned from the x-ms-version header response. Version *string }
TableClientGetAccessPolicyResponse contains the response from method TableClient.GetAccessPolicy.
type TableClientInsertEntityOptions ¶ added in v0.5.0
type TableClientInsertEntityOptions struct { // Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when analytics // logging is enabled. RequestID *string // Specifies whether the response should include the inserted entity in the payload. Possible values are return-no-content // and return-content. ResponsePreference *ResponseFormat // The properties for the table entity. TableEntityProperties map[string]any // The timeout parameter is expressed in seconds. Timeout *int32 }
TableClientInsertEntityOptions contains the optional parameters for the TableClient.InsertEntity method.
type TableClientInsertEntityResponse ¶ added in v0.5.0
type TableClientInsertEntityResponse struct { // ClientRequestID contains the information returned from the x-ms-client-request-id header response. ClientRequestID *string // ContentType contains the information returned from the Content-Type header response. ContentType *string // Date contains the information returned from the Date header response. Date *time.Time // ETag contains the information returned from the ETag header response. ETag *string // PreferenceApplied contains the information returned from the Preference-Applied header response. PreferenceApplied *string // RequestID contains the information returned from the x-ms-request-id header response. RequestID *string // The other properties of the table entity. Value map[string]any // Version contains the information returned from the x-ms-version header response. Version *string }
TableClientInsertEntityResponse contains the response from method TableClient.InsertEntity.
type TableClientMergeEntityOptions ¶ added in v0.5.0
type TableClientMergeEntityOptions struct { // 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. IfMatch *string // Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when analytics // logging is enabled. RequestID *string // The properties for the table entity. TableEntityProperties map[string]any // The timeout parameter is expressed in seconds. Timeout *int32 }
TableClientMergeEntityOptions contains the optional parameters for the TableClient.MergeEntity method.
type TableClientMergeEntityResponse ¶ added in v0.5.0
type TableClientMergeEntityResponse struct { // ClientRequestID contains the information returned from the x-ms-client-request-id header response. ClientRequestID *string // Date contains the information returned from the Date header response. Date *time.Time // ETag contains the information returned from the ETag header response. ETag *string // RequestID contains the information returned from the x-ms-request-id header response. RequestID *string // Version contains the information returned from the x-ms-version header response. Version *string }
TableClientMergeEntityResponse contains the response from method TableClient.MergeEntity.
type TableClientQueryEntitiesOptions ¶ added in v0.5.0
type TableClientQueryEntitiesOptions struct { // An entity query continuation token from a previous call. NextPartitionKey *string // An entity query continuation token from a previous call. NextRowKey *string // Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when analytics // logging is enabled. RequestID *string // The timeout parameter is expressed in seconds. Timeout *int32 }
TableClientQueryEntitiesOptions contains the optional parameters for the TableClient.QueryEntities method.
type TableClientQueryEntitiesResponse ¶ added in v0.5.0
type TableClientQueryEntitiesResponse struct { // The properties for the table entity query response. TableEntityQueryResponse // ClientRequestID contains the information returned from the x-ms-client-request-id header response. ClientRequestID *string // Date contains the information returned from the Date header response. Date *time.Time // RequestID contains the information returned from the x-ms-request-id header response. RequestID *string // Version contains the information returned from the x-ms-version header response. Version *string // XMSContinuationNextPartitionKey contains the information returned from the x-ms-continuation-NextPartitionKey header response. XMSContinuationNextPartitionKey *string // XMSContinuationNextRowKey contains the information returned from the x-ms-continuation-NextRowKey header response. XMSContinuationNextRowKey *string }
TableClientQueryEntitiesResponse contains the response from method TableClient.QueryEntities.
type TableClientQueryEntityWithPartitionAndRowKeyOptions ¶ added in v0.5.0
type TableClientQueryEntityWithPartitionAndRowKeyOptions struct { // Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when analytics // logging is enabled. RequestID *string // The timeout parameter is expressed in seconds. Timeout *int32 }
TableClientQueryEntityWithPartitionAndRowKeyOptions contains the optional parameters for the TableClient.QueryEntityWithPartitionAndRowKey method.
type TableClientQueryEntityWithPartitionAndRowKeyResponse ¶ added in v0.5.0
type TableClientQueryEntityWithPartitionAndRowKeyResponse struct { // ClientRequestID contains the information returned from the x-ms-client-request-id header response. ClientRequestID *string // Date contains the information returned from the Date header response. Date *time.Time // ETag contains the information returned from the ETag header response. ETag *string // RequestID contains the information returned from the x-ms-request-id header response. RequestID *string // The other properties of the table entity. Value map[string]any // Version contains the information returned from the x-ms-version header response. Version *string // XMSContinuationNextPartitionKey contains the information returned from the x-ms-continuation-NextPartitionKey header response. XMSContinuationNextPartitionKey *string // XMSContinuationNextRowKey contains the information returned from the x-ms-continuation-NextRowKey header response. XMSContinuationNextRowKey *string }
TableClientQueryEntityWithPartitionAndRowKeyResponse contains the response from method TableClient.QueryEntityWithPartitionAndRowKey.
type TableClientQueryOptions ¶ added in v0.5.0
type TableClientQueryOptions struct { // A table query continuation token from a previous call. NextTableName *string // Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when analytics // logging is enabled. RequestID *string }
TableClientQueryOptions contains the optional parameters for the TableClient.Query method.
type TableClientQueryResponse ¶ added in v0.5.0
type TableClientQueryResponse struct { // The properties for the table query response. TableQueryResponse // ClientRequestID contains the information returned from the x-ms-client-request-id header response. ClientRequestID *string // Date contains the information returned from the Date header response. Date *time.Time // RequestID contains the information returned from the x-ms-request-id header response. RequestID *string // Version contains the information returned from the x-ms-version header response. Version *string // XMSContinuationNextTableName contains the information returned from the x-ms-continuation-NextTableName header response. XMSContinuationNextTableName *string }
TableClientQueryResponse contains the response from method TableClient.Query.
type TableClientSetAccessPolicyOptions ¶ added in v0.5.0
type TableClientSetAccessPolicyOptions struct { // Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when analytics // logging is enabled. RequestID *string // The acls for the table. TableACL []*SignedIdentifier // The timeout parameter is expressed in seconds. Timeout *int32 }
TableClientSetAccessPolicyOptions contains the optional parameters for the TableClient.SetAccessPolicy method.
type TableClientSetAccessPolicyResponse ¶ added in v0.5.0
type TableClientSetAccessPolicyResponse struct { // ClientRequestID contains the information returned from the x-ms-client-request-id header response. ClientRequestID *string // Date contains the information returned from the Date header response. Date *time.Time // RequestID contains the information returned from the x-ms-request-id header response. RequestID *string // Version contains the information returned from the x-ms-version header response. Version *string }
TableClientSetAccessPolicyResponse contains the response from method TableClient.SetAccessPolicy.
type TableClientUpdateEntityOptions ¶ added in v0.5.0
type TableClientUpdateEntityOptions struct { // 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. IfMatch *string // Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when analytics // logging is enabled. RequestID *string // The properties for the table entity. TableEntityProperties map[string]any // The timeout parameter is expressed in seconds. Timeout *int32 }
TableClientUpdateEntityOptions contains the optional parameters for the TableClient.UpdateEntity method.
type TableClientUpdateEntityResponse ¶ added in v0.5.0
type TableClientUpdateEntityResponse struct { // ClientRequestID contains the information returned from the x-ms-client-request-id header response. ClientRequestID *string // Date contains the information returned from the Date header response. Date *time.Time // ETag contains the information returned from the ETag header response. ETag *string // RequestID contains the information returned from the x-ms-request-id header response. RequestID *string // Version contains the information returned from the x-ms-version header response. Version *string }
TableClientUpdateEntityResponse contains the response from method TableClient.UpdateEntity.
type TableEntityQueryResponse ¶
type TableEntityQueryResponse struct { // The metadata response of the table. ODataMetadata *string // List of table entities. Value []map[string]any }
TableEntityQueryResponse - The properties for the table entity query response.
func (TableEntityQueryResponse) MarshalJSON ¶
func (t TableEntityQueryResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type TableEntityQueryResponse.
func (*TableEntityQueryResponse) UnmarshalJSON ¶ added in v1.1.0
func (t *TableEntityQueryResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type TableEntityQueryResponse.
type TableProperties ¶
type TableProperties struct { // The name of the table to create. TableName *string }
TableProperties - The properties for creating a table.
func (TableProperties) MarshalJSON ¶ added in v1.1.0
func (t TableProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type TableProperties.
func (*TableProperties) UnmarshalJSON ¶ added in v1.1.0
func (t *TableProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type TableProperties.
type TableQueryResponse ¶
type TableQueryResponse struct { // The metadata response of the table. ODataMetadata *string // List of tables. Value []*TableResponseProperties }
TableQueryResponse - The properties for the table query response.
func (TableQueryResponse) MarshalJSON ¶
func (t TableQueryResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type TableQueryResponse.
func (*TableQueryResponse) UnmarshalJSON ¶ added in v1.1.0
func (t *TableQueryResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type TableQueryResponse.
type TableResponse ¶
type TableResponse struct { // The edit link of the table. ODataEditLink *string // The id of the table. ODataID *string // The metadata response of the table. ODataMetadata *string // The odata type of the table. ODataType *string // The name of the table. TableName *string }
TableResponse - The response for a single table.
func (TableResponse) MarshalJSON ¶ added in v1.1.0
func (t TableResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type TableResponse.
func (*TableResponse) UnmarshalJSON ¶ added in v1.1.0
func (t *TableResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type TableResponse.
type TableResponseProperties ¶
type TableResponseProperties struct { // The edit link of the table. ODataEditLink *string // The id of the table. ODataID *string // The odata type of the table. ODataType *string // The name of the table. TableName *string }
TableResponseProperties - The properties for the table response.
func (TableResponseProperties) MarshalJSON ¶ added in v1.1.0
func (t TableResponseProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type TableResponseProperties.
func (*TableResponseProperties) UnmarshalJSON ¶ added in v1.1.0
func (t *TableResponseProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type TableResponseProperties.
type TableServiceError ¶
type TableServiceError struct { // The error message. Message *string }
TableServiceError - Table Service error.
func (TableServiceError) MarshalJSON ¶ added in v1.1.0
func (t TableServiceError) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type TableServiceError.
func (*TableServiceError) UnmarshalJSON ¶ added in v1.1.0
func (t *TableServiceError) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type TableServiceError.
type TableServiceProperties ¶
type TableServiceProperties struct { // The set of CORS rules. Cors []*CorsRule `xml:"Cors>CorsRule"` // A summary of request statistics grouped by API in hourly aggregates for tables. HourMetrics *Metrics `xml:"HourMetrics"` // Azure Analytics Logging settings. Logging *Logging `xml:"Logging"` // A summary of request statistics grouped by API in minute aggregates for tables. MinuteMetrics *Metrics `xml:"MinuteMetrics"` }
TableServiceProperties - Table Service Properties.
func (TableServiceProperties) MarshalXML ¶
func (t TableServiceProperties) MarshalXML(enc *xml.Encoder, start xml.StartElement) error
MarshalXML implements the xml.Marshaller interface for type TableServiceProperties.
type TableServiceStats ¶
type TableServiceStats struct { // Geo-Replication information for the Secondary Storage Service. GeoReplication *GeoReplication `xml:"GeoReplication"` }
TableServiceStats - Stats for the service.