Skip to content

Commit

Permalink
feat: implement az spec (#2146)
Browse files Browse the repository at this point in the history
Signed-off-by: cpendery <[email protected]>
Co-authored-by: Grant Gurvis <[email protected]>
  • Loading branch information
cpendery and grant0417 authored Nov 30, 2023
1 parent d07ba87 commit 0ba832d
Show file tree
Hide file tree
Showing 230 changed files with 526,668 additions and 0 deletions.
1,219 changes: 1,219 additions & 0 deletions src/az/2.53.0.ts

Large diffs are not rendered by default.

861 changes: 861 additions & 0 deletions src/az/2.53.0/account.ts

Large diffs are not rendered by default.

6,390 changes: 6,390 additions & 0 deletions src/az/2.53.0/acr.ts

Large diffs are not rendered by default.

1,940 changes: 1,940 additions & 0 deletions src/az/2.53.0/ad.ts

Large diffs are not rendered by default.

1,044 changes: 1,044 additions & 0 deletions src/az/2.53.0/adp.ts

Large diffs are not rendered by default.

187 changes: 187 additions & 0 deletions src/az/2.53.0/advisor.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,187 @@
const completion: Fig.Spec = {
name: "advisor",
description: "Manage Azure Advisor",
subcommands: [
{
name: "configuration",
description: "Manage Azure Advisor configuration",
subcommands: [
{
name: "list",
description:
"List Azure Advisor configuration for the entire subscription",
},
{
name: "show",
description:
"Show Azure Advisor configuration for the given subscription or resource group",
options: [
{
name: ["--resource-group", "-g"],
description:
"Name of resource group. You can configure the default group using az configure --defaults group=<name>",
args: { name: "resource-group" },
},
],
},
{
name: "update",
description: "Update Azure Advisor configuration",
options: [
{
name: "--add",
description:
"Add an object to a list of objects by specifying a path and key value pairs. Example: --add property.listProperty <key=value, string or JSON string>",
args: { name: "add" },
},
{
name: "--configuration-name",
description:
'Advisor configuration name. Value must be "default"',
args: { name: "configuration-name" },
},
{
name: ["--exclude", "-e"],
description: "Exclude from recommendation generation",
args: { name: "exclude" },
},
{
name: "--force-string",
description:
"When using 'set' or 'add', preserve string literals instead of attempting to convert to JSON",
},
{
name: ["--include", "-i"],
description: "Include in recommendation generation",
args: { name: "include" },
},
{
name: ["--low-cpu-threshold", "-l"],
description: "Value for low CPU threshold",
args: {
name: "low-cpu-threshold",
suggestions: ["10", "15", "20", "5"],
},
},
{
name: "--remove",
description:
"Remove a property or an element from a list. Example: --remove property.list OR --remove propertyToRemove",
args: { name: "remove" },
},
{
name: ["--resource-group", "-g"],
description:
"Name of resource group. You can configure the default group using az configure --defaults group=<name>",
args: { name: "resource-group" },
},
{
name: "--set",
description:
"Update an object by specifying a property path and value to set. Example: --set property1.property2=",
args: { name: "set" },
},
],
},
],
},
{
name: "recommendation",
description: "Review Azure Advisor recommendations",
subcommands: [
{
name: "disable",
description: "Disable Azure Advisor recommendations",
options: [
{
name: ["--days", "-d"],
description:
"Number of days to disable. If not specified, the recommendation is disabled forever",
args: { name: "days" },
},
{
name: "--ids",
description:
'One or more resource IDs (space-delimited). If provided, no other "Resource Id" arguments should be specified',
args: { name: "ids" },
},
{
name: ["--name", "-n"],
description:
"The name of the recommendation as output by the list command",
args: { name: "name" },
},
{
name: ["--resource-group", "-g"],
description:
"Name of resource group. You can configure the default group using az configure --defaults group=<name>",
args: { name: "resource-group" },
},
],
},
{
name: "enable",
description: "Enable Azure Advisor recommendations",
options: [
{
name: "--ids",
description:
'One or more resource IDs (space-delimited). If provided, no other "Resource Id" arguments should be specified',
args: { name: "ids" },
},
{
name: ["--name", "-n"],
description:
"The name of the recommendation as output by the list command",
args: { name: "name" },
},
{
name: ["--resource-group", "-g"],
description:
"Name of resource group. You can configure the default group using az configure --defaults group=<name>",
args: { name: "resource-group" },
},
],
},
{
name: "list",
description: "List Azure Advisor recommendations",
options: [
{
name: ["--category", "-c"],
description: "Name of recommendation category",
args: {
name: "category",
suggestions: [
"Cost",
"HighAvailability",
"Performance",
"Security",
],
},
},
{
name: "--ids",
description:
'One or more resource IDs (space-delimited). If provided, no other "Resource Id" arguments should be specified',
args: { name: "ids" },
},
{
name: ["--refresh", "-r"],
description: "Generate new recommendations",
args: { name: "refresh" },
},
{
name: ["--resource-group", "-g"],
description:
"Name of resource group. You can configure the default group using az configure --defaults group=<name>",
args: { name: "resource-group" },
},
],
},
],
},
],
};

export default completion;
Loading

0 comments on commit 0ba832d

Please sign in to comment.