diff --git a/assets/ExpressionMetadata.json b/assets/ExpressionMetadata.json index cce577484..bb50d0e1f 100644 --- a/assets/ExpressionMetadata.json +++ b/assets/ExpressionMetadata.json @@ -247,6 +247,18 @@ "minimumArguments": 2, "maximumArguments": 2 }, + { + "name": "listAccountSas", + "expectedUsage": "listAccountSas(resourceName\/resourceIdentifier, apiVersion, requestContent)", + "description": "Creates and returns a SAS token with the specified permissions and expiry from the requestContent. The requestContent object must contain the signedServices, signedResourceTypes, signedPermission and signedExpiry properties.", + "minimumArguments": 3, + "maximumArguments": 3, + "returnValueMembers": [ + { + "name": "accountSasToken" + } + ] + }, { "name": "listKeys", "expectedUsage": "listKeys(resourceName\/resourceIdentifier, apiVersion)", @@ -261,7 +273,7 @@ }, { "name": "listPackage", - "expectedUsage": "listPackage(resourceId, apiVersion)", + "expectedUsage": "listPackage(resourceName\/resourceIdentifier, apiVersion)", "description": "Lists the virtual network gateway package. The resourceId can be specified by using the resourceId function or by using the format providerNamespace/resourceType/resourceName.", "minimumArguments": 2, "maximumArguments": 2 diff --git a/test/AzureRMAssets.test.ts b/test/AzureRMAssets.test.ts index 3ce2a6b0d..67796dfe3 100644 --- a/test/AzureRMAssets.test.ts +++ b/test/AzureRMAssets.test.ts @@ -184,7 +184,7 @@ suite("AzureRMAssets", () => { }, { "name": "listPackage", - "expectedUsage": "listPackage(resourceId, apiVersion)", + "expectedUsage": "listPackage(resourceName\/resourceIdentifier, apiVersion)", "minimumArguments": 2, "maximumArguments": 2 }, diff --git a/test/PositionContext.test.ts b/test/PositionContext.test.ts index d7dca601f..266d17f60 100644 --- a/test/PositionContext.test.ts +++ b/test/PositionContext.test.ts @@ -578,7 +578,7 @@ suite("PositionContext", () => { } function listPackageCompletion(startIndex: number, length: number): Completion.Item { - return new Completion.Item("listPackage", "listPackage($0)", new language.Span(startIndex, length), "(function) listPackage(resourceId, apiVersion)", "Lists the virtual network gateway package. The resourceId can be specified by using the resourceId function or by using the format providerNamespace/resourceType/resourceName.", Completion.CompletionKind.Function); + return new Completion.Item("listPackage", "listPackage($0)", new language.Span(startIndex, length), "(function) listPackage(resourceName\/resourceIdentifier, apiVersion)", "Lists the virtual network gateway package. The resourceId can be specified by using the resourceId function or by using the format providerNamespace/resourceType/resourceName.", Completion.CompletionKind.Function); } function modCompletion(startIndex: number, length: number): Completion.Item {