// Code generated by azure-service-operator-codegen. DO NOT EDIT.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
package arm

import "github.com/Azure/azure-service-operator/v2/pkg/genruntime"

type StorageAccountsTableServicesTable_Spec struct {
	Name string `json:"name,omitempty"`

	// Properties: Table resource properties.
	Properties *TableProperties `json:"properties,omitempty"`
}

var _ genruntime.ARMResourceSpec = &StorageAccountsTableServicesTable_Spec{}

// GetAPIVersion returns the ARM API version of the resource. This is always "2023-01-01"
func (table StorageAccountsTableServicesTable_Spec) GetAPIVersion() string {
	return "2023-01-01"
}

// GetName returns the Name of the resource
func (table *StorageAccountsTableServicesTable_Spec) GetName() string {
	return table.Name
}

// GetType returns the ARM Type of the resource. This is always "Microsoft.Storage/storageAccounts/tableServices/tables"
func (table *StorageAccountsTableServicesTable_Spec) GetType() string {
	return "Microsoft.Storage/storageAccounts/tableServices/tables"
}

type TableProperties struct {
	// SignedIdentifiers: List of stored access policies specified on the table.
	SignedIdentifiers []TableSignedIdentifier `json:"signedIdentifiers"`
}

// Object to set Table Access Policy.
type TableSignedIdentifier struct {
	// AccessPolicy: Access policy
	AccessPolicy *TableAccessPolicy `json:"accessPolicy,omitempty"`

	// Id: unique-64-character-value of the stored access policy.
	Id *string `json:"id,omitempty"`
}

// Table Access Policy Properties Object.
type TableAccessPolicy struct {
	// ExpiryTime: Expiry time of the access policy
	ExpiryTime *string `json:"expiryTime,omitempty"`

	// Permission: Required. List of abbreviated permissions. Supported permission values include 'r','a','u','d'
	Permission *string `json:"permission,omitempty"`

	// StartTime: Start time of the access policy
	StartTime *string `json:"startTime,omitempty"`
}
