ArgumentValidator class
Constructors
Argument |
Properties
blob |
|
blob |
|
container |
|
func | |
is |
|
page |
|
queue |
|
share |
|
table |
Methods
Constructor Details
ArgumentValidator(string)
new ArgumentValidator(functionName: string)
Parameters
- functionName
-
string
Property Details
blobNameIsValid
blobNameIsValid: (containerName: string, blobName: string, callback?: Function) => boolean
Property Value
(containerName: string, blobName: string, callback?: Function) => boolean
blobTypeIsValid
blobTypeIsValid: (shareName: string, callback?: Function) => boolean
Property Value
(shareName: string, callback?: Function) => boolean
containerNameIsValid
containerNameIsValid: (containerName: string, callback?: Function) => boolean
Property Value
(containerName: string, callback?: Function) => boolean
func
func: string
Property Value
string
isValidEnumValue
isValidEnumValue: (value: string, list: string[], callback?: Function) => boolean
Property Value
(value: string, list: string[], callback?: Function) => boolean
pageRangesAreValid
pageRangesAreValid: (rangeStart: number, rangeEnd: number, writeBlockSizeInBytes: number, callback?: Function) => boolean
Property Value
(rangeStart: number, rangeEnd: number, writeBlockSizeInBytes: number, callback?: Function) => boolean
queueNameIsValid
queueNameIsValid: (queueName: string, callback?: Function) => boolean
Property Value
(queueName: string, callback?: Function) => boolean
shareNameIsValid
shareNameIsValid: (shareName: string, callback?: Function) => boolean
Property Value
(shareName: string, callback?: Function) => boolean
tableNameIsValid
tableNameIsValid: (tableName: string, callback?: Function) => boolean
Property Value
(tableName: string, callback?: Function) => boolean
Method Details
callback(any)
function callback(val: any)
Parameters
- val
-
any
exists(any, string)
function exists(val: any, name: string)
Parameters
- val
-
any
- name
-
string
function(any, string)
function function(val: any, name: string)
Parameters
- val
-
any
- name
-
string
nonEmptyArray<T>(T[], string)
function nonEmptyArray<T>(val: T[], name: string)
Parameters
- val
-
T[]
- name
-
string
object(any, string)
function object(val: any, name: string)
Parameters
- val
-
any
- name
-
string
string(any, string)
function string(val: any, name: string)
Parameters
- val
-
any
- name
-
string
stringAllowEmpty(any, string)
function stringAllowEmpty(val: any, name: string)
Parameters
- val
-
any
- name
-
string
test(() => boolean, string)
function test(predicate: () => boolean, message: string)
Parameters
- predicate
-
() => boolean
- message
-
string
value(any, string)
function value(val: any, name: string)
Parameters
- val
-
any
- name
-
string
Azure SDK for JavaScript
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for