зеркало из https://github.com/Azure/autorest.az.git
Merge branch 'master' into gen-example-in-help
This commit is contained in:
Коммит
746867d76d
|
@ -62,8 +62,8 @@ export interface CodeModelAz
|
|||
Option_PathSwagger: string;
|
||||
Option_EnumValues: string[];
|
||||
Option_IsHidden: boolean;
|
||||
Option_IsFlattened: boolean
|
||||
|
||||
Option_IsFlattened: boolean;
|
||||
|
||||
SelectFirstMethod(): boolean;
|
||||
SelectNextMethod(): boolean;
|
||||
|
||||
|
@ -76,14 +76,19 @@ export interface CodeModelAz
|
|||
SelectNextMethodParameter(): boolean;
|
||||
|
||||
MethodParameter_Name: string;
|
||||
MethodParameter_NamePython: string
|
||||
MethodParameter_MapsTo: string;
|
||||
MethodParameter_Description: string;
|
||||
MethodParameter_Type: string;
|
||||
MethodParameter_IsList: boolean;
|
||||
MethodParameter: any;
|
||||
MethodParameter_In: string;
|
||||
MethodParameter_IsHidden: boolean;
|
||||
MethodParameter_IsRequired: boolean;
|
||||
MethodParameter_IsFlattened: boolean
|
||||
MethodParameter_IsFlattened: boolean;
|
||||
MethodParameter_RequiredByMethod: boolean;
|
||||
MethodParameter_EnumValues: string[];
|
||||
|
||||
|
||||
|
||||
GetModuleOperationName(): string;
|
||||
|
|
|
@ -27,7 +27,7 @@ export class CodeModelCliImpl implements CodeModelAz
|
|||
|
||||
async init() {
|
||||
this.options = await this.session.getValue('az');
|
||||
this.extensionName = await this.options['extensions'];
|
||||
this.extensionName = this.options['extensions'];
|
||||
this.currentOperationGroupIndex = -1;
|
||||
this.currentOperationIndex = -1;
|
||||
this.currentParameterIndex = -1;
|
||||
|
@ -42,6 +42,7 @@ export class CodeModelCliImpl implements CodeModelAz
|
|||
{
|
||||
this.codeModel = session.model;
|
||||
this.sortOperationByAzCommand();
|
||||
this.calcOptionRequiredByMethod();
|
||||
}
|
||||
|
||||
private getOrder(op: string) {
|
||||
|
@ -52,6 +53,7 @@ export class CodeModelCliImpl implements CodeModelAz
|
|||
}
|
||||
return order.toLocaleString();
|
||||
}
|
||||
|
||||
private sortOperationByAzCommand() {
|
||||
for(let [idx, operationGroup] of this.codeModel.operationGroups.entries()) {
|
||||
operationGroup.operations.sort((a, b) => {
|
||||
|
@ -63,6 +65,55 @@ export class CodeModelCliImpl implements CodeModelAz
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
private calcOptionRequiredByMethod() {
|
||||
if(this.SelectFirstCommandGroup()) {
|
||||
do {
|
||||
if(this.SelectFirstCommand()) {
|
||||
do {
|
||||
var paramTime = 0;
|
||||
if(this.SelectFirstMethod()) {
|
||||
let paramRequired: Map<string, number> = new Map<string, number>();
|
||||
paramTime++;
|
||||
if(this.SelectFirstMethodParameter()) {
|
||||
do {
|
||||
paramRequired.set(this.MethodParameter_Name, this.MethodParameter_IsRequired? 1: 0);
|
||||
} while(this.SelectNextMethodParameter());
|
||||
}
|
||||
while(this.SelectNextMethod()) {
|
||||
paramTime++;
|
||||
if(this.SelectFirstMethodParameter()) {
|
||||
do {
|
||||
if(!paramRequired.has(this.MethodParameter_Name)) {
|
||||
paramRequired.set(this.MethodParameter_Name, this.MethodParameter_IsRequired? 1: 0);
|
||||
} else if(this.MethodParameter_IsRequired){
|
||||
paramRequired.set(this.MethodParameter_Name, paramRequired.get(this.MethodParameter_Name) + 1);
|
||||
}
|
||||
} while(this.SelectNextMethodParameter());
|
||||
}
|
||||
}
|
||||
if(this.SelectFirstMethod()) {
|
||||
if(this.SelectFirstMethodParameter()) {
|
||||
do {
|
||||
this.codeModel.operationGroups[this.currentOperationGroupIndex].operations[this.currentMethodIndex].request.parameters[this.currentParameterIndex]['RequiredByMethod'] = paramRequired.get(this.MethodParameter_Name) == paramTime? true: false;
|
||||
} while(this.SelectNextMethodParameter());
|
||||
}
|
||||
while(this.SelectNextMethod()) {
|
||||
if(this.SelectFirstMethodParameter()) {
|
||||
do {
|
||||
this.codeModel.operationGroups[this.currentOperationGroupIndex].operations[this.currentMethodIndex].request.parameters[this.currentParameterIndex]['RequiredByMethod'] = paramRequired.get(this.MethodParameter_Name) == paramTime? true: false;
|
||||
} while(this.SelectNextMethodParameter());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
} while(this.SelectNextCommand());
|
||||
}
|
||||
} while (this.SelectNextCommandGroup());
|
||||
}
|
||||
//this.session.message({Channel:Channel.Warning, Text:serialize(this.codeModel)});
|
||||
}
|
||||
//=================================================================================================================
|
||||
// Extension level information
|
||||
// autorest.az will have support for multiple extensions from single swagger file.
|
||||
|
@ -161,7 +212,7 @@ export class CodeModelCliImpl implements CodeModelAz
|
|||
|
||||
public get CommandGroup_Name(): string
|
||||
{
|
||||
return this.extensionName + " " + ToSnakeCase(this.codeModel.operationGroups[this.currentOperationGroupIndex].$key);
|
||||
return this.codeModel.operationGroups[this.currentOperationGroupIndex].language['az'].command;
|
||||
}
|
||||
|
||||
public get CommandGroup_Help(): string
|
||||
|
@ -220,6 +271,13 @@ export class CodeModelCliImpl implements CodeModelAz
|
|||
if(this.codeModel.operationGroups[this.currentOperationGroupIndex].operations.length > 0) {
|
||||
this.currentOperationIndex = 0;
|
||||
this.preMethodIndex = this.currentOperationIndex;
|
||||
while(this.currentOperationIndex + 1 < this.codeModel.operationGroups[this.currentOperationGroupIndex].operations.length) {
|
||||
if(this.codeModel.operationGroups[this.currentOperationGroupIndex].operations[this.currentOperationIndex + 1].language['az'].command == this.codeModel.operationGroups[this.currentOperationGroupIndex].operations[this.currentOperationIndex].language['az'].command) {
|
||||
this.currentOperationIndex++;
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
}
|
||||
this.SelectFirstOption();
|
||||
this.SelectFirstMethod();
|
||||
this.SelectFirstMethodParameter();
|
||||
|
@ -254,7 +312,7 @@ export class CodeModelCliImpl implements CodeModelAz
|
|||
|
||||
public get Command_FunctionName()
|
||||
{
|
||||
return this.Command_Name.replace(/ /g, "_");
|
||||
return this.Command_Name.replace(/( |-)/g, "_");
|
||||
}
|
||||
|
||||
public get Command_Name(): string
|
||||
|
@ -287,7 +345,7 @@ export class CodeModelCliImpl implements CodeModelAz
|
|||
this.currentParameterIndex = 0;
|
||||
let parameter = this.codeModel.operationGroups[this.currentOperationGroupIndex].operations[this.currentOperationIndex].request.parameters[this.currentParameterIndex]
|
||||
const currentParameterName = parameter.language['az'].name;
|
||||
if(parameter.hidden || currentParameterName == "subscription_id" || currentParameterName == "api_version" || currentParameterName == "$host") {
|
||||
if(parameter.hidden || parameter.protocol?.http?.in == ParameterLocation.Header || currentParameterName == "subscription_id" || currentParameterName == "api_version" || currentParameterName == "$host") {
|
||||
if(this.SelectNextOption()) {
|
||||
return true;
|
||||
} else {
|
||||
|
@ -336,7 +394,7 @@ export class CodeModelCliImpl implements CodeModelAz
|
|||
this.currentParameterIndex++;
|
||||
let parameter = this.codeModel.operationGroups[this.currentOperationGroupIndex].operations[this.currentOperationIndex].request.parameters[this.currentParameterIndex];
|
||||
const currentParameterName = parameter.language['az'].name;
|
||||
if(parameter.hidden || currentParameterName == "subscription_id" || currentParameterName == "api_version" || currentParameterName == "$host") {
|
||||
if(parameter.hidden || parameter.protocol?.http?.in == ParameterLocation.Header || currentParameterName == "subscription_id" || currentParameterName == "api_version" || currentParameterName == "$host") {
|
||||
if(this.SelectNextOption()) {
|
||||
return true;
|
||||
} else {
|
||||
|
@ -496,6 +554,7 @@ export class CodeModelCliImpl implements CodeModelAz
|
|||
{
|
||||
if(this.currentOperationIndex >= this.preMethodIndex) {
|
||||
this.currentMethodIndex = this.preMethodIndex;
|
||||
this.SelectFirstMethodParameter();
|
||||
return true;
|
||||
} else {
|
||||
this.currentMethodIndex = -1;
|
||||
|
@ -507,6 +566,7 @@ export class CodeModelCliImpl implements CodeModelAz
|
|||
{
|
||||
if(this.currentMethodIndex < this.currentOperationIndex) {
|
||||
this.currentMethodIndex++;
|
||||
this.SelectFirstMethodParameter();
|
||||
return true;
|
||||
} else {
|
||||
this.currentMethodIndex = -1;
|
||||
|
@ -559,7 +619,7 @@ export class CodeModelCliImpl implements CodeModelAz
|
|||
this.currentParameterIndex = 0;
|
||||
let parameter = this.codeModel.operationGroups[this.currentOperationGroupIndex].operations[this.currentMethodIndex].request.parameters[this.currentParameterIndex];
|
||||
const currentParameterName = parameter.language['python'].name;
|
||||
if(parameter.hidden || currentParameterName == "subscription_id" || currentParameterName == "api_version" || currentParameterName == "host") {
|
||||
if(parameter.hidden || parameter.protocol?.http?.in == ParameterLocation.Header || currentParameterName == "subscription_id" || currentParameterName == "api_version" || currentParameterName == "host") {
|
||||
if(this.SelectNextMethodParameter()) {
|
||||
return true;
|
||||
} else {
|
||||
|
@ -578,7 +638,7 @@ export class CodeModelCliImpl implements CodeModelAz
|
|||
this.currentParameterIndex++;
|
||||
let parameter = this.codeModel.operationGroups[this.currentOperationGroupIndex].operations[this.currentMethodIndex].request.parameters[this.currentParameterIndex];
|
||||
const currentParameterName = parameter.language['python'].name;
|
||||
if(parameter.hidden || currentParameterName == "subscription_id" || currentParameterName == "api_version" || currentParameterName == "host") {
|
||||
if(parameter.hidden || parameter.protocol?.http?.in == ParameterLocation.Header || currentParameterName == "subscription_id" || currentParameterName == "api_version" || currentParameterName == "host") {
|
||||
if(this.SelectNextMethodParameter()) {
|
||||
return true;
|
||||
} else {
|
||||
|
@ -596,6 +656,17 @@ export class CodeModelCliImpl implements CodeModelAz
|
|||
return this.codeModel.operationGroups[this.currentOperationGroupIndex].operations[this.currentMethodIndex].request.parameters[this.currentParameterIndex].language['python'].name;
|
||||
}
|
||||
|
||||
public get MethodParameter_NamePython(): string
|
||||
{
|
||||
let parameter = this.codeModel.operationGroups[this.currentOperationGroupIndex].operations[this.currentMethodIndex].request.parameters[this.currentParameterIndex];
|
||||
if(parameter['pathToProperty']?.length == 1) {
|
||||
return (parameter['pathToProperty'][0]).language['python'].name + "_" + parameter.language['python'].name;
|
||||
} else {
|
||||
return parameter.language['python'].name;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public get MethodParameter_MapsTo(): string
|
||||
{
|
||||
let parameter = this.codeModel.operationGroups[this.currentOperationGroupIndex].operations[this.currentMethodIndex].request.parameters[this.currentParameterIndex];
|
||||
|
@ -605,6 +676,12 @@ export class CodeModelCliImpl implements CodeModelAz
|
|||
return parameter.language['python'].name;
|
||||
}
|
||||
}
|
||||
|
||||
public get MethodParameter_Description(): string
|
||||
{
|
||||
return this.codeModel.operationGroups[this.currentOperationGroupIndex].operations[this.currentMethodIndex].request.parameters[this.currentParameterIndex].language['az'].description;
|
||||
}
|
||||
|
||||
public get MethodParameter_Type(): string
|
||||
{
|
||||
return this.codeModel.operationGroups[this.currentOperationGroupIndex].operations[this.currentMethodIndex].request.parameters[this.currentParameterIndex].schema.type;
|
||||
|
@ -620,7 +697,20 @@ export class CodeModelCliImpl implements CodeModelAz
|
|||
return this.codeModel.operationGroups[this.currentOperationGroupIndex].operations[this.currentMethodIndex].request.parameters[this.currentParameterIndex];
|
||||
}
|
||||
|
||||
|
||||
public get MethodParameter_EnumValues(): string[]
|
||||
{
|
||||
let mtype = this.codeModel.operationGroups[this.currentOperationGroupIndex].operations[this.currentMethodIndex].request.parameters[this.currentParameterIndex].schema.type;
|
||||
if(mtype == SchemaType.Choice || mtype == SchemaType.SealedChoice) {
|
||||
var enumArray = [];
|
||||
let schema = this.codeModel.operationGroups[this.currentOperationGroupIndex].operations[this.currentMethodIndex].request.parameters[this.currentParameterIndex].schema;
|
||||
for(var item of schema['choices']) {
|
||||
enumArray.push(item['value']);
|
||||
}
|
||||
return enumArray;
|
||||
} else {
|
||||
return [];
|
||||
}
|
||||
}
|
||||
|
||||
public get MethodParameter_In(): string
|
||||
{
|
||||
|
@ -642,7 +732,11 @@ export class CodeModelCliImpl implements CodeModelAz
|
|||
{
|
||||
return this.codeModel.operationGroups[this.currentOperationGroupIndex].operations[this.currentMethodIndex].request.parameters[this.currentParameterIndex]['flattened']? true: false;
|
||||
}
|
||||
|
||||
|
||||
public get MethodParameter_RequiredByMethod(): boolean
|
||||
{
|
||||
return this.codeModel.operationGroups[this.currentOperationGroupIndex].operations[this.currentMethodIndex].request.parameters[this.currentParameterIndex]['RequiredByMethod'];
|
||||
}
|
||||
//=================================================================================================================
|
||||
// Top Level Python Related Information
|
||||
//
|
||||
|
|
|
@ -69,17 +69,19 @@ export function GenerateAzureCliCommands(model: CodeModelAz) : string[] {
|
|||
|
||||
function getCommandBody(model: CodeModelAz, needUpdate: boolean = false) {
|
||||
let output: string [] = [];
|
||||
if (model.Command_MethodName != "show")
|
||||
let functionName = model.Command_FunctionName;
|
||||
let methodName = model.Command_MethodName;
|
||||
if (methodName != "show")
|
||||
{
|
||||
if(needUpdate) {
|
||||
output.push(" g.custom_command('" + model.Command_MethodName.replace(/create/g, "update") + "', '" + model.Command_FunctionName.replace(/_create/g, "_update") + "')");
|
||||
output.push(" g.custom_command('" + methodName.replace(/create/g, "update") + "', '" + functionName.replace(/_create/g, "_update") + "')");
|
||||
} else {
|
||||
output.push(" g.custom_command('" + model.Command_MethodName + "', '" + model.Command_FunctionName + "')");
|
||||
output.push(" g.custom_command('" + methodName + "', '" + functionName + "')");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
output.push(" g.custom_show_command('" + model.Command_MethodName + "', '" + model.Command_FunctionName + "')");
|
||||
output.push(" g.custom_show_command('" + methodName + "', '" + functionName + "')");
|
||||
}
|
||||
return output;
|
||||
}
|
|
@ -39,7 +39,6 @@ function GenerateBody(model: CodeModelAz, required: any): string[] {
|
|||
|
||||
if (model.SelectFirstCommandGroup()) {
|
||||
do {
|
||||
//let methods: string[] = model.CommandGroup_Commands;
|
||||
if (model.SelectFirstCommand()) {
|
||||
do {
|
||||
output = output.concat(GetCommandBody(model, required));
|
||||
|
@ -65,10 +64,9 @@ function GetCommandBody(model: CodeModelAz, required: boolean, needUpdate: boole
|
|||
// method
|
||||
//
|
||||
|
||||
//let updatedMethodName = ((methodName != "show") ? methodName : "get").replace(/-/g, '_');
|
||||
let updatedMethodName: string = model.Command_FunctionName;
|
||||
if (needUpdate) {
|
||||
updatedMethodName = model.Command_FunctionName.replace(/_create/g, "_update");
|
||||
updatedMethodName = updatedMethodName.replace(/_create/g, "_update");
|
||||
}
|
||||
let call = "def " + updatedMethodName + "(";
|
||||
let indent = " ".repeat(call.length);
|
||||
|
@ -76,55 +74,47 @@ function GetCommandBody(model: CodeModelAz, required: boolean, needUpdate: boole
|
|||
|
||||
output.push(call + "cmd, client");
|
||||
|
||||
if (model.SelectFirstOption()) {
|
||||
let allParam: Map<string, boolean> = new Map<string, boolean>();
|
||||
if (model.SelectFirstMethod()) {
|
||||
do {
|
||||
if (model.Option_IsFlattened) {
|
||||
continue;
|
||||
if (model.SelectFirstMethodParameter()) {
|
||||
do {
|
||||
if (model.MethodParameter_IsFlattened) {
|
||||
continue;
|
||||
}
|
||||
|
||||
let required: boolean = model.MethodParameter_RequiredByMethod;
|
||||
|
||||
let name = model.MethodParameter_NamePython; // PythonParameterName(element.Name);
|
||||
if (required && !allParam.has(name)) {
|
||||
allParam.set(name, true);
|
||||
output[output.length - 1] += ",";
|
||||
output.push(indent + name);
|
||||
}
|
||||
} while (model.SelectNextMethodParameter());
|
||||
}
|
||||
|
||||
let required: boolean = model.Option_IsRequired;
|
||||
|
||||
// XXX - handle this in model
|
||||
//if (element.Type == "placeholder")
|
||||
// continue;
|
||||
|
||||
// XXX - handle this in model
|
||||
//if (isUpdate && element.PathSwagger.startsWith("/"))
|
||||
// required = false;
|
||||
|
||||
if (isUpdate && model.Option_PathSwagger.startsWith("/"))
|
||||
required = false;
|
||||
|
||||
if (required) {
|
||||
let name = model.Option_NamePython; // PythonParameterName(element.Name);
|
||||
output[output.length - 1] += ",";
|
||||
output.push(indent + name);
|
||||
}
|
||||
} while (model.SelectNextOption());
|
||||
} while (model.SelectNextMethod());
|
||||
}
|
||||
|
||||
if (model.SelectFirstOption()) {
|
||||
if (model.SelectFirstMethod()) {
|
||||
do {
|
||||
if (model.Option_IsFlattened) {
|
||||
continue;
|
||||
}
|
||||
let required = model.Option_IsRequired;
|
||||
if (model.SelectFirstMethodParameter()) {
|
||||
do {
|
||||
if (model.MethodParameter_IsFlattened) {
|
||||
continue;
|
||||
}
|
||||
let required = model.MethodParameter_RequiredByMethod;
|
||||
|
||||
|
||||
if (model.Option_In == ParameterLocation.Path) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
if (isUpdate && model.Option_PathSwagger.startsWith("/"))
|
||||
required = false;
|
||||
|
||||
if (!required) {
|
||||
output[output.length - 1] += ",";
|
||||
output.push(indent + model.Option_NamePython + "=None");
|
||||
let name = model.MethodParameter_NamePython;
|
||||
if (!required && !allParam.has(name)) {
|
||||
allParam.set(name, true);
|
||||
output[output.length - 1] += ",";
|
||||
output.push(indent + name + "=None");
|
||||
}
|
||||
} while (model.SelectNextMethodParameter());
|
||||
}
|
||||
}
|
||||
while (model.SelectNextOption());
|
||||
while (model.SelectNextMethod());
|
||||
}
|
||||
|
||||
output[output.length - 1] += "):";
|
||||
|
@ -136,64 +126,61 @@ function GetCommandBody(model: CodeModelAz, required: boolean, needUpdate: boole
|
|||
// create body transformation for methods that support it
|
||||
let methodName: string = model.Command_MethodName;
|
||||
|
||||
if (methodName != "show" && methodName != "list" && methodName != "delete") {
|
||||
// body transformation
|
||||
// body transformation
|
||||
|
||||
if (model.SelectFirstMethodParameter()) {
|
||||
do {
|
||||
if(model.MethodParameter_IsFlattened) {
|
||||
let bodyName = model.MethodParameter_Name;
|
||||
output_body.push(" " + bodyName + " = {}");
|
||||
let body = model.MethodParameter;
|
||||
if (model.SelectFirstMethodParameter()) {
|
||||
do {
|
||||
if (model.MethodParameter_IsFlattened) {
|
||||
let bodyName = model.MethodParameter_Name;
|
||||
output_body.push(" " + bodyName + " = {}");
|
||||
let body = model.MethodParameter;
|
||||
|
||||
while(model.SelectNextMethodParameter()) {
|
||||
let access = " " + bodyName;
|
||||
let param = model.MethodParameter;
|
||||
let oriParam = (param['originalParameter']);
|
||||
if(oriParam == body) {
|
||||
if(param['pathToProperty']?.length == 1) {
|
||||
let pathParam = param['pathToProperty'][0];
|
||||
access += `.setdefault('${pathParam.language['python'].name}', {})`;
|
||||
access += `['${model.MethodParameter_Name}'] = `;
|
||||
} else {
|
||||
access += `['${model.MethodParameter_Name}'] = `;
|
||||
}
|
||||
if (model.MethodParameter_IsList) {
|
||||
if (model.MethodParameter_Type != SchemaType.Dictionary) {
|
||||
// a comma separated list
|
||||
access += "None if " + model.MethodParameter_MapsTo + " is None else " + model.MethodParameter_MapsTo;
|
||||
}
|
||||
else {
|
||||
// already preprocessed by actions
|
||||
access += model.MethodParameter_MapsTo;
|
||||
}
|
||||
}
|
||||
else if (model.MethodParameter_Type != SchemaType.Dictionary) {
|
||||
access += model.MethodParameter_MapsTo + " # " + model.MethodParameter_Type; // # JSON.stringify(element);
|
||||
}
|
||||
else {
|
||||
access += "json.loads(" + model.MethodParameter_MapsTo + ") if isinstance(" + model.MethodParameter_MapsTo + ", str) else " + model.MethodParameter_MapsTo
|
||||
required['json'] = true;
|
||||
}
|
||||
|
||||
if (isUpdate) {
|
||||
output_body.push(" if " + model.MethodParameter_MapsTo + " is not None:");
|
||||
output_body.push(" " + access);
|
||||
}
|
||||
else {
|
||||
output_body.push(access);
|
||||
}
|
||||
|
||||
while (model.SelectNextMethodParameter()) {
|
||||
let access = " " + bodyName;
|
||||
let param = model.MethodParameter;
|
||||
let oriParam = (param['originalParameter']);
|
||||
if (oriParam == body) {
|
||||
if (param['pathToProperty']?.length == 1) {
|
||||
let pathParam = param['pathToProperty'][0];
|
||||
access += `.setdefault('${pathParam.language['python'].name}', {})`;
|
||||
access += `['${model.MethodParameter_Name}'] = `;
|
||||
} else {
|
||||
break;
|
||||
access += `['${model.MethodParameter_Name}'] = `;
|
||||
}
|
||||
if (model.MethodParameter_IsList) {
|
||||
if (model.MethodParameter_Type != SchemaType.Dictionary) {
|
||||
// a comma separated list
|
||||
access += "None if " + model.MethodParameter_MapsTo + " is None else " + model.MethodParameter_MapsTo;
|
||||
}
|
||||
else {
|
||||
// already preprocessed by actions
|
||||
access += model.MethodParameter_MapsTo;
|
||||
}
|
||||
}
|
||||
else if (model.MethodParameter_Type != SchemaType.Dictionary) {
|
||||
access += model.MethodParameter_MapsTo + " # " + model.MethodParameter_Type; // # JSON.stringify(element);
|
||||
}
|
||||
else {
|
||||
access += "json.loads(" + model.MethodParameter_MapsTo + ") if isinstance(" + model.MethodParameter_MapsTo + ", str) else " + model.MethodParameter_MapsTo
|
||||
required['json'] = true;
|
||||
}
|
||||
|
||||
if (isUpdate) {
|
||||
output_body.push(" if " + model.MethodParameter_MapsTo + " is not None:");
|
||||
output_body.push(" " + access);
|
||||
}
|
||||
else {
|
||||
output_body.push(access);
|
||||
}
|
||||
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
while (model.SelectNextMethodParameter());
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
while (model.SelectNextMethodParameter());
|
||||
|
||||
}
|
||||
|
||||
|
@ -248,7 +235,7 @@ function GetMethodCall(model: CodeModelAz): string {
|
|||
if (model.SelectFirstMethodParameter()) {
|
||||
do {
|
||||
let param = model.MethodParameter;
|
||||
if(param.originalParameter != null) {
|
||||
if (param.originalParameter != null) {
|
||||
continue;
|
||||
}
|
||||
let optionName = model.MethodParameter_MapsTo;
|
||||
|
|
|
@ -88,75 +88,83 @@ function getCommandBody(model: CodeModelAz, needUpdate: boolean = false) {
|
|||
} else {
|
||||
output_args.push(" with self.argument_context('" + model.Command_Name + "') as c:");
|
||||
}
|
||||
|
||||
if (!model.SelectFirstOption()) {
|
||||
|
||||
let hasParam = false;
|
||||
let allParam: Map<string, boolean> = new Map<string, boolean>();
|
||||
if(model.SelectFirstMethod()) {
|
||||
do {
|
||||
if(model.SelectFirstMethodParameter()) {
|
||||
do {
|
||||
if(model.MethodParameter_IsFlattened) {
|
||||
continue;
|
||||
}
|
||||
hasParam = true;
|
||||
|
||||
let parameterName = model.MethodParameter_NamePython;
|
||||
|
||||
if(allParam.has(parameterName)) {
|
||||
continue;
|
||||
}
|
||||
allParam.set(parameterName, true);
|
||||
let argument = " c.argument('" + parameterName + "'";
|
||||
|
||||
// this is to handle names like "format", "type", etc
|
||||
if (parameterName == "type" || parameterName == "format") {
|
||||
argument = " c.argument('_" + parameterName + "'";
|
||||
argument += ", options_list=['--" + parameterName + "']";
|
||||
}
|
||||
|
||||
if (model.MethodParameter_Type == SchemaType.Boolean) {
|
||||
hasBoolean = true;
|
||||
argument += ", arg_type=get_three_state_flag()";
|
||||
}
|
||||
else if (model.MethodParameter_Type == SchemaType.Choice || model.MethodParameter_Type == SchemaType.SealedChoice) {
|
||||
hasEnum = true;
|
||||
argument += ", arg_type=get_enum_type([";
|
||||
|
||||
model.MethodParameter_EnumValues.forEach(element => {
|
||||
if (!argument.endsWith("[")) argument += ", ";
|
||||
argument += "'" + element + "'";
|
||||
});
|
||||
argument += "])";
|
||||
}
|
||||
|
||||
if (parameterName == "resource_group_name") {
|
||||
argument += ", resource_group_name_type";
|
||||
}
|
||||
else if (parameterName == "tags") {
|
||||
argument += ", tags_type";
|
||||
}
|
||||
else if (parameterName == "location") {
|
||||
argument += ", arg_type=get_location_type(self.cli_ctx)";
|
||||
}
|
||||
else {
|
||||
argument += ", id_part=None, help='" + EscapeString(model.MethodParameter_Description) + "'";
|
||||
}
|
||||
|
||||
if (model.MethodParameter_IsList) {
|
||||
if (model.MethodParameter_Type == SchemaType.Object || model.MethodParameter_Type == SchemaType.Array) {
|
||||
let actionName: string = "Add" + Capitalize(ToCamelCase(model.MethodParameter_Name));
|
||||
argument += ", action=" + actionName;
|
||||
hasActions = true;
|
||||
|
||||
if (actions.indexOf(actionName) < 0) {
|
||||
actions.push(actionName);
|
||||
}
|
||||
}
|
||||
argument += ", nargs='+'";
|
||||
}
|
||||
|
||||
argument += ")";
|
||||
|
||||
output_args.push(argument);
|
||||
} while(model.SelectNextMethodParameter());
|
||||
}
|
||||
} while(model.SelectNextMethod());
|
||||
}
|
||||
if (!hasParam) {
|
||||
output_args.push(" pass");
|
||||
}
|
||||
else {
|
||||
let hasParam = false;
|
||||
do {
|
||||
if(model.Option_IsFlattened) {
|
||||
continue;
|
||||
}
|
||||
hasParam = true;
|
||||
let parameterName = model.Option_NamePython;
|
||||
|
||||
let argument = " c.argument('" + parameterName + "'";
|
||||
|
||||
// this is to handle names like "format", "type", etc
|
||||
if (parameterName == "type" || parameterName == "format") {
|
||||
argument = " c.argument('_" + parameterName + "'";
|
||||
argument += ", options_list=['--" + parameterName + "']";
|
||||
}
|
||||
|
||||
if (model.Option_Type == SchemaType.Boolean) {
|
||||
hasBoolean = true;
|
||||
argument += ", arg_type=get_three_state_flag()";
|
||||
}
|
||||
else if (model.Option_Type == SchemaType.Choice || model.Option_Type == SchemaType.SealedChoice) {
|
||||
hasEnum = true;
|
||||
argument += ", arg_type=get_enum_type([";
|
||||
|
||||
model.Option_EnumValues.forEach(element => {
|
||||
if (!argument.endsWith("[")) argument += ", ";
|
||||
argument += "'" + element + "'";
|
||||
});
|
||||
argument += "])";
|
||||
}
|
||||
|
||||
if (parameterName == "resource_group_name") {
|
||||
argument += ", resource_group_name_type";
|
||||
}
|
||||
else if (parameterName == "tags") {
|
||||
argument += ", tags_type";
|
||||
}
|
||||
else if (parameterName == "location") {
|
||||
argument += ", arg_type=get_location_type(self.cli_ctx)";
|
||||
}
|
||||
else {
|
||||
argument += ", id_part=None, help='" + EscapeString(model.Option_Description) + "'";
|
||||
}
|
||||
|
||||
if (model.Option_IsList) {
|
||||
if (model.Option_Type == SchemaType.Object || model.Option_Type == SchemaType.Array) {
|
||||
let actionName: string = "Add" + Capitalize(ToCamelCase(model.Option_Name));
|
||||
argument += ", action=" + actionName;
|
||||
hasActions = true;
|
||||
|
||||
if (actions.indexOf(actionName) < 0) {
|
||||
actions.push(actionName);
|
||||
}
|
||||
}
|
||||
argument += ", nargs='+'";
|
||||
}
|
||||
|
||||
argument += ")";
|
||||
|
||||
output_args.push(argument);
|
||||
} while (model.SelectNextOption());
|
||||
if (!hasParam) {
|
||||
output_args.push(" pass");
|
||||
}
|
||||
}
|
||||
return output_args;
|
||||
}
|
|
@ -2,7 +2,7 @@ import { CodeModel, codeModelSchema, Language } from "@azure-tools/codemodel";
|
|||
import { Session, startSession, Host, Channel } from "@azure-tools/autorest-extension-base";
|
||||
import { serialize, deserialize } from "@azure-tools/codegen";
|
||||
import { values, items, length, Dictionary } from "@azure-tools/linq";
|
||||
import { ToSnakeCase } from '../utils/helper';
|
||||
import { changeCamelToDash } from '../utils/helper';
|
||||
|
||||
export class AzNamer {
|
||||
codeModel: CodeModel;
|
||||
|
@ -26,7 +26,7 @@ export class AzNamer {
|
|||
} else if(operationName.startsWith("delete") && httpProtocol == "delete") {
|
||||
return "delete";
|
||||
}
|
||||
return ToSnakeCase(operationNameOri);
|
||||
return changeCamelToDash(operationNameOri);
|
||||
}
|
||||
|
||||
async process() {
|
||||
|
@ -44,7 +44,7 @@ export class AzNamer {
|
|||
}
|
||||
obj.language['az'] = new Language();
|
||||
obj.language['az']['name'] = obj.language['cli']? obj.language['cli']['name']: obj.language['python']['name'];
|
||||
obj.language['az']['name'] = ToSnakeCase(obj.language['az']['name']);
|
||||
obj.language['az']['name'] = changeCamelToDash(obj.language['az']['name']);
|
||||
obj.language['az']['description'] = obj.language['cli']? obj.language['cli']['description']: obj.language['python']['description'];;
|
||||
}
|
||||
|
||||
|
@ -116,7 +116,7 @@ export class AzNamer {
|
|||
operationGroup.language['az'] = new Language();
|
||||
operationGroup.language['az']['name'] = operationGroup.language['cli']['name'];
|
||||
operationGroup.language['az']['description'] = operationGroup.language['cli']['description'];
|
||||
operationGroupName = extensionName + " " + ToSnakeCase(operationGroup.language['az']['name'])
|
||||
operationGroupName = extensionName + " " + changeCamelToDash(operationGroup.language['az']['name'])
|
||||
operationGroup.language['az']['command'] = operationGroupName;
|
||||
}
|
||||
|
||||
|
@ -129,7 +129,7 @@ export class AzNamer {
|
|||
operation.language['az'] = new Language();
|
||||
operation.language['az']['name'] = this.methodMap(operation.language['cli']['name'], operation.request.protocol.http.method);
|
||||
operation.language['az']['description'] = operation.language['cli']['description'];
|
||||
operationName = operationGroupName + " " + ToSnakeCase(operation.language['az']['name']);
|
||||
operationName = operationGroupName + " " + changeCamelToDash(operation.language['az']['name']);
|
||||
operation.language['az']['command'] = operationName;
|
||||
} else {
|
||||
this.session.message({Channel:Channel.Warning, Text: "operation doesn't have cli"});
|
||||
|
|
|
@ -23,7 +23,7 @@ schemas:
|
|||
name: OperationsDefinition-name
|
||||
description: Name of the operation.
|
||||
az:
|
||||
name: operations_definition-name
|
||||
name: operations-definition-name
|
||||
description: Name of the operation.
|
||||
cli:
|
||||
name: OperationsDefinition-name
|
||||
|
@ -55,7 +55,7 @@ schemas:
|
|||
name: OperationsDisplayDefinition-provider
|
||||
description: Resource provider of the operation.
|
||||
az:
|
||||
name: operations_display_definition-provider
|
||||
name: operations-display-definition-provider
|
||||
description: Resource provider of the operation.
|
||||
cli:
|
||||
name: OperationsDisplayDefinition-provider
|
||||
|
@ -82,7 +82,7 @@ schemas:
|
|||
name: OperationsDisplayDefinition-resource
|
||||
description: Resource for the operation.
|
||||
az:
|
||||
name: operations_display_definition-resource
|
||||
name: operations-display-definition-resource
|
||||
description: Resource for the operation.
|
||||
cli:
|
||||
name: OperationsDisplayDefinition-resource
|
||||
|
@ -109,7 +109,7 @@ schemas:
|
|||
name: OperationsDisplayDefinition-operation
|
||||
description: Short description of the operation.
|
||||
az:
|
||||
name: operations_display_definition-operation
|
||||
name: operations-display-definition-operation
|
||||
description: Short description of the operation.
|
||||
cli:
|
||||
name: OperationsDisplayDefinition-operation
|
||||
|
@ -136,7 +136,7 @@ schemas:
|
|||
name: OperationsDisplayDefinition-description
|
||||
description: Description of the operation.
|
||||
az:
|
||||
name: operations_display_definition-description
|
||||
name: operations-display-definition-description
|
||||
description: Description of the operation.
|
||||
cli:
|
||||
name: OperationsDisplayDefinition-description
|
||||
|
@ -160,7 +160,7 @@ schemas:
|
|||
description: Display object with properties of the operation.
|
||||
namespace: Api20180901Preview
|
||||
az:
|
||||
name: operations_display_definition
|
||||
name: operations-display-definition
|
||||
description: Display object with properties of the operation.
|
||||
cli:
|
||||
name: OperationsDisplayDefinition
|
||||
|
@ -184,7 +184,7 @@ schemas:
|
|||
description: Definition object with the name and properties of an operation.
|
||||
namespace: Api20180901Preview
|
||||
az:
|
||||
name: operations_definition
|
||||
name: operations-definition
|
||||
description: Definition object with the name and properties of an operation.
|
||||
cli:
|
||||
name: OperationsDefinition
|
||||
|
@ -195,7 +195,7 @@ schemas:
|
|||
name: OperationList-value
|
||||
description: List of supported operations.
|
||||
az:
|
||||
name: operation_list-value
|
||||
name: operation-list-value
|
||||
description: List of supported operations.
|
||||
cli:
|
||||
name: OperationList-value
|
||||
|
@ -219,7 +219,7 @@ schemas:
|
|||
description: List of supported operations.
|
||||
namespace: Api20180901Preview
|
||||
az:
|
||||
name: operation_list
|
||||
name: operation-list
|
||||
description: List of supported operations.
|
||||
cli:
|
||||
name: OperationList
|
||||
|
@ -246,7 +246,7 @@ schemas:
|
|||
name: CloudErrorBody-code
|
||||
description: An identifier for the error. Codes are invariant and are intended to be consumed programmatically.
|
||||
az:
|
||||
name: cloud_error_body-code
|
||||
name: cloud-error-body-code
|
||||
description: An identifier for the error. Codes are invariant and are intended to be consumed programmatically.
|
||||
cli:
|
||||
name: CloudErrorBody-code
|
||||
|
@ -273,7 +273,7 @@ schemas:
|
|||
name: CloudErrorBody-message
|
||||
description: 'A message describing the error, intended to be suitable for displaying in a user interface.'
|
||||
az:
|
||||
name: cloud_error_body-message
|
||||
name: cloud-error-body-message
|
||||
description: 'A message describing the error, intended to be suitable for displaying in a user interface.'
|
||||
cli:
|
||||
name: CloudErrorBody-message
|
||||
|
@ -299,7 +299,7 @@ schemas:
|
|||
description: An error response from Attestation.
|
||||
namespace: Api20180901Preview
|
||||
az:
|
||||
name: cloud_error_body
|
||||
name: cloud-error-body
|
||||
description: An error response from Attestation.
|
||||
cli:
|
||||
name: CloudErrorBody
|
||||
|
@ -325,7 +325,7 @@ schemas:
|
|||
description: An error response from Attestation.
|
||||
namespace: Api20180901Preview
|
||||
az:
|
||||
name: cloud_error
|
||||
name: cloud-error
|
||||
description: An error response from Attestation.
|
||||
cli:
|
||||
name: CloudError
|
||||
|
@ -372,7 +372,7 @@ schemas:
|
|||
name: NotReady
|
||||
description: ''
|
||||
az:
|
||||
name: not_ready
|
||||
name: not-ready
|
||||
description: ''
|
||||
cli:
|
||||
name: NotReady
|
||||
|
@ -409,7 +409,7 @@ schemas:
|
|||
name: AttestationServiceStatus
|
||||
description: Status of attestation service.
|
||||
az:
|
||||
name: attestation_service_status
|
||||
name: attestation-service-status
|
||||
description: Status of attestation service.
|
||||
cli:
|
||||
name: AttestationServiceStatus
|
||||
|
@ -437,7 +437,7 @@ schemas:
|
|||
name: StatusResult-attestUri
|
||||
description: Gets the uri of attestation service
|
||||
az:
|
||||
name: status_result-attest_uri
|
||||
name: status-result-attest-uri
|
||||
description: Gets the uri of attestation service
|
||||
cli:
|
||||
name: StatusResult-attestUri
|
||||
|
@ -450,7 +450,7 @@ schemas:
|
|||
name: attestUri
|
||||
description: Gets the uri of attestation service
|
||||
az:
|
||||
name: attest_uri
|
||||
name: attest-uri
|
||||
description: Gets the uri of attestation service
|
||||
cli:
|
||||
name: attestUri
|
||||
|
@ -462,7 +462,7 @@ schemas:
|
|||
description: Status of attestation service.
|
||||
namespace: Api20180901Preview
|
||||
az:
|
||||
name: status_result
|
||||
name: status-result
|
||||
description: Status of attestation service.
|
||||
cli:
|
||||
name: StatusResult
|
||||
|
@ -489,7 +489,7 @@ schemas:
|
|||
description: Attestation service response message.
|
||||
namespace: Api20180901Preview
|
||||
az:
|
||||
name: attestation_provider
|
||||
name: attestation-provider
|
||||
description: Attestation service response message.
|
||||
cli:
|
||||
name: AttestationProvider
|
||||
|
@ -514,7 +514,7 @@ schemas:
|
|||
name: AzureEntityResource-etag
|
||||
description: Resource Etag.
|
||||
az:
|
||||
name: azure_entity_resource-etag
|
||||
name: azure-entity-resource-etag
|
||||
description: Resource Etag.
|
||||
cli:
|
||||
name: AzureEntityResource-etag
|
||||
|
@ -539,7 +539,7 @@ schemas:
|
|||
description: The resource model definition for a Azure Resource Manager resource with an etag.
|
||||
namespace: Api10
|
||||
az:
|
||||
name: azure_entity_resource
|
||||
name: azure-entity-resource
|
||||
description: The resource model definition for a Azure Resource Manager resource with an etag.
|
||||
cli:
|
||||
name: AzureEntityResource
|
||||
|
@ -578,7 +578,7 @@ schemas:
|
|||
name: TrackedResource-tags
|
||||
description: Resource tags.
|
||||
az:
|
||||
name: tracked_resource-tags
|
||||
name: tracked-resource-tags
|
||||
description: Resource tags.
|
||||
cli:
|
||||
name: TrackedResource-tags
|
||||
|
@ -610,7 +610,7 @@ schemas:
|
|||
name: TrackedResource-location
|
||||
description: The geo-location where the resource lives
|
||||
az:
|
||||
name: tracked_resource-location
|
||||
name: tracked-resource-location
|
||||
description: The geo-location where the resource lives
|
||||
cli:
|
||||
name: TrackedResource-location
|
||||
|
@ -635,7 +635,7 @@ schemas:
|
|||
description: The resource model definition for a ARM tracked top level resource
|
||||
namespace: Api10
|
||||
az:
|
||||
name: tracked_resource
|
||||
name: tracked-resource
|
||||
description: The resource model definition for a ARM tracked top level resource
|
||||
cli:
|
||||
name: TrackedResource
|
||||
|
@ -656,7 +656,7 @@ schemas:
|
|||
description: The resource model definition for a ARM proxy resource. It will have everything other than required location and tags
|
||||
namespace: Api10
|
||||
az:
|
||||
name: proxy_resource
|
||||
name: proxy-resource
|
||||
description: The resource model definition for a ARM proxy resource. It will have everything other than required location and tags
|
||||
cli:
|
||||
name: ProxyResource
|
||||
|
@ -782,7 +782,7 @@ schemas:
|
|||
name: AttestationServiceCreationParams-attestationPolicy
|
||||
description: Name of attestation policy.
|
||||
az:
|
||||
name: attestation_service_creation_params-attestation_policy
|
||||
name: attestation-service-creation-params-attestation-policy
|
||||
description: Name of attestation policy.
|
||||
cli:
|
||||
name: AttestationServiceCreationParams-attestationPolicy
|
||||
|
@ -794,7 +794,7 @@ schemas:
|
|||
name: attestationPolicy
|
||||
description: Name of attestation policy.
|
||||
az:
|
||||
name: attestation_policy
|
||||
name: attestation-policy
|
||||
description: Name of attestation policy.
|
||||
cli:
|
||||
name: attestationPolicy
|
||||
|
@ -828,7 +828,7 @@ schemas:
|
|||
established by [JWA] or be a value that contains a Collision-
|
||||
Resistant Name.
|
||||
az:
|
||||
name: jsonweb_key-alg
|
||||
name: j-s-o-n-web-key-alg
|
||||
description: |-
|
||||
The "alg" (algorithm) parameter identifies the algorithm intended for
|
||||
use with the key. The values used should either be registered in the
|
||||
|
@ -881,7 +881,7 @@ schemas:
|
|||
name: JSONWebKey-crv
|
||||
description: The "crv" (curve) parameter identifies the curve type
|
||||
az:
|
||||
name: jsonweb_key-crv
|
||||
name: j-s-o-n-web-key-crv
|
||||
description: The "crv" (curve) parameter identifies the curve type
|
||||
cli:
|
||||
name: JSONWebKey-crv
|
||||
|
@ -909,7 +909,7 @@ schemas:
|
|||
name: JSONWebKey-d
|
||||
description: RSA private exponent or ECC private key
|
||||
az:
|
||||
name: jsonweb_key-d
|
||||
name: j-s-o-n-web-key-d
|
||||
description: RSA private exponent or ECC private key
|
||||
cli:
|
||||
name: JSONWebKey-d
|
||||
|
@ -937,7 +937,7 @@ schemas:
|
|||
name: JSONWebKey-dp
|
||||
description: RSA Private Key Parameter
|
||||
az:
|
||||
name: jsonweb_key-dp
|
||||
name: j-s-o-n-web-key-dp
|
||||
description: RSA Private Key Parameter
|
||||
cli:
|
||||
name: JSONWebKey-dp
|
||||
|
@ -965,7 +965,7 @@ schemas:
|
|||
name: JSONWebKey-dq
|
||||
description: RSA Private Key Parameter
|
||||
az:
|
||||
name: jsonweb_key-dq
|
||||
name: j-s-o-n-web-key-dq
|
||||
description: RSA Private Key Parameter
|
||||
cli:
|
||||
name: JSONWebKey-dq
|
||||
|
@ -993,7 +993,7 @@ schemas:
|
|||
name: JSONWebKey-e
|
||||
description: 'RSA public exponent, in Base64'
|
||||
az:
|
||||
name: jsonweb_key-e
|
||||
name: j-s-o-n-web-key-e
|
||||
description: 'RSA public exponent, in Base64'
|
||||
cli:
|
||||
name: JSONWebKey-e
|
||||
|
@ -1021,7 +1021,7 @@ schemas:
|
|||
name: JSONWebKey-k
|
||||
description: Symmetric key
|
||||
az:
|
||||
name: jsonweb_key-k
|
||||
name: j-s-o-n-web-key-k
|
||||
description: Symmetric key
|
||||
cli:
|
||||
name: JSONWebKey-k
|
||||
|
@ -1058,7 +1058,7 @@ schemas:
|
|||
equivalent alternatives by the application using them.) The "kid"
|
||||
value is a case-sensitive string.
|
||||
az:
|
||||
name: jsonweb_key-kid
|
||||
name: j-s-o-n-web-key-kid
|
||||
description: |-
|
||||
The "kid" (key ID) parameter is used to match a specific key. This
|
||||
is used, for instance, to choose among a set of keys within a JWK Set
|
||||
|
@ -1136,7 +1136,7 @@ schemas:
|
|||
established by [JWA] or be a value that contains a Collision-
|
||||
Resistant Name. The "kty" value is a case-sensitive string.
|
||||
az:
|
||||
name: jsonweb_key-kty
|
||||
name: j-s-o-n-web-key-kty
|
||||
description: |-
|
||||
The "kty" (key type) parameter identifies the cryptographic algorithm
|
||||
family used with the key, such as "RSA" or "EC". "kty" values should
|
||||
|
@ -1189,7 +1189,7 @@ schemas:
|
|||
name: JSONWebKey-n
|
||||
description: 'RSA modulus, in Base64'
|
||||
az:
|
||||
name: jsonweb_key-n
|
||||
name: j-s-o-n-web-key-n
|
||||
description: 'RSA modulus, in Base64'
|
||||
cli:
|
||||
name: JSONWebKey-n
|
||||
|
@ -1217,7 +1217,7 @@ schemas:
|
|||
name: JSONWebKey-p
|
||||
description: RSA secret prime
|
||||
az:
|
||||
name: jsonweb_key-p
|
||||
name: j-s-o-n-web-key-p
|
||||
description: RSA secret prime
|
||||
cli:
|
||||
name: JSONWebKey-p
|
||||
|
@ -1245,7 +1245,7 @@ schemas:
|
|||
name: JSONWebKey-q
|
||||
description: 'RSA secret prime, with p < q'
|
||||
az:
|
||||
name: jsonweb_key-q
|
||||
name: j-s-o-n-web-key-q
|
||||
description: 'RSA secret prime, with p < q'
|
||||
cli:
|
||||
name: JSONWebKey-q
|
||||
|
@ -1273,7 +1273,7 @@ schemas:
|
|||
name: JSONWebKey-qi
|
||||
description: RSA Private Key Parameter
|
||||
az:
|
||||
name: jsonweb_key-qi
|
||||
name: j-s-o-n-web-key-qi
|
||||
description: RSA Private Key Parameter
|
||||
cli:
|
||||
name: JSONWebKey-qi
|
||||
|
@ -1305,7 +1305,7 @@ schemas:
|
|||
a public key is used for encrypting data or verifying the signature
|
||||
on data. Values are commonly "sig" (signature) or "enc" (encryption).
|
||||
az:
|
||||
name: jsonweb_key-use
|
||||
name: j-s-o-n-web-key-use
|
||||
description: |-
|
||||
Use ("public key use") identifies the intended use of
|
||||
the public key. The "use" parameter is employed to indicate whether
|
||||
|
@ -1353,7 +1353,7 @@ schemas:
|
|||
name: JSONWebKey-x
|
||||
description: X coordinate for the Elliptic Curve point
|
||||
az:
|
||||
name: jsonweb_key-x
|
||||
name: j-s-o-n-web-key-x
|
||||
description: X coordinate for the Elliptic Curve point
|
||||
cli:
|
||||
name: JSONWebKey-x
|
||||
|
@ -1385,7 +1385,7 @@ schemas:
|
|||
name: JSONWebKey-x5cItem
|
||||
description: ''
|
||||
az:
|
||||
name: jsonweb_key-x5c_item
|
||||
name: j-s-o-n-web-key-x5c-item
|
||||
description: ''
|
||||
cli:
|
||||
name: JSONWebKey-x5cItem
|
||||
|
@ -1403,7 +1403,7 @@ schemas:
|
|||
The PKIX certificate containing the key value MUST be the first
|
||||
certificate.
|
||||
az:
|
||||
name: jsonweb_key-x5c
|
||||
name: j-s-o-n-web-key-x5c
|
||||
description: |-
|
||||
The "x5c" (X.509 certificate chain) parameter contains a chain of one
|
||||
or more PKIX certificates [RFC5280]. The certificate chain is
|
||||
|
@ -1466,7 +1466,7 @@ schemas:
|
|||
name: JSONWebKey-y
|
||||
description: Y coordinate for the Elliptic Curve point
|
||||
az:
|
||||
name: jsonweb_key-y
|
||||
name: j-s-o-n-web-key-y
|
||||
description: Y coordinate for the Elliptic Curve point
|
||||
cli:
|
||||
name: JSONWebKey-y
|
||||
|
@ -1491,7 +1491,7 @@ schemas:
|
|||
description: ''
|
||||
namespace: Api10
|
||||
az:
|
||||
name: jsonweb_key
|
||||
name: j-s-o-n-web-key
|
||||
description: ''
|
||||
cli:
|
||||
name: JSONWebKey
|
||||
|
@ -1507,7 +1507,7 @@ schemas:
|
|||
can choose to assign a meaning to the order for their purposes, if
|
||||
desired.
|
||||
az:
|
||||
name: jsonweb_key_set-keys
|
||||
name: j-s-o-n-web-key-set-keys
|
||||
description: |-
|
||||
The value of the "keys" parameter is an array of JWK values. By
|
||||
default, the order of the JWK values within the array does not imply
|
||||
|
@ -1556,7 +1556,7 @@ schemas:
|
|||
description: ''
|
||||
namespace: Api10
|
||||
az:
|
||||
name: jsonweb_key_set
|
||||
name: j-s-o-n-web-key-set
|
||||
description: ''
|
||||
cli:
|
||||
name: JSONWebKeySet
|
||||
|
@ -1568,7 +1568,7 @@ schemas:
|
|||
name: policySigningCertificates
|
||||
description: ''
|
||||
az:
|
||||
name: policy_signing_certificates
|
||||
name: policy-signing-certificates
|
||||
description: ''
|
||||
cli:
|
||||
name: policySigningCertificates
|
||||
|
@ -1580,7 +1580,7 @@ schemas:
|
|||
description: Client supplied parameters passed to attestation service.
|
||||
namespace: Api20180901Preview
|
||||
az:
|
||||
name: attestation_service_creation_params
|
||||
name: attestation-service-creation-params
|
||||
description: Client supplied parameters passed to attestation service.
|
||||
cli:
|
||||
name: AttestationServiceCreationParams
|
||||
|
@ -1603,7 +1603,7 @@ schemas:
|
|||
name: AttestationProviderListResult-value
|
||||
description: Attestation Provider array.
|
||||
az:
|
||||
name: attestation_provider_list_result-value
|
||||
name: attestation-provider-list-result-value
|
||||
description: Attestation Provider array.
|
||||
cli:
|
||||
name: AttestationProviderListResult-value
|
||||
|
@ -1627,7 +1627,7 @@ schemas:
|
|||
description: Attestation Providers List.
|
||||
namespace: Api20180901Preview
|
||||
az:
|
||||
name: attestation_provider_list_result
|
||||
name: attestation-provider-list-result
|
||||
description: Attestation Providers List.
|
||||
cli:
|
||||
name: AttestationProviderListResult
|
||||
|
@ -1656,7 +1656,7 @@ schemas:
|
|||
name: ApiVersion-2018-09-01-preview
|
||||
description: Api Version (2018-09-01-preview)
|
||||
az:
|
||||
name: api_version-2018-09-01-preview
|
||||
name: api-version-2018-09-01-preview
|
||||
description: Api Version (2018-09-01-preview)
|
||||
cli:
|
||||
name: ApiVersion-2018-09-01-preview
|
||||
|
@ -1671,7 +1671,7 @@ schemas:
|
|||
name: ApiVersion-2018-09-01-preview
|
||||
description: Api Version (2018-09-01-preview)
|
||||
az:
|
||||
name: api_version-2018-09-01-preview
|
||||
name: api-version-2018-09-01-preview
|
||||
description: Api Version (2018-09-01-preview)
|
||||
cli:
|
||||
name: ApiVersion-2018-09-01-preview
|
||||
|
@ -1686,7 +1686,7 @@ schemas:
|
|||
name: ApiVersion-2018-09-01-preview
|
||||
description: Api Version (2018-09-01-preview)
|
||||
az:
|
||||
name: api_version-2018-09-01-preview
|
||||
name: api-version-2018-09-01-preview
|
||||
description: Api Version (2018-09-01-preview)
|
||||
cli:
|
||||
name: ApiVersion-2018-09-01-preview
|
||||
|
@ -1701,7 +1701,7 @@ schemas:
|
|||
name: ApiVersion-2018-09-01-preview
|
||||
description: Api Version (2018-09-01-preview)
|
||||
az:
|
||||
name: api_version-2018-09-01-preview
|
||||
name: api-version-2018-09-01-preview
|
||||
description: Api Version (2018-09-01-preview)
|
||||
cli:
|
||||
name: ApiVersion-2018-09-01-preview
|
||||
|
@ -1716,7 +1716,7 @@ schemas:
|
|||
name: ApiVersion-2018-09-01-preview
|
||||
description: Api Version (2018-09-01-preview)
|
||||
az:
|
||||
name: api_version-2018-09-01-preview
|
||||
name: api-version-2018-09-01-preview
|
||||
description: Api Version (2018-09-01-preview)
|
||||
cli:
|
||||
name: ApiVersion-2018-09-01-preview
|
||||
|
@ -1731,7 +1731,7 @@ schemas:
|
|||
name: ApiVersion-2018-09-01-preview
|
||||
description: Api Version (2018-09-01-preview)
|
||||
az:
|
||||
name: api_version-2018-09-01-preview
|
||||
name: api-version-2018-09-01-preview
|
||||
description: Api Version (2018-09-01-preview)
|
||||
cli:
|
||||
name: ApiVersion-2018-09-01-preview
|
||||
|
@ -1818,7 +1818,7 @@ globalParameters:
|
|||
description: The ID of the target subscription.
|
||||
serializedName: subscriptionId
|
||||
az:
|
||||
name: subscription_id
|
||||
name: subscription-id
|
||||
description: The ID of the target subscription.
|
||||
cli:
|
||||
name: subscriptionId
|
||||
|
@ -1857,7 +1857,7 @@ globalParameters:
|
|||
description: Api Version
|
||||
serializedName: api-version
|
||||
az:
|
||||
name: api_version
|
||||
name: api-version
|
||||
description: Api Version
|
||||
cli:
|
||||
name: ApiVersion
|
||||
|
@ -1981,7 +1981,7 @@ operationGroups:
|
|||
description: The name of the resource group. The name is case insensitive.
|
||||
serializedName: resourceGroupName
|
||||
az:
|
||||
name: resource_group_name
|
||||
name: resource-group-name
|
||||
description: The name of the resource group. The name is case insensitive.
|
||||
cli:
|
||||
name: resourceGroupName
|
||||
|
@ -1999,7 +1999,7 @@ operationGroups:
|
|||
description: Name of the attestation service instance
|
||||
serializedName: providerName
|
||||
az:
|
||||
name: provider_name
|
||||
name: provider-name
|
||||
description: Name of the attestation service instance
|
||||
cli:
|
||||
name: providerName
|
||||
|
@ -2069,7 +2069,7 @@ operationGroups:
|
|||
az:
|
||||
name: show
|
||||
description: Get the status of Attestation Provider.
|
||||
command: attestation attestation_providers show
|
||||
command: attestation attestation-providers show
|
||||
cli:
|
||||
name: Get
|
||||
description: Get the status of Attestation Provider.
|
||||
|
@ -2090,7 +2090,7 @@ operationGroups:
|
|||
description: The name of the resource group. The name is case insensitive.
|
||||
serializedName: resourceGroupName
|
||||
az:
|
||||
name: resource_group_name
|
||||
name: resource-group-name
|
||||
description: The name of the resource group. The name is case insensitive.
|
||||
cli:
|
||||
name: resourceGroupName
|
||||
|
@ -2108,7 +2108,7 @@ operationGroups:
|
|||
description: Name of the attestation service instance
|
||||
serializedName: providerName
|
||||
az:
|
||||
name: provider_name
|
||||
name: provider-name
|
||||
description: Name of the attestation service instance
|
||||
cli:
|
||||
name: providerName
|
||||
|
@ -2127,7 +2127,7 @@ operationGroups:
|
|||
name: creationParams
|
||||
description: Client supplied parameters.
|
||||
az:
|
||||
name: creation_params
|
||||
name: creation-params
|
||||
description: Client supplied parameters.
|
||||
cli:
|
||||
name: creationParams
|
||||
|
@ -2224,7 +2224,7 @@ operationGroups:
|
|||
az:
|
||||
name: create
|
||||
description: Creates or updates the Attestation Provider.
|
||||
command: attestation attestation_providers create
|
||||
command: attestation attestation-providers create
|
||||
cli:
|
||||
name: Create
|
||||
description: Creates or updates the Attestation Provider.
|
||||
|
@ -2245,7 +2245,7 @@ operationGroups:
|
|||
description: The name of the resource group. The name is case insensitive.
|
||||
serializedName: resourceGroupName
|
||||
az:
|
||||
name: resource_group_name
|
||||
name: resource-group-name
|
||||
description: The name of the resource group. The name is case insensitive.
|
||||
cli:
|
||||
name: resourceGroupName
|
||||
|
@ -2263,7 +2263,7 @@ operationGroups:
|
|||
description: Name of the attestation service instance
|
||||
serializedName: providerName
|
||||
az:
|
||||
name: provider_name
|
||||
name: provider-name
|
||||
description: Name of the attestation service instance
|
||||
cli:
|
||||
name: providerName
|
||||
|
@ -2344,7 +2344,7 @@ operationGroups:
|
|||
az:
|
||||
name: delete
|
||||
description: Delete Attestation Service.
|
||||
command: attestation attestation_providers delete
|
||||
command: attestation attestation-providers delete
|
||||
cli:
|
||||
name: Delete
|
||||
description: Delete Attestation Service.
|
||||
|
@ -2419,7 +2419,7 @@ operationGroups:
|
|||
az:
|
||||
name: list
|
||||
description: Returns a list of attestation providers in a subscription.
|
||||
command: attestation attestation_providers list
|
||||
command: attestation attestation-providers list
|
||||
cli:
|
||||
name: List
|
||||
description: Returns a list of attestation providers in a subscription.
|
||||
|
@ -2439,7 +2439,7 @@ operationGroups:
|
|||
description: The name of the resource group. The name is case insensitive.
|
||||
serializedName: resourceGroupName
|
||||
az:
|
||||
name: resource_group_name
|
||||
name: resource-group-name
|
||||
description: The name of the resource group. The name is case insensitive.
|
||||
cli:
|
||||
name: resourceGroupName
|
||||
|
@ -2514,7 +2514,7 @@ operationGroups:
|
|||
az:
|
||||
name: list
|
||||
description: Returns attestation providers list in a resource group.
|
||||
command: attestation attestation_providers list
|
||||
command: attestation attestation-providers list
|
||||
cli:
|
||||
name: ListByResourceGroup
|
||||
description: Returns attestation providers list in a resource group.
|
||||
|
@ -2526,7 +2526,7 @@ operationGroups:
|
|||
az:
|
||||
name: AttestationProviders
|
||||
description: ''
|
||||
command: attestation attestation_providers
|
||||
command: attestation attestation-providers
|
||||
cli:
|
||||
name: AttestationProviders
|
||||
description: ''
|
||||
|
|
|
@ -23,7 +23,7 @@ schemas:
|
|||
name: OperationsDefinition-name
|
||||
description: Name of the operation.
|
||||
az:
|
||||
name: operations_definition-name
|
||||
name: operations-definition-name
|
||||
description: Name of the operation.
|
||||
cli:
|
||||
name: OperationsDefinition-name
|
||||
|
@ -55,7 +55,7 @@ schemas:
|
|||
name: OperationsDisplayDefinition-provider
|
||||
description: Resource provider of the operation.
|
||||
az:
|
||||
name: operations_display_definition-provider
|
||||
name: operations-display-definition-provider
|
||||
description: Resource provider of the operation.
|
||||
cli:
|
||||
name: OperationsDisplayDefinition-provider
|
||||
|
@ -82,7 +82,7 @@ schemas:
|
|||
name: OperationsDisplayDefinition-resource
|
||||
description: Resource for the operation.
|
||||
az:
|
||||
name: operations_display_definition-resource
|
||||
name: operations-display-definition-resource
|
||||
description: Resource for the operation.
|
||||
cli:
|
||||
name: OperationsDisplayDefinition-resource
|
||||
|
@ -109,7 +109,7 @@ schemas:
|
|||
name: OperationsDisplayDefinition-operation
|
||||
description: Short description of the operation.
|
||||
az:
|
||||
name: operations_display_definition-operation
|
||||
name: operations-display-definition-operation
|
||||
description: Short description of the operation.
|
||||
cli:
|
||||
name: OperationsDisplayDefinition-operation
|
||||
|
@ -136,7 +136,7 @@ schemas:
|
|||
name: OperationsDisplayDefinition-description
|
||||
description: Description of the operation.
|
||||
az:
|
||||
name: operations_display_definition-description
|
||||
name: operations-display-definition-description
|
||||
description: Description of the operation.
|
||||
cli:
|
||||
name: OperationsDisplayDefinition-description
|
||||
|
@ -160,7 +160,7 @@ schemas:
|
|||
description: Display object with properties of the operation.
|
||||
namespace: Api20180901Preview
|
||||
az:
|
||||
name: operations_display_definition
|
||||
name: operations-display-definition
|
||||
description: Display object with properties of the operation.
|
||||
cli:
|
||||
name: OperationsDisplayDefinition
|
||||
|
@ -184,7 +184,7 @@ schemas:
|
|||
description: Definition object with the name and properties of an operation.
|
||||
namespace: Api20180901Preview
|
||||
az:
|
||||
name: operations_definition
|
||||
name: operations-definition
|
||||
description: Definition object with the name and properties of an operation.
|
||||
cli:
|
||||
name: OperationsDefinition
|
||||
|
@ -195,7 +195,7 @@ schemas:
|
|||
name: OperationList-value
|
||||
description: List of supported operations.
|
||||
az:
|
||||
name: operation_list-value
|
||||
name: operation-list-value
|
||||
description: List of supported operations.
|
||||
cli:
|
||||
name: OperationList-value
|
||||
|
@ -219,7 +219,7 @@ schemas:
|
|||
description: List of supported operations.
|
||||
namespace: Api20180901Preview
|
||||
az:
|
||||
name: operation_list
|
||||
name: operation-list
|
||||
description: List of supported operations.
|
||||
cli:
|
||||
name: OperationList
|
||||
|
@ -246,7 +246,7 @@ schemas:
|
|||
name: CloudErrorBody-code
|
||||
description: An identifier for the error. Codes are invariant and are intended to be consumed programmatically.
|
||||
az:
|
||||
name: cloud_error_body-code
|
||||
name: cloud-error-body-code
|
||||
description: An identifier for the error. Codes are invariant and are intended to be consumed programmatically.
|
||||
cli:
|
||||
name: CloudErrorBody-code
|
||||
|
@ -273,7 +273,7 @@ schemas:
|
|||
name: CloudErrorBody-message
|
||||
description: 'A message describing the error, intended to be suitable for displaying in a user interface.'
|
||||
az:
|
||||
name: cloud_error_body-message
|
||||
name: cloud-error-body-message
|
||||
description: 'A message describing the error, intended to be suitable for displaying in a user interface.'
|
||||
cli:
|
||||
name: CloudErrorBody-message
|
||||
|
@ -299,7 +299,7 @@ schemas:
|
|||
description: An error response from Attestation.
|
||||
namespace: Api20180901Preview
|
||||
az:
|
||||
name: cloud_error_body
|
||||
name: cloud-error-body
|
||||
description: An error response from Attestation.
|
||||
cli:
|
||||
name: CloudErrorBody
|
||||
|
@ -325,7 +325,7 @@ schemas:
|
|||
description: An error response from Attestation.
|
||||
namespace: Api20180901Preview
|
||||
az:
|
||||
name: cloud_error
|
||||
name: cloud-error
|
||||
description: An error response from Attestation.
|
||||
cli:
|
||||
name: CloudError
|
||||
|
@ -372,7 +372,7 @@ schemas:
|
|||
name: NotReady
|
||||
description: ''
|
||||
az:
|
||||
name: not_ready
|
||||
name: not-ready
|
||||
description: ''
|
||||
cli:
|
||||
name: NotReady
|
||||
|
@ -409,7 +409,7 @@ schemas:
|
|||
name: AttestationServiceStatus
|
||||
description: Status of attestation service.
|
||||
az:
|
||||
name: attestation_service_status
|
||||
name: attestation-service-status
|
||||
description: Status of attestation service.
|
||||
cli:
|
||||
name: AttestationServiceStatus
|
||||
|
@ -437,7 +437,7 @@ schemas:
|
|||
name: StatusResult-attestUri
|
||||
description: Gets the uri of attestation service
|
||||
az:
|
||||
name: status_result-attest_uri
|
||||
name: status-result-attest-uri
|
||||
description: Gets the uri of attestation service
|
||||
cli:
|
||||
name: StatusResult-attestUri
|
||||
|
@ -450,7 +450,7 @@ schemas:
|
|||
name: attestUri
|
||||
description: Gets the uri of attestation service
|
||||
az:
|
||||
name: attest_uri
|
||||
name: attest-uri
|
||||
description: Gets the uri of attestation service
|
||||
cli:
|
||||
name: attestUri
|
||||
|
@ -462,7 +462,7 @@ schemas:
|
|||
description: Status of attestation service.
|
||||
namespace: Api20180901Preview
|
||||
az:
|
||||
name: status_result
|
||||
name: status-result
|
||||
description: Status of attestation service.
|
||||
cli:
|
||||
name: StatusResult
|
||||
|
@ -489,7 +489,7 @@ schemas:
|
|||
description: Attestation service response message.
|
||||
namespace: Api20180901Preview
|
||||
az:
|
||||
name: attestation_provider
|
||||
name: attestation-provider
|
||||
description: Attestation service response message.
|
||||
cli:
|
||||
name: AttestationProvider
|
||||
|
@ -514,7 +514,7 @@ schemas:
|
|||
name: AzureEntityResource-etag
|
||||
description: Resource Etag.
|
||||
az:
|
||||
name: azure_entity_resource-etag
|
||||
name: azure-entity-resource-etag
|
||||
description: Resource Etag.
|
||||
cli:
|
||||
name: AzureEntityResource-etag
|
||||
|
@ -539,7 +539,7 @@ schemas:
|
|||
description: The resource model definition for a Azure Resource Manager resource with an etag.
|
||||
namespace: Api10
|
||||
az:
|
||||
name: azure_entity_resource
|
||||
name: azure-entity-resource
|
||||
description: The resource model definition for a Azure Resource Manager resource with an etag.
|
||||
cli:
|
||||
name: AzureEntityResource
|
||||
|
@ -578,7 +578,7 @@ schemas:
|
|||
name: TrackedResource-tags
|
||||
description: Resource tags.
|
||||
az:
|
||||
name: tracked_resource-tags
|
||||
name: tracked-resource-tags
|
||||
description: Resource tags.
|
||||
cli:
|
||||
name: TrackedResource-tags
|
||||
|
@ -610,7 +610,7 @@ schemas:
|
|||
name: TrackedResource-location
|
||||
description: The geo-location where the resource lives
|
||||
az:
|
||||
name: tracked_resource-location
|
||||
name: tracked-resource-location
|
||||
description: The geo-location where the resource lives
|
||||
cli:
|
||||
name: TrackedResource-location
|
||||
|
@ -635,7 +635,7 @@ schemas:
|
|||
description: The resource model definition for a ARM tracked top level resource
|
||||
namespace: Api10
|
||||
az:
|
||||
name: tracked_resource
|
||||
name: tracked-resource
|
||||
description: The resource model definition for a ARM tracked top level resource
|
||||
cli:
|
||||
name: TrackedResource
|
||||
|
@ -656,7 +656,7 @@ schemas:
|
|||
description: The resource model definition for a ARM proxy resource. It will have everything other than required location and tags
|
||||
namespace: Api10
|
||||
az:
|
||||
name: proxy_resource
|
||||
name: proxy-resource
|
||||
description: The resource model definition for a ARM proxy resource. It will have everything other than required location and tags
|
||||
cli:
|
||||
name: ProxyResource
|
||||
|
@ -782,7 +782,7 @@ schemas:
|
|||
name: AttestationServiceCreationParams-attestationPolicy
|
||||
description: Name of attestation policy.
|
||||
az:
|
||||
name: attestation_service_creation_params-attestation_policy
|
||||
name: attestation-service-creation-params-attestation-policy
|
||||
description: Name of attestation policy.
|
||||
cli:
|
||||
name: AttestationServiceCreationParams-attestationPolicy
|
||||
|
@ -794,7 +794,7 @@ schemas:
|
|||
name: attestationPolicy
|
||||
description: Name of attestation policy.
|
||||
az:
|
||||
name: attestation_policy
|
||||
name: attestation-policy
|
||||
description: Name of attestation policy.
|
||||
cli:
|
||||
name: attestationPolicy
|
||||
|
@ -828,7 +828,7 @@ schemas:
|
|||
established by [JWA] or be a value that contains a Collision-
|
||||
Resistant Name.
|
||||
az:
|
||||
name: jsonweb_key-alg
|
||||
name: j-s-o-n-web-key-alg
|
||||
description: |-
|
||||
The "alg" (algorithm) parameter identifies the algorithm intended for
|
||||
use with the key. The values used should either be registered in the
|
||||
|
@ -881,7 +881,7 @@ schemas:
|
|||
name: JSONWebKey-crv
|
||||
description: The "crv" (curve) parameter identifies the curve type
|
||||
az:
|
||||
name: jsonweb_key-crv
|
||||
name: j-s-o-n-web-key-crv
|
||||
description: The "crv" (curve) parameter identifies the curve type
|
||||
cli:
|
||||
name: JSONWebKey-crv
|
||||
|
@ -909,7 +909,7 @@ schemas:
|
|||
name: JSONWebKey-d
|
||||
description: RSA private exponent or ECC private key
|
||||
az:
|
||||
name: jsonweb_key-d
|
||||
name: j-s-o-n-web-key-d
|
||||
description: RSA private exponent or ECC private key
|
||||
cli:
|
||||
name: JSONWebKey-d
|
||||
|
@ -937,7 +937,7 @@ schemas:
|
|||
name: JSONWebKey-dp
|
||||
description: RSA Private Key Parameter
|
||||
az:
|
||||
name: jsonweb_key-dp
|
||||
name: j-s-o-n-web-key-dp
|
||||
description: RSA Private Key Parameter
|
||||
cli:
|
||||
name: JSONWebKey-dp
|
||||
|
@ -965,7 +965,7 @@ schemas:
|
|||
name: JSONWebKey-dq
|
||||
description: RSA Private Key Parameter
|
||||
az:
|
||||
name: jsonweb_key-dq
|
||||
name: j-s-o-n-web-key-dq
|
||||
description: RSA Private Key Parameter
|
||||
cli:
|
||||
name: JSONWebKey-dq
|
||||
|
@ -993,7 +993,7 @@ schemas:
|
|||
name: JSONWebKey-e
|
||||
description: 'RSA public exponent, in Base64'
|
||||
az:
|
||||
name: jsonweb_key-e
|
||||
name: j-s-o-n-web-key-e
|
||||
description: 'RSA public exponent, in Base64'
|
||||
cli:
|
||||
name: JSONWebKey-e
|
||||
|
@ -1021,7 +1021,7 @@ schemas:
|
|||
name: JSONWebKey-k
|
||||
description: Symmetric key
|
||||
az:
|
||||
name: jsonweb_key-k
|
||||
name: j-s-o-n-web-key-k
|
||||
description: Symmetric key
|
||||
cli:
|
||||
name: JSONWebKey-k
|
||||
|
@ -1058,7 +1058,7 @@ schemas:
|
|||
equivalent alternatives by the application using them.) The "kid"
|
||||
value is a case-sensitive string.
|
||||
az:
|
||||
name: jsonweb_key-kid
|
||||
name: j-s-o-n-web-key-kid
|
||||
description: |-
|
||||
The "kid" (key ID) parameter is used to match a specific key. This
|
||||
is used, for instance, to choose among a set of keys within a JWK Set
|
||||
|
@ -1136,7 +1136,7 @@ schemas:
|
|||
established by [JWA] or be a value that contains a Collision-
|
||||
Resistant Name. The "kty" value is a case-sensitive string.
|
||||
az:
|
||||
name: jsonweb_key-kty
|
||||
name: j-s-o-n-web-key-kty
|
||||
description: |-
|
||||
The "kty" (key type) parameter identifies the cryptographic algorithm
|
||||
family used with the key, such as "RSA" or "EC". "kty" values should
|
||||
|
@ -1189,7 +1189,7 @@ schemas:
|
|||
name: JSONWebKey-n
|
||||
description: 'RSA modulus, in Base64'
|
||||
az:
|
||||
name: jsonweb_key-n
|
||||
name: j-s-o-n-web-key-n
|
||||
description: 'RSA modulus, in Base64'
|
||||
cli:
|
||||
name: JSONWebKey-n
|
||||
|
@ -1217,7 +1217,7 @@ schemas:
|
|||
name: JSONWebKey-p
|
||||
description: RSA secret prime
|
||||
az:
|
||||
name: jsonweb_key-p
|
||||
name: j-s-o-n-web-key-p
|
||||
description: RSA secret prime
|
||||
cli:
|
||||
name: JSONWebKey-p
|
||||
|
@ -1245,7 +1245,7 @@ schemas:
|
|||
name: JSONWebKey-q
|
||||
description: 'RSA secret prime, with p < q'
|
||||
az:
|
||||
name: jsonweb_key-q
|
||||
name: j-s-o-n-web-key-q
|
||||
description: 'RSA secret prime, with p < q'
|
||||
cli:
|
||||
name: JSONWebKey-q
|
||||
|
@ -1273,7 +1273,7 @@ schemas:
|
|||
name: JSONWebKey-qi
|
||||
description: RSA Private Key Parameter
|
||||
az:
|
||||
name: jsonweb_key-qi
|
||||
name: j-s-o-n-web-key-qi
|
||||
description: RSA Private Key Parameter
|
||||
cli:
|
||||
name: JSONWebKey-qi
|
||||
|
@ -1305,7 +1305,7 @@ schemas:
|
|||
a public key is used for encrypting data or verifying the signature
|
||||
on data. Values are commonly "sig" (signature) or "enc" (encryption).
|
||||
az:
|
||||
name: jsonweb_key-use
|
||||
name: j-s-o-n-web-key-use
|
||||
description: |-
|
||||
Use ("public key use") identifies the intended use of
|
||||
the public key. The "use" parameter is employed to indicate whether
|
||||
|
@ -1353,7 +1353,7 @@ schemas:
|
|||
name: JSONWebKey-x
|
||||
description: X coordinate for the Elliptic Curve point
|
||||
az:
|
||||
name: jsonweb_key-x
|
||||
name: j-s-o-n-web-key-x
|
||||
description: X coordinate for the Elliptic Curve point
|
||||
cli:
|
||||
name: JSONWebKey-x
|
||||
|
@ -1385,7 +1385,7 @@ schemas:
|
|||
name: JSONWebKey-x5cItem
|
||||
description: ''
|
||||
az:
|
||||
name: jsonweb_key-x5c_item
|
||||
name: j-s-o-n-web-key-x5c-item
|
||||
description: ''
|
||||
cli:
|
||||
name: JSONWebKey-x5cItem
|
||||
|
@ -1403,7 +1403,7 @@ schemas:
|
|||
The PKIX certificate containing the key value MUST be the first
|
||||
certificate.
|
||||
az:
|
||||
name: jsonweb_key-x5c
|
||||
name: j-s-o-n-web-key-x5c
|
||||
description: |-
|
||||
The "x5c" (X.509 certificate chain) parameter contains a chain of one
|
||||
or more PKIX certificates [RFC5280]. The certificate chain is
|
||||
|
@ -1466,7 +1466,7 @@ schemas:
|
|||
name: JSONWebKey-y
|
||||
description: Y coordinate for the Elliptic Curve point
|
||||
az:
|
||||
name: jsonweb_key-y
|
||||
name: j-s-o-n-web-key-y
|
||||
description: Y coordinate for the Elliptic Curve point
|
||||
cli:
|
||||
name: JSONWebKey-y
|
||||
|
@ -1491,7 +1491,7 @@ schemas:
|
|||
description: ''
|
||||
namespace: Api10
|
||||
az:
|
||||
name: jsonweb_key
|
||||
name: j-s-o-n-web-key
|
||||
description: ''
|
||||
cli:
|
||||
name: JSONWebKey
|
||||
|
@ -1507,7 +1507,7 @@ schemas:
|
|||
can choose to assign a meaning to the order for their purposes, if
|
||||
desired.
|
||||
az:
|
||||
name: jsonweb_key_set-keys
|
||||
name: j-s-o-n-web-key-set-keys
|
||||
description: |-
|
||||
The value of the "keys" parameter is an array of JWK values. By
|
||||
default, the order of the JWK values within the array does not imply
|
||||
|
@ -1556,7 +1556,7 @@ schemas:
|
|||
description: ''
|
||||
namespace: Api10
|
||||
az:
|
||||
name: jsonweb_key_set
|
||||
name: j-s-o-n-web-key-set
|
||||
description: ''
|
||||
cli:
|
||||
name: JSONWebKeySet
|
||||
|
@ -1568,7 +1568,7 @@ schemas:
|
|||
name: policySigningCertificates
|
||||
description: ''
|
||||
az:
|
||||
name: policy_signing_certificates
|
||||
name: policy-signing-certificates
|
||||
description: ''
|
||||
cli:
|
||||
name: policySigningCertificates
|
||||
|
@ -1580,7 +1580,7 @@ schemas:
|
|||
description: Client supplied parameters passed to attestation service.
|
||||
namespace: Api20180901Preview
|
||||
az:
|
||||
name: attestation_service_creation_params
|
||||
name: attestation-service-creation-params
|
||||
description: Client supplied parameters passed to attestation service.
|
||||
cli:
|
||||
name: AttestationServiceCreationParams
|
||||
|
@ -1603,7 +1603,7 @@ schemas:
|
|||
name: AttestationProviderListResult-value
|
||||
description: Attestation Provider array.
|
||||
az:
|
||||
name: attestation_provider_list_result-value
|
||||
name: attestation-provider-list-result-value
|
||||
description: Attestation Provider array.
|
||||
cli:
|
||||
name: AttestationProviderListResult-value
|
||||
|
@ -1627,7 +1627,7 @@ schemas:
|
|||
description: Attestation Providers List.
|
||||
namespace: Api20180901Preview
|
||||
az:
|
||||
name: attestation_provider_list_result
|
||||
name: attestation-provider-list-result
|
||||
description: Attestation Providers List.
|
||||
cli:
|
||||
name: AttestationProviderListResult
|
||||
|
@ -1656,7 +1656,7 @@ schemas:
|
|||
name: ApiVersion-2018-09-01-preview
|
||||
description: Api Version (2018-09-01-preview)
|
||||
az:
|
||||
name: api_version-2018-09-01-preview
|
||||
name: api-version-2018-09-01-preview
|
||||
description: Api Version (2018-09-01-preview)
|
||||
cli:
|
||||
name: ApiVersion-2018-09-01-preview
|
||||
|
@ -1671,7 +1671,7 @@ schemas:
|
|||
name: ApiVersion-2018-09-01-preview
|
||||
description: Api Version (2018-09-01-preview)
|
||||
az:
|
||||
name: api_version-2018-09-01-preview
|
||||
name: api-version-2018-09-01-preview
|
||||
description: Api Version (2018-09-01-preview)
|
||||
cli:
|
||||
name: ApiVersion-2018-09-01-preview
|
||||
|
@ -1686,7 +1686,7 @@ schemas:
|
|||
name: ApiVersion-2018-09-01-preview
|
||||
description: Api Version (2018-09-01-preview)
|
||||
az:
|
||||
name: api_version-2018-09-01-preview
|
||||
name: api-version-2018-09-01-preview
|
||||
description: Api Version (2018-09-01-preview)
|
||||
cli:
|
||||
name: ApiVersion-2018-09-01-preview
|
||||
|
@ -1701,7 +1701,7 @@ schemas:
|
|||
name: ApiVersion-2018-09-01-preview
|
||||
description: Api Version (2018-09-01-preview)
|
||||
az:
|
||||
name: api_version-2018-09-01-preview
|
||||
name: api-version-2018-09-01-preview
|
||||
description: Api Version (2018-09-01-preview)
|
||||
cli:
|
||||
name: ApiVersion-2018-09-01-preview
|
||||
|
@ -1716,7 +1716,7 @@ schemas:
|
|||
name: ApiVersion-2018-09-01-preview
|
||||
description: Api Version (2018-09-01-preview)
|
||||
az:
|
||||
name: api_version-2018-09-01-preview
|
||||
name: api-version-2018-09-01-preview
|
||||
description: Api Version (2018-09-01-preview)
|
||||
cli:
|
||||
name: ApiVersion-2018-09-01-preview
|
||||
|
@ -1731,7 +1731,7 @@ schemas:
|
|||
name: ApiVersion-2018-09-01-preview
|
||||
description: Api Version (2018-09-01-preview)
|
||||
az:
|
||||
name: api_version-2018-09-01-preview
|
||||
name: api-version-2018-09-01-preview
|
||||
description: Api Version (2018-09-01-preview)
|
||||
cli:
|
||||
name: ApiVersion-2018-09-01-preview
|
||||
|
@ -1818,7 +1818,7 @@ globalParameters:
|
|||
description: The ID of the target subscription.
|
||||
serializedName: subscriptionId
|
||||
az:
|
||||
name: subscription_id
|
||||
name: subscription-id
|
||||
description: The ID of the target subscription.
|
||||
cli:
|
||||
name: subscriptionId
|
||||
|
@ -1857,7 +1857,7 @@ globalParameters:
|
|||
description: Api Version
|
||||
serializedName: api-version
|
||||
az:
|
||||
name: api_version
|
||||
name: api-version
|
||||
description: Api Version
|
||||
cli:
|
||||
name: ApiVersion
|
||||
|
@ -1981,7 +1981,7 @@ operationGroups:
|
|||
description: The name of the resource group. The name is case insensitive.
|
||||
serializedName: resourceGroupName
|
||||
az:
|
||||
name: resource_group_name
|
||||
name: resource-group-name
|
||||
description: The name of the resource group. The name is case insensitive.
|
||||
cli:
|
||||
name: resourceGroupName
|
||||
|
@ -1999,7 +1999,7 @@ operationGroups:
|
|||
description: Name of the attestation service instance
|
||||
serializedName: providerName
|
||||
az:
|
||||
name: provider_name
|
||||
name: provider-name
|
||||
description: Name of the attestation service instance
|
||||
cli:
|
||||
name: providerName
|
||||
|
@ -2069,7 +2069,7 @@ operationGroups:
|
|||
az:
|
||||
name: show
|
||||
description: Get the status of Attestation Provider.
|
||||
command: attestation attestation_providers show
|
||||
command: attestation attestation-providers show
|
||||
cli:
|
||||
name: Get
|
||||
description: Get the status of Attestation Provider.
|
||||
|
@ -2090,7 +2090,7 @@ operationGroups:
|
|||
description: The name of the resource group. The name is case insensitive.
|
||||
serializedName: resourceGroupName
|
||||
az:
|
||||
name: resource_group_name
|
||||
name: resource-group-name
|
||||
description: The name of the resource group. The name is case insensitive.
|
||||
cli:
|
||||
name: resourceGroupName
|
||||
|
@ -2108,7 +2108,7 @@ operationGroups:
|
|||
description: Name of the attestation service instance
|
||||
serializedName: providerName
|
||||
az:
|
||||
name: provider_name
|
||||
name: provider-name
|
||||
description: Name of the attestation service instance
|
||||
cli:
|
||||
name: providerName
|
||||
|
@ -2127,7 +2127,7 @@ operationGroups:
|
|||
name: creationParams
|
||||
description: Client supplied parameters.
|
||||
az:
|
||||
name: creation_params
|
||||
name: creation-params
|
||||
description: Client supplied parameters.
|
||||
cli:
|
||||
name: creationParams
|
||||
|
@ -2224,7 +2224,7 @@ operationGroups:
|
|||
az:
|
||||
name: create
|
||||
description: Creates or updates the Attestation Provider.
|
||||
command: attestation attestation_providers create
|
||||
command: attestation attestation-providers create
|
||||
cli:
|
||||
name: Create
|
||||
description: Creates or updates the Attestation Provider.
|
||||
|
@ -2245,7 +2245,7 @@ operationGroups:
|
|||
description: The name of the resource group. The name is case insensitive.
|
||||
serializedName: resourceGroupName
|
||||
az:
|
||||
name: resource_group_name
|
||||
name: resource-group-name
|
||||
description: The name of the resource group. The name is case insensitive.
|
||||
cli:
|
||||
name: resourceGroupName
|
||||
|
@ -2263,7 +2263,7 @@ operationGroups:
|
|||
description: Name of the attestation service instance
|
||||
serializedName: providerName
|
||||
az:
|
||||
name: provider_name
|
||||
name: provider-name
|
||||
description: Name of the attestation service instance
|
||||
cli:
|
||||
name: providerName
|
||||
|
@ -2344,7 +2344,7 @@ operationGroups:
|
|||
az:
|
||||
name: delete
|
||||
description: Delete Attestation Service.
|
||||
command: attestation attestation_providers delete
|
||||
command: attestation attestation-providers delete
|
||||
cli:
|
||||
name: Delete
|
||||
description: Delete Attestation Service.
|
||||
|
@ -2419,7 +2419,7 @@ operationGroups:
|
|||
az:
|
||||
name: list
|
||||
description: Returns a list of attestation providers in a subscription.
|
||||
command: attestation attestation_providers list
|
||||
command: attestation attestation-providers list
|
||||
cli:
|
||||
name: List
|
||||
description: Returns a list of attestation providers in a subscription.
|
||||
|
@ -2439,7 +2439,7 @@ operationGroups:
|
|||
description: The name of the resource group. The name is case insensitive.
|
||||
serializedName: resourceGroupName
|
||||
az:
|
||||
name: resource_group_name
|
||||
name: resource-group-name
|
||||
description: The name of the resource group. The name is case insensitive.
|
||||
cli:
|
||||
name: resourceGroupName
|
||||
|
@ -2514,7 +2514,7 @@ operationGroups:
|
|||
az:
|
||||
name: list
|
||||
description: Returns attestation providers list in a resource group.
|
||||
command: attestation attestation_providers list
|
||||
command: attestation attestation-providers list
|
||||
cli:
|
||||
name: ListByResourceGroup
|
||||
description: Returns attestation providers list in a resource group.
|
||||
|
@ -2526,7 +2526,7 @@ operationGroups:
|
|||
az:
|
||||
name: AttestationProviders
|
||||
description: ''
|
||||
command: attestation attestation_providers
|
||||
command: attestation attestation-providers
|
||||
cli:
|
||||
name: AttestationProviders
|
||||
description: ''
|
||||
|
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -27,6 +27,7 @@ These are the global settings for the Managed Network API.
|
|||
``` yaml
|
||||
openapi-type: arm
|
||||
tag: package-2019-06-01-preview
|
||||
add-credential: true
|
||||
```
|
||||
|
||||
### Tag: package-2019-06-01-preview
|
||||
|
|
|
@ -9,12 +9,12 @@
|
|||
from knack.help_files import helps # pylint: disable=unused-import
|
||||
|
||||
|
||||
helps['managed-network managed_networks'] = """
|
||||
helps['managed-network managed-networks'] = """
|
||||
type: group
|
||||
short-summary: managed-network managed_networks
|
||||
short-summary: managed-network managed-networks
|
||||
"""
|
||||
|
||||
helps['managed-network managed_networks list'] = """
|
||||
helps['managed-network managed-networks list'] = """
|
||||
type: command
|
||||
short-summary: The ListByResourceGroup ManagedNetwork operation retrieves all the Managed Network resources in a resource group in a paginated format.
|
||||
examples:
|
||||
|
@ -23,7 +23,7 @@ helps['managed-network managed_networks list'] = """
|
|||
az managed-network managed_networks list --resource-group "myResourceGroup"
|
||||
"""
|
||||
|
||||
helps['managed-network managed_networks show'] = """
|
||||
helps['managed-network managed-networks show'] = """
|
||||
type: command
|
||||
short-summary: The Get ManagedNetworks operation gets a Managed Network Resource, specified by the resource group and Managed Network name
|
||||
examples:
|
||||
|
@ -32,7 +32,7 @@ helps['managed-network managed_networks show'] = """
|
|||
az managed-network managed_networks show
|
||||
"""
|
||||
|
||||
helps['managed-network managed_networks create'] = """
|
||||
helps['managed-network managed-networks create'] = """
|
||||
type: command
|
||||
short-summary: The Put ManagedNetworks operation creates/updates a Managed Network Resource, specified by resource group and Managed Network name
|
||||
examples:
|
||||
|
@ -42,7 +42,7 @@ helps['managed-network managed_networks create'] = """
|
|||
"myManagedNetwork" --resource-group "myResourceGroup"
|
||||
"""
|
||||
|
||||
helps['managed-network managed_networks update'] = """
|
||||
helps['managed-network managed-networks update'] = """
|
||||
type: command
|
||||
short-summary: Updates the specified Managed Network resource tags.
|
||||
examples:
|
||||
|
@ -52,7 +52,7 @@ helps['managed-network managed_networks update'] = """
|
|||
--resource-group "myResourceGroup"
|
||||
"""
|
||||
|
||||
helps['managed-network managed_networks delete'] = """
|
||||
helps['managed-network managed-networks delete'] = """
|
||||
type: command
|
||||
short-summary: The Delete ManagedNetworks operation deletes a Managed Network Resource, specified by the resource group and Managed Network name
|
||||
examples:
|
||||
|
@ -62,12 +62,12 @@ helps['managed-network managed_networks delete'] = """
|
|||
--resource-group "myResourceGroup"
|
||||
"""
|
||||
|
||||
helps['managed-network scope_assignments'] = """
|
||||
helps['managed-network scope-assignments'] = """
|
||||
type: group
|
||||
short-summary: managed-network scope_assignments
|
||||
short-summary: managed-network scope-assignments
|
||||
"""
|
||||
|
||||
helps['managed-network scope_assignments list'] = """
|
||||
helps['managed-network scope-assignments list'] = """
|
||||
type: command
|
||||
short-summary: Get the specified scope assignment.
|
||||
examples:
|
||||
|
@ -76,7 +76,7 @@ helps['managed-network scope_assignments list'] = """
|
|||
az managed-network scope_assignments list --scope "subscriptions/subscriptionC"
|
||||
"""
|
||||
|
||||
helps['managed-network scope_assignments show'] = """
|
||||
helps['managed-network scope-assignments show'] = """
|
||||
type: command
|
||||
short-summary: Get the specified scope assignment.
|
||||
examples:
|
||||
|
@ -86,7 +86,7 @@ helps['managed-network scope_assignments show'] = """
|
|||
--scope-assignment-name "subscriptionCAssignment"
|
||||
"""
|
||||
|
||||
helps['managed-network scope_assignments create'] = """
|
||||
helps['managed-network scope-assignments create'] = """
|
||||
type: command
|
||||
short-summary: Creates a scope assignment.
|
||||
examples:
|
||||
|
@ -98,7 +98,7 @@ helps['managed-network scope_assignments create'] = """
|
|||
"subscriptionCAssignment"
|
||||
"""
|
||||
|
||||
helps['managed-network scope_assignments update'] = """
|
||||
helps['managed-network scope-assignments update'] = """
|
||||
type: command
|
||||
short-summary: Creates a scope assignment.
|
||||
examples:
|
||||
|
@ -110,7 +110,7 @@ helps['managed-network scope_assignments update'] = """
|
|||
"subscriptionCAssignment"
|
||||
"""
|
||||
|
||||
helps['managed-network scope_assignments delete'] = """
|
||||
helps['managed-network scope-assignments delete'] = """
|
||||
type: command
|
||||
short-summary: Deletes a scope assignment.
|
||||
examples:
|
||||
|
@ -120,12 +120,12 @@ helps['managed-network scope_assignments delete'] = """
|
|||
--scope-assignment-name "subscriptionCAssignment"
|
||||
"""
|
||||
|
||||
helps['managed-network managed_network_groups'] = """
|
||||
helps['managed-network managed-network-groups'] = """
|
||||
type: group
|
||||
short-summary: managed-network managed_network_groups
|
||||
short-summary: managed-network managed-network-groups
|
||||
"""
|
||||
|
||||
helps['managed-network managed_network_groups list'] = """
|
||||
helps['managed-network managed-network-groups list'] = """
|
||||
type: command
|
||||
short-summary: The ListByManagedNetwork ManagedNetworkGroup operation retrieves all the Managed Network Groups in a specified Managed Networks in a paginated format.
|
||||
examples:
|
||||
|
@ -135,7 +135,7 @@ helps['managed-network managed_network_groups list'] = """
|
|||
--resource-group "myResourceGroup"
|
||||
"""
|
||||
|
||||
helps['managed-network managed_network_groups show'] = """
|
||||
helps['managed-network managed-network-groups show'] = """
|
||||
type: command
|
||||
short-summary: The Get ManagedNetworkGroups operation gets a Managed Network Group specified by the resource group, Managed Network name, and group name
|
||||
examples:
|
||||
|
@ -146,7 +146,7 @@ helps['managed-network managed_network_groups show'] = """
|
|||
"myResourceGroup"
|
||||
"""
|
||||
|
||||
helps['managed-network managed_network_groups create'] = """
|
||||
helps['managed-network managed-network-groups create'] = """
|
||||
type: command
|
||||
short-summary: The Put ManagedNetworkGroups operation creates or updates a Managed Network Group resource
|
||||
examples:
|
||||
|
@ -157,7 +157,7 @@ helps['managed-network managed_network_groups create'] = """
|
|||
"myResourceGroup"
|
||||
"""
|
||||
|
||||
helps['managed-network managed_network_groups update'] = """
|
||||
helps['managed-network managed-network-groups update'] = """
|
||||
type: command
|
||||
short-summary: The Put ManagedNetworkGroups operation creates or updates a Managed Network Group resource
|
||||
examples:
|
||||
|
@ -168,7 +168,7 @@ helps['managed-network managed_network_groups update'] = """
|
|||
"myResourceGroup"
|
||||
"""
|
||||
|
||||
helps['managed-network managed_network_groups delete'] = """
|
||||
helps['managed-network managed-network-groups delete'] = """
|
||||
type: command
|
||||
short-summary: The Delete ManagedNetworkGroups operation deletes a Managed Network Group specified by the resource group, Managed Network name, and group name
|
||||
examples:
|
||||
|
@ -179,12 +179,12 @@ helps['managed-network managed_network_groups delete'] = """
|
|||
"myResourceGroup"
|
||||
"""
|
||||
|
||||
helps['managed-network managed_network_peering_policies'] = """
|
||||
helps['managed-network managed-network-peering-policies'] = """
|
||||
type: group
|
||||
short-summary: managed-network managed_network_peering_policies
|
||||
short-summary: managed-network managed-network-peering-policies
|
||||
"""
|
||||
|
||||
helps['managed-network managed_network_peering_policies list'] = """
|
||||
helps['managed-network managed-network-peering-policies list'] = """
|
||||
type: command
|
||||
short-summary: The ListByManagedNetwork PeeringPolicies operation retrieves all the Managed Network Peering Policies in a specified Managed Network, in a paginated format.
|
||||
examples:
|
||||
|
@ -194,7 +194,7 @@ helps['managed-network managed_network_peering_policies list'] = """
|
|||
"myManagedNetwork" --resource-group "myResourceGroup"
|
||||
"""
|
||||
|
||||
helps['managed-network managed_network_peering_policies show'] = """
|
||||
helps['managed-network managed-network-peering-policies show'] = """
|
||||
type: command
|
||||
short-summary: The Get ManagedNetworkPeeringPolicies operation gets a Managed Network Peering Policy resource, specified by the resource group, Managed Network name, and peering policy name
|
||||
examples:
|
||||
|
@ -205,7 +205,7 @@ helps['managed-network managed_network_peering_policies show'] = """
|
|||
"myResourceGroup"
|
||||
"""
|
||||
|
||||
helps['managed-network managed_network_peering_policies create'] = """
|
||||
helps['managed-network managed-network-peering-policies create'] = """
|
||||
type: command
|
||||
short-summary: The Put ManagedNetworkPeeringPolicies operation creates/updates a new Managed Network Peering Policy
|
||||
examples:
|
||||
|
@ -217,7 +217,7 @@ helps['managed-network managed_network_peering_policies create'] = """
|
|||
oft.Network/virtualNetworks/myHubVnet" --resource-group "myResourceGroup"
|
||||
"""
|
||||
|
||||
helps['managed-network managed_network_peering_policies update'] = """
|
||||
helps['managed-network managed-network-peering-policies update'] = """
|
||||
type: command
|
||||
short-summary: The Put ManagedNetworkPeeringPolicies operation creates/updates a new Managed Network Peering Policy
|
||||
examples:
|
||||
|
@ -229,7 +229,7 @@ helps['managed-network managed_network_peering_policies update'] = """
|
|||
oft.Network/virtualNetworks/myHubVnet" --resource-group "myResourceGroup"
|
||||
"""
|
||||
|
||||
helps['managed-network managed_network_peering_policies delete'] = """
|
||||
helps['managed-network managed-network-peering-policies delete'] = """
|
||||
type: command
|
||||
short-summary: The Delete ManagedNetworkPeeringPolicies operation deletes a Managed Network Peering Policy, specified by the resource group, Managed Network name, and peering policy name
|
||||
examples:
|
||||
|
|
|
@ -25,16 +25,16 @@ from azext_managed_network.actions import (
|
|||
|
||||
def load_arguments(self, _):
|
||||
|
||||
with self.argument_context('managed-network managed_networks list') as c:
|
||||
with self.argument_context('managed-network managed-networks list') as c:
|
||||
c.argument('resource_group_name', resource_group_name_type)
|
||||
c.argument('top', id_part=None, help='May be used to limit the number of results in a page for list queries.')
|
||||
c.argument('skiptoken', id_part=None, help='Skiptoken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls.')
|
||||
|
||||
with self.argument_context('managed-network managed_networks show') as c:
|
||||
with self.argument_context('managed-network managed-networks show') as c:
|
||||
c.argument('resource_group_name', resource_group_name_type)
|
||||
c.argument('managed_network_name', id_part=None, help='The name of the Managed Network.')
|
||||
|
||||
with self.argument_context('managed-network managed_networks create') as c:
|
||||
with self.argument_context('managed-network managed-networks create') as c:
|
||||
c.argument('resource_group_name', resource_group_name_type)
|
||||
c.argument('managed_network_name', id_part=None, help='The name of the Managed Network.')
|
||||
c.argument('location', arg_type=get_location_type(self.cli_ctx))
|
||||
|
@ -44,78 +44,78 @@ def load_arguments(self, _):
|
|||
c.argument('scope_virtual_networks', id_part=None, help='The collection of virtual nets covered by the Managed Network', action=AddVirtualNetworks, nargs='+')
|
||||
c.argument('scope_subnets', id_part=None, help='The collection of subnets covered by the Managed Network', action=AddSubnets, nargs='+')
|
||||
|
||||
with self.argument_context('managed-network managed_networks update') as c:
|
||||
with self.argument_context('managed-network managed-networks update') as c:
|
||||
c.argument('resource_group_name', resource_group_name_type)
|
||||
c.argument('managed_network_name', id_part=None, help='The name of the Managed Network.')
|
||||
c.argument('tags', tags_type, nargs='+')
|
||||
|
||||
with self.argument_context('managed-network managed_networks delete') as c:
|
||||
with self.argument_context('managed-network managed-networks delete') as c:
|
||||
c.argument('resource_group_name', resource_group_name_type)
|
||||
c.argument('managed_network_name', id_part=None, help='The name of the Managed Network.')
|
||||
|
||||
with self.argument_context('managed-network scope_assignments list') as c:
|
||||
with self.argument_context('managed-network scope-assignments list') as c:
|
||||
c.argument('scope', id_part=None, help='The base resource of the scope assignment.')
|
||||
|
||||
with self.argument_context('managed-network scope_assignments show') as c:
|
||||
with self.argument_context('managed-network scope-assignments show') as c:
|
||||
c.argument('scope', id_part=None, help='The base resource of the scope assignment.')
|
||||
c.argument('scope_assignment_name', id_part=None, help='The name of the scope assignment to get.')
|
||||
|
||||
with self.argument_context('managed-network scope_assignments create') as c:
|
||||
with self.argument_context('managed-network scope-assignments create') as c:
|
||||
c.argument('scope', id_part=None, help='The base resource of the scope assignment.')
|
||||
c.argument('scope_assignment_name', id_part=None, help='The name of the scope assignment to get.')
|
||||
c.argument('location', arg_type=get_location_type(self.cli_ctx))
|
||||
c.argument('assigned_managed_network', id_part=None, help='The managed network ID with scope will be assigned to.')
|
||||
|
||||
with self.argument_context('managed-network scope_assignments update') as c:
|
||||
with self.argument_context('managed-network scope-assignments update') as c:
|
||||
c.argument('scope', id_part=None, help='The base resource of the scope assignment.')
|
||||
c.argument('scope_assignment_name', id_part=None, help='The name of the scope assignment to get.')
|
||||
c.argument('location', arg_type=get_location_type(self.cli_ctx))
|
||||
c.argument('assigned_managed_network', id_part=None, help='The managed network ID with scope will be assigned to.')
|
||||
|
||||
with self.argument_context('managed-network scope_assignments delete') as c:
|
||||
with self.argument_context('managed-network scope-assignments delete') as c:
|
||||
c.argument('scope', id_part=None, help='The base resource of the scope assignment.')
|
||||
c.argument('scope_assignment_name', id_part=None, help='The name of the scope assignment to get.')
|
||||
|
||||
with self.argument_context('managed-network managed_network_groups list') as c:
|
||||
with self.argument_context('managed-network managed-network-groups list') as c:
|
||||
c.argument('resource_group_name', resource_group_name_type)
|
||||
c.argument('managed_network_name', id_part=None, help='The name of the Managed Network.')
|
||||
c.argument('top', id_part=None, help='May be used to limit the number of results in a page for list queries.')
|
||||
c.argument('skiptoken', id_part=None, help='Skiptoken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls.')
|
||||
|
||||
with self.argument_context('managed-network managed_network_groups show') as c:
|
||||
with self.argument_context('managed-network managed-network-groups show') as c:
|
||||
c.argument('resource_group_name', resource_group_name_type)
|
||||
c.argument('managed_network_name', id_part=None, help='The name of the Managed Network.')
|
||||
c.argument('managed_network_group_name', id_part=None, help='The name of the Managed Network Group.')
|
||||
|
||||
with self.argument_context('managed-network managed_network_groups create') as c:
|
||||
with self.argument_context('managed-network managed-network-groups create') as c:
|
||||
c.argument('resource_group_name', resource_group_name_type)
|
||||
c.argument('managed_network_name', id_part=None, help='The name of the Managed Network.')
|
||||
c.argument('managed_network_group_name', id_part=None, help='The name of the Managed Network Group.')
|
||||
c.argument('managed_network_group', id_part=None, help='Parameters supplied to the create/update a Managed Network Group resource', action=AddManagedNetworkGroup, nargs='+')
|
||||
|
||||
with self.argument_context('managed-network managed_network_groups update') as c:
|
||||
with self.argument_context('managed-network managed-network-groups update') as c:
|
||||
c.argument('resource_group_name', resource_group_name_type)
|
||||
c.argument('managed_network_name', id_part=None, help='The name of the Managed Network.')
|
||||
c.argument('managed_network_group_name', id_part=None, help='The name of the Managed Network Group.')
|
||||
c.argument('managed_network_group', id_part=None, help='Parameters supplied to the create/update a Managed Network Group resource', action=AddManagedNetworkGroup, nargs='+')
|
||||
|
||||
with self.argument_context('managed-network managed_network_groups delete') as c:
|
||||
with self.argument_context('managed-network managed-network-groups delete') as c:
|
||||
c.argument('resource_group_name', resource_group_name_type)
|
||||
c.argument('managed_network_name', id_part=None, help='The name of the Managed Network.')
|
||||
c.argument('managed_network_group_name', id_part=None, help='The name of the Managed Network Group.')
|
||||
|
||||
with self.argument_context('managed-network managed_network_peering_policies list') as c:
|
||||
with self.argument_context('managed-network managed-network-peering-policies list') as c:
|
||||
c.argument('resource_group_name', resource_group_name_type)
|
||||
c.argument('managed_network_name', id_part=None, help='The name of the Managed Network.')
|
||||
c.argument('top', id_part=None, help='May be used to limit the number of results in a page for list queries.')
|
||||
c.argument('skiptoken', id_part=None, help='Skiptoken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls.')
|
||||
|
||||
with self.argument_context('managed-network managed_network_peering_policies show') as c:
|
||||
with self.argument_context('managed-network managed-network-peering-policies show') as c:
|
||||
c.argument('resource_group_name', resource_group_name_type)
|
||||
c.argument('managed_network_name', id_part=None, help='The name of the Managed Network.')
|
||||
c.argument('managed_network_peering_policy_name', id_part=None, help='The name of the Managed Network Peering Policy.')
|
||||
|
||||
with self.argument_context('managed-network managed_network_peering_policies create') as c:
|
||||
with self.argument_context('managed-network managed-network-peering-policies create') as c:
|
||||
c.argument('resource_group_name', resource_group_name_type)
|
||||
c.argument('managed_network_name', id_part=None, help='The name of the Managed Network.')
|
||||
c.argument('managed_network_peering_policy_name', id_part=None, help='The name of the Managed Network Peering Policy.')
|
||||
|
@ -125,7 +125,7 @@ def load_arguments(self, _):
|
|||
c.argument('properties_spokes', id_part=None, help='Gets or sets the spokes group IDs', action=AddSpokes, nargs='+')
|
||||
c.argument('properties_mesh', id_part=None, help='Gets or sets the mesh group IDs', action=AddMesh, nargs='+')
|
||||
|
||||
with self.argument_context('managed-network managed_network_peering_policies update') as c:
|
||||
with self.argument_context('managed-network managed-network-peering-policies update') as c:
|
||||
c.argument('resource_group_name', resource_group_name_type)
|
||||
c.argument('managed_network_name', id_part=None, help='The name of the Managed Network.')
|
||||
c.argument('managed_network_peering_policy_name', id_part=None, help='The name of the Managed Network Peering Policy.')
|
||||
|
@ -135,7 +135,7 @@ def load_arguments(self, _):
|
|||
c.argument('properties_spokes', id_part=None, help='Gets or sets the spokes group IDs', action=AddSpokes, nargs='+')
|
||||
c.argument('properties_mesh', id_part=None, help='Gets or sets the mesh group IDs', action=AddMesh, nargs='+')
|
||||
|
||||
with self.argument_context('managed-network managed_network_peering_policies delete') as c:
|
||||
with self.argument_context('managed-network managed-network-peering-policies delete') as c:
|
||||
c.argument('resource_group_name', resource_group_name_type)
|
||||
c.argument('managed_network_name', id_part=None, help='The name of the Managed Network.')
|
||||
c.argument('managed_network_peering_policy_name', id_part=None, help='The name of the Managed Network Peering Policy.')
|
||||
|
|
|
@ -16,49 +16,49 @@ def load_command_table(self, _):
|
|||
managed_network_managed_networks = CliCommandType(
|
||||
operations_tmpl='azext_managed_network.vendored_sdks.managednetwork.operations._managed_networks_operations#ManagedNetworksOperations.{}',
|
||||
client_factory=cf_managed_networks)
|
||||
with self.command_group('managed-network managed_networks', managed_network_managed_networks, client_factory=cf_managed_networks) as g:
|
||||
g.custom_command('list', 'managed-network_managed_networks_list')
|
||||
g.custom_show_command('show', 'managed-network_managed_networks_show')
|
||||
g.custom_command('create', 'managed-network_managed_networks_create')
|
||||
g.custom_command('update', 'managed-network_managed_networks_update')
|
||||
g.custom_command('delete', 'managed-network_managed_networks_delete')
|
||||
with self.command_group('managed-network managed-networks', managed_network_managed_networks, client_factory=cf_managed_networks) as g:
|
||||
g.custom_command('list', 'managed_network_managed_networks_list')
|
||||
g.custom_show_command('show', 'managed_network_managed_networks_show')
|
||||
g.custom_command('create', 'managed_network_managed_networks_create')
|
||||
g.custom_command('update', 'managed_network_managed_networks_update')
|
||||
g.custom_command('delete', 'managed_network_managed_networks_delete')
|
||||
|
||||
from ._client_factory import cf_scope_assignments
|
||||
managed_network_scope_assignments = CliCommandType(
|
||||
operations_tmpl='azext_managed_network.vendored_sdks.managednetwork.operations._scope_assignments_operations#ScopeAssignmentsOperations.{}',
|
||||
client_factory=cf_scope_assignments)
|
||||
with self.command_group('managed-network scope_assignments', managed_network_scope_assignments, client_factory=cf_scope_assignments) as g:
|
||||
g.custom_command('list', 'managed-network_scope_assignments_list')
|
||||
g.custom_show_command('show', 'managed-network_scope_assignments_show')
|
||||
g.custom_command('create', 'managed-network_scope_assignments_create')
|
||||
g.custom_command('update', 'managed-network_scope_assignments_update')
|
||||
g.custom_command('delete', 'managed-network_scope_assignments_delete')
|
||||
with self.command_group('managed-network scope-assignments', managed_network_scope_assignments, client_factory=cf_scope_assignments) as g:
|
||||
g.custom_command('list', 'managed_network_scope_assignments_list')
|
||||
g.custom_show_command('show', 'managed_network_scope_assignments_show')
|
||||
g.custom_command('create', 'managed_network_scope_assignments_create')
|
||||
g.custom_command('update', 'managed_network_scope_assignments_update')
|
||||
g.custom_command('delete', 'managed_network_scope_assignments_delete')
|
||||
|
||||
from ._client_factory import cf_managed_network_groups
|
||||
managed_network_managed_network_groups = CliCommandType(
|
||||
operations_tmpl='azext_managed_network.vendored_sdks.managednetwork.operations._managed_network_groups_operations#ManagedNetworkGroupsOperations.{}',
|
||||
client_factory=cf_managed_network_groups)
|
||||
with self.command_group('managed-network managed_network_groups', managed_network_managed_network_groups, client_factory=cf_managed_network_groups) as g:
|
||||
g.custom_command('list', 'managed-network_managed_network_groups_list')
|
||||
g.custom_show_command('show', 'managed-network_managed_network_groups_show')
|
||||
g.custom_command('create', 'managed-network_managed_network_groups_create')
|
||||
g.custom_command('update', 'managed-network_managed_network_groups_update')
|
||||
g.custom_command('delete', 'managed-network_managed_network_groups_delete')
|
||||
with self.command_group('managed-network managed-network-groups', managed_network_managed_network_groups, client_factory=cf_managed_network_groups) as g:
|
||||
g.custom_command('list', 'managed_network_managed_network_groups_list')
|
||||
g.custom_show_command('show', 'managed_network_managed_network_groups_show')
|
||||
g.custom_command('create', 'managed_network_managed_network_groups_create')
|
||||
g.custom_command('update', 'managed_network_managed_network_groups_update')
|
||||
g.custom_command('delete', 'managed_network_managed_network_groups_delete')
|
||||
|
||||
from ._client_factory import cf_managed_network_peering_policies
|
||||
managed_network_managed_network_peering_policies = CliCommandType(
|
||||
operations_tmpl='azext_managed_network.vendored_sdks.managednetwork.operations._managed_network_peering_policies_operations#ManagedNetworkPeeringPoliciesOperations.{}',
|
||||
client_factory=cf_managed_network_peering_policies)
|
||||
with self.command_group('managed-network managed_network_peering_policies', managed_network_managed_network_peering_policies, client_factory=cf_managed_network_peering_policies) as g:
|
||||
g.custom_command('list', 'managed-network_managed_network_peering_policies_list')
|
||||
g.custom_show_command('show', 'managed-network_managed_network_peering_policies_show')
|
||||
g.custom_command('create', 'managed-network_managed_network_peering_policies_create')
|
||||
g.custom_command('update', 'managed-network_managed_network_peering_policies_update')
|
||||
g.custom_command('delete', 'managed-network_managed_network_peering_policies_delete')
|
||||
with self.command_group('managed-network managed-network-peering-policies', managed_network_managed_network_peering_policies, client_factory=cf_managed_network_peering_policies) as g:
|
||||
g.custom_command('list', 'managed_network_managed_network_peering_policies_list')
|
||||
g.custom_show_command('show', 'managed_network_managed_network_peering_policies_show')
|
||||
g.custom_command('create', 'managed_network_managed_network_peering_policies_create')
|
||||
g.custom_command('update', 'managed_network_managed_network_peering_policies_update')
|
||||
g.custom_command('delete', 'managed_network_managed_network_peering_policies_delete')
|
||||
|
||||
from ._client_factory import cf_operations
|
||||
managed_network_operations = CliCommandType(
|
||||
operations_tmpl='azext_managed_network.vendored_sdks.managednetwork.operations._operations_operations#OperationsOperations.{}',
|
||||
client_factory=cf_operations)
|
||||
with self.command_group('managed-network operations', managed_network_operations, client_factory=cf_operations) as g:
|
||||
g.custom_command('list', 'managed-network_operations_list')
|
||||
g.custom_command('list', 'managed_network_operations_list')
|
||||
|
|
|
@ -9,8 +9,8 @@
|
|||
# pylint: disable=unused-argument
|
||||
|
||||
|
||||
def managed-network_managed_networks_list(cmd, client,
|
||||
resource_group_name,
|
||||
def managed_network_managed_networks_list(cmd, client,
|
||||
resource_group_name=None,
|
||||
top=None,
|
||||
skiptoken=None):
|
||||
if resource_group_name is not None:
|
||||
|
@ -18,13 +18,13 @@ def managed-network_managed_networks_list(cmd, client,
|
|||
return client.list_by_subscription(top=top, skiptoken=skiptoken)
|
||||
|
||||
|
||||
def managed-network_managed_networks_show(cmd, client,
|
||||
def managed_network_managed_networks_show(cmd, client,
|
||||
resource_group_name,
|
||||
managed_network_name):
|
||||
return client.get(resource_group_name=resource_group_name, managed_network_name=managed_network_name)
|
||||
|
||||
|
||||
def managed-network_managed_networks_create(cmd, client,
|
||||
def managed_network_managed_networks_create(cmd, client,
|
||||
resource_group_name,
|
||||
managed_network_name,
|
||||
location=None,
|
||||
|
@ -43,7 +43,7 @@ def managed-network_managed_networks_create(cmd, client,
|
|||
return client.create_or_update(resource_group_name=resource_group_name, managed_network_name=managed_network_name, managed_network=managed_network)
|
||||
|
||||
|
||||
def managed-network_managed_networks_update(cmd, client,
|
||||
def managed_network_managed_networks_update(cmd, client,
|
||||
resource_group_name,
|
||||
managed_network_name,
|
||||
tags=None):
|
||||
|
@ -52,24 +52,24 @@ def managed-network_managed_networks_update(cmd, client,
|
|||
return client.update(resource_group_name=resource_group_name, managed_network_name=managed_network_name, parameters=parameters)
|
||||
|
||||
|
||||
def managed-network_managed_networks_delete(cmd, client,
|
||||
def managed_network_managed_networks_delete(cmd, client,
|
||||
resource_group_name,
|
||||
managed_network_name):
|
||||
return client.delete(resource_group_name=resource_group_name, managed_network_name=managed_network_name)
|
||||
|
||||
|
||||
def managed-network_scope_assignments_list(cmd, client,
|
||||
def managed_network_scope_assignments_list(cmd, client,
|
||||
scope):
|
||||
return client.list(scope=scope)
|
||||
|
||||
|
||||
def managed-network_scope_assignments_show(cmd, client,
|
||||
def managed_network_scope_assignments_show(cmd, client,
|
||||
scope,
|
||||
scope_assignment_name):
|
||||
return client.get(scope=scope, scope_assignment_name=scope_assignment_name)
|
||||
|
||||
|
||||
def managed-network_scope_assignments_create(cmd, client,
|
||||
def managed_network_scope_assignments_create(cmd, client,
|
||||
scope,
|
||||
scope_assignment_name,
|
||||
location=None,
|
||||
|
@ -80,7 +80,7 @@ def managed-network_scope_assignments_create(cmd, client,
|
|||
return client.create_or_update(scope=scope, scope_assignment_name=scope_assignment_name, parameters=parameters)
|
||||
|
||||
|
||||
def managed-network_scope_assignments_update(cmd, client,
|
||||
def managed_network_scope_assignments_update(cmd, client,
|
||||
scope,
|
||||
scope_assignment_name,
|
||||
location=None,
|
||||
|
@ -91,13 +91,13 @@ def managed-network_scope_assignments_update(cmd, client,
|
|||
return client.create_or_update(scope=scope, scope_assignment_name=scope_assignment_name, parameters=parameters)
|
||||
|
||||
|
||||
def managed-network_scope_assignments_delete(cmd, client,
|
||||
def managed_network_scope_assignments_delete(cmd, client,
|
||||
scope,
|
||||
scope_assignment_name):
|
||||
return client.delete(scope=scope, scope_assignment_name=scope_assignment_name)
|
||||
|
||||
|
||||
def managed-network_managed_network_groups_list(cmd, client,
|
||||
def managed_network_managed_network_groups_list(cmd, client,
|
||||
resource_group_name,
|
||||
managed_network_name,
|
||||
top=None,
|
||||
|
@ -105,14 +105,14 @@ def managed-network_managed_network_groups_list(cmd, client,
|
|||
return client.list_by_managed_network(resource_group_name=resource_group_name, managed_network_name=managed_network_name, top=top, skiptoken=skiptoken)
|
||||
|
||||
|
||||
def managed-network_managed_network_groups_show(cmd, client,
|
||||
def managed_network_managed_network_groups_show(cmd, client,
|
||||
resource_group_name,
|
||||
managed_network_name,
|
||||
managed_network_group_name):
|
||||
return client.get(resource_group_name=resource_group_name, managed_network_name=managed_network_name, managed_network_group_name=managed_network_group_name)
|
||||
|
||||
|
||||
def managed-network_managed_network_groups_create(cmd, client,
|
||||
def managed_network_managed_network_groups_create(cmd, client,
|
||||
resource_group_name,
|
||||
managed_network_name,
|
||||
managed_network_group_name,
|
||||
|
@ -120,7 +120,7 @@ def managed-network_managed_network_groups_create(cmd, client,
|
|||
return client.create_or_update(resource_group_name=resource_group_name, managed_network_name=managed_network_name, managed_network_group_name=managed_network_group_name, managed_network_group=managed_network_group)
|
||||
|
||||
|
||||
def managed-network_managed_network_groups_update(cmd, client,
|
||||
def managed_network_managed_network_groups_update(cmd, client,
|
||||
resource_group_name,
|
||||
managed_network_name,
|
||||
managed_network_group_name,
|
||||
|
@ -128,14 +128,14 @@ def managed-network_managed_network_groups_update(cmd, client,
|
|||
return client.create_or_update(resource_group_name=resource_group_name, managed_network_name=managed_network_name, managed_network_group_name=managed_network_group_name, managed_network_group=managed_network_group)
|
||||
|
||||
|
||||
def managed-network_managed_network_groups_delete(cmd, client,
|
||||
def managed_network_managed_network_groups_delete(cmd, client,
|
||||
resource_group_name,
|
||||
managed_network_name,
|
||||
managed_network_group_name):
|
||||
return client.delete(resource_group_name=resource_group_name, managed_network_name=managed_network_name, managed_network_group_name=managed_network_group_name)
|
||||
|
||||
|
||||
def managed-network_managed_network_peering_policies_list(cmd, client,
|
||||
def managed_network_managed_network_peering_policies_list(cmd, client,
|
||||
resource_group_name,
|
||||
managed_network_name,
|
||||
top=None,
|
||||
|
@ -143,14 +143,14 @@ def managed-network_managed_network_peering_policies_list(cmd, client,
|
|||
return client.list_by_managed_network(resource_group_name=resource_group_name, managed_network_name=managed_network_name, top=top, skiptoken=skiptoken)
|
||||
|
||||
|
||||
def managed-network_managed_network_peering_policies_show(cmd, client,
|
||||
def managed_network_managed_network_peering_policies_show(cmd, client,
|
||||
resource_group_name,
|
||||
managed_network_name,
|
||||
managed_network_peering_policy_name):
|
||||
return client.get(resource_group_name=resource_group_name, managed_network_name=managed_network_name, managed_network_peering_policy_name=managed_network_peering_policy_name)
|
||||
|
||||
|
||||
def managed-network_managed_network_peering_policies_create(cmd, client,
|
||||
def managed_network_managed_network_peering_policies_create(cmd, client,
|
||||
resource_group_name,
|
||||
managed_network_name,
|
||||
managed_network_peering_policy_name,
|
||||
|
@ -168,7 +168,7 @@ def managed-network_managed_network_peering_policies_create(cmd, client,
|
|||
return client.create_or_update(resource_group_name=resource_group_name, managed_network_name=managed_network_name, managed_network_peering_policy_name=managed_network_peering_policy_name, managed_network_policy=managed_network_policy)
|
||||
|
||||
|
||||
def managed-network_managed_network_peering_policies_update(cmd, client,
|
||||
def managed_network_managed_network_peering_policies_update(cmd, client,
|
||||
resource_group_name,
|
||||
managed_network_name,
|
||||
managed_network_peering_policy_name,
|
||||
|
@ -186,12 +186,12 @@ def managed-network_managed_network_peering_policies_update(cmd, client,
|
|||
return client.create_or_update(resource_group_name=resource_group_name, managed_network_name=managed_network_name, managed_network_peering_policy_name=managed_network_peering_policy_name, managed_network_policy=managed_network_policy)
|
||||
|
||||
|
||||
def managed-network_managed_network_peering_policies_delete(cmd, client,
|
||||
def managed_network_managed_network_peering_policies_delete(cmd, client,
|
||||
resource_group_name,
|
||||
managed_network_name,
|
||||
managed_network_peering_policy_name):
|
||||
return client.delete(resource_group_name=resource_group_name, managed_network_name=managed_network_name, managed_network_peering_policy_name=managed_network_peering_policy_name)
|
||||
|
||||
|
||||
def managed-network_operations_list(cmd, client):
|
||||
def managed_network_operations_list(cmd, client):
|
||||
return client.list()
|
||||
|
|
|
@ -53,7 +53,7 @@ class ManagedNetworkManagementClientScenarioTest(ScenarioTest):
|
|||
'--resource-group {rg}',
|
||||
checks=[])
|
||||
|
||||
self.cmd('az managed-network managed-networks show',
|
||||
self.cmd('az managed-network managed-networks list',
|
||||
checks=[])
|
||||
|
||||
self.cmd('az managed-network scope-assignments show '
|
||||
|
|
|
@ -16,20 +16,26 @@ class ManagedNetworkManagementClientConfiguration(Configuration):
|
|||
Note that all parameters used to create this instance are saved as instance
|
||||
attributes.
|
||||
|
||||
:param credential: Credential needed for the client to connect to Azure.
|
||||
:type credential: azure.core.credentials.TokenCredential
|
||||
:param subscription_id: Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
|
||||
:type subscription_id: str
|
||||
"""
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
credential, # type: "TokenCredential"
|
||||
subscription_id, # type: str
|
||||
**kwargs # type: Any
|
||||
):
|
||||
# type: (...) -> None
|
||||
if credential is None:
|
||||
raise ValueError("Parameter 'credential' must not be None.")
|
||||
if subscription_id is None:
|
||||
raise ValueError("Parameter 'subscription_id' must not be None.")
|
||||
super(ManagedNetworkManagementClientConfiguration, self).__init__(**kwargs)
|
||||
|
||||
self.credential = credential
|
||||
self.subscription_id = subscription_id
|
||||
self.api_version = "2019-06-01-preview"
|
||||
self._configure(**kwargs)
|
||||
|
@ -48,3 +54,5 @@ class ManagedNetworkManagementClientConfiguration(Configuration):
|
|||
self.custom_hook_policy = kwargs.get('custom_hook_policy') or policies.CustomHookPolicy(**kwargs)
|
||||
self.redirect_policy = kwargs.get('redirect_policy') or policies.RedirectPolicy(**kwargs)
|
||||
self.authentication_policy = kwargs.get('authentication_policy')
|
||||
if self.credential and not self.authentication_policy:
|
||||
self.authentication_policy = policies.BearerTokenCredentialPolicy(self.credential, **kwargs)
|
||||
|
|
|
@ -31,6 +31,8 @@ class ManagedNetworkManagementClient(object):
|
|||
:vartype managed_network_peering_policies: managed_network_management_client.operations.ManagedNetworkPeeringPoliciesOperations
|
||||
:ivar operations: Operations operations
|
||||
:vartype operations: managed_network_management_client.operations.Operations
|
||||
:param credential: Credential needed for the client to connect to Azure.
|
||||
:type credential: azure.core.credentials.TokenCredential
|
||||
:param subscription_id: Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
|
||||
:type subscription_id: str
|
||||
:param str base_url: Service URL
|
||||
|
@ -38,6 +40,7 @@ class ManagedNetworkManagementClient(object):
|
|||
|
||||
def __init__(
|
||||
self,
|
||||
credential, # type: "TokenCredential"
|
||||
subscription_id, # type: str
|
||||
base_url=None, # type: Optional[str]
|
||||
**kwargs # type: Any
|
||||
|
@ -45,7 +48,7 @@ class ManagedNetworkManagementClient(object):
|
|||
# type: (...) -> None
|
||||
if not base_url:
|
||||
base_url = 'https://management.azure.com'
|
||||
self._config = ManagedNetworkManagementClientConfiguration(subscription_id, **kwargs)
|
||||
self._config = ManagedNetworkManagementClientConfiguration(credential, subscription_id, **kwargs)
|
||||
self._client = PipelineClient(base_url=base_url, config=self._config, **kwargs)
|
||||
|
||||
client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
|
||||
|
|
|
@ -16,19 +16,25 @@ class ManagedNetworkManagementClientConfiguration(Configuration):
|
|||
Note that all parameters used to create this instance are saved as instance
|
||||
attributes.
|
||||
|
||||
:param credential: Credential needed for the client to connect to Azure.
|
||||
:type credential: azure.core.credentials.TokenCredential
|
||||
:param subscription_id: Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
|
||||
:type subscription_id: str
|
||||
"""
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
credential: "TokenCredential",
|
||||
subscription_id: str,
|
||||
**kwargs: Any
|
||||
) -> None:
|
||||
if credential is None:
|
||||
raise ValueError("Parameter 'credential' must not be None.")
|
||||
if subscription_id is None:
|
||||
raise ValueError("Parameter 'subscription_id' must not be None.")
|
||||
super(ManagedNetworkManagementClientConfiguration, self).__init__(**kwargs)
|
||||
|
||||
self.credential = credential
|
||||
self.subscription_id = subscription_id
|
||||
self.api_version = "2019-06-01-preview"
|
||||
self._configure(**kwargs)
|
||||
|
@ -46,3 +52,5 @@ class ManagedNetworkManagementClientConfiguration(Configuration):
|
|||
self.custom_hook_policy = kwargs.get('custom_hook_policy') or policies.CustomHookPolicy(**kwargs)
|
||||
self.redirect_policy = kwargs.get('redirect_policy') or policies.AsyncRedirectPolicy(**kwargs)
|
||||
self.authentication_policy = kwargs.get('authentication_policy')
|
||||
if self.credential and not self.authentication_policy:
|
||||
self.authentication_policy = policies.AsyncBearerTokenCredentialPolicy(self.credential, **kwargs)
|
||||
|
|
|
@ -31,6 +31,8 @@ class ManagedNetworkManagementClient(object):
|
|||
:vartype managed_network_peering_policies: managed_network_management_client.aio.operations_async.ManagedNetworkPeeringPoliciesOperations
|
||||
:ivar operations: Operations operations
|
||||
:vartype operations: managed_network_management_client.aio.operations_async.Operations
|
||||
:param credential: Credential needed for the client to connect to Azure.
|
||||
:type credential: azure.core.credentials.TokenCredential
|
||||
:param subscription_id: Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
|
||||
:type subscription_id: str
|
||||
:param str base_url: Service URL
|
||||
|
@ -38,13 +40,14 @@ class ManagedNetworkManagementClient(object):
|
|||
|
||||
def __init__(
|
||||
self,
|
||||
credential: "TokenCredential",
|
||||
subscription_id: str,
|
||||
base_url: Optional[str] = None,
|
||||
**kwargs: Any
|
||||
) -> None:
|
||||
if not base_url:
|
||||
base_url = 'https://management.azure.com'
|
||||
self._config = ManagedNetworkManagementClientConfiguration(subscription_id, **kwargs)
|
||||
self._config = ManagedNetworkManagementClientConfiguration(credential, subscription_id, **kwargs)
|
||||
self._client = AsyncPipelineClient(base_url=base_url, config=self._config, **kwargs)
|
||||
|
||||
client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
|
||||
|
|
|
@ -1,122 +1,137 @@
|
|||
# Azure CLI Module Creation Report
|
||||
|
||||
### managed-network managed_network_groups create
|
||||
### managed-network managed-network-groups create
|
||||
|
||||
create a managed-network managed_network_groups.
|
||||
create a managed-network managed-network-groups.
|
||||
|
||||
|Option|Type|Description|Path (SDK)|Path (swagger)|
|
||||
|------|----|-----------|----------|--------------|
|
||||
|**--managed_network_group**|object|Parameters supplied to the create/update a Managed Network Group resource|/something/my_option|/something/myOption|
|
||||
### managed-network managed_network_groups delete
|
||||
|**--api-version**|constant|Api Version|/something/my_option|/something/myOption|
|
||||
|**--managed-network-group**|object|Parameters supplied to the create/update a Managed Network Group resource|/something/my_option|/something/myOption|
|
||||
### managed-network managed-network-groups delete
|
||||
|
||||
delete a managed-network managed_network_groups.
|
||||
delete a managed-network managed-network-groups.
|
||||
|
||||
|Option|Type|Description|Path (SDK)|Path (swagger)|
|
||||
|------|----|-----------|----------|--------------|
|
||||
### managed-network managed_network_groups list
|
||||
|**--api-version**|constant|Api Version|/something/my_option|/something/myOption|
|
||||
### managed-network managed-network-groups list
|
||||
|
||||
list a managed-network managed_network_groups.
|
||||
list a managed-network managed-network-groups.
|
||||
|
||||
|Option|Type|Description|Path (SDK)|Path (swagger)|
|
||||
|------|----|-----------|----------|--------------|
|
||||
|**--api-version**|constant|Api Version|/something/my_option|/something/myOption|
|
||||
|--$top**|integer|May be used to limit the number of results in a page for list queries.|/something/my_option|/something/myOption|
|
||||
|--$skiptoken**|string|Skiptoken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls.|/something/my_option|/something/myOption|
|
||||
### managed-network managed_network_groups show
|
||||
### managed-network managed-network-groups show
|
||||
|
||||
show a managed-network managed_network_groups.
|
||||
show a managed-network managed-network-groups.
|
||||
|
||||
|Option|Type|Description|Path (SDK)|Path (swagger)|
|
||||
|------|----|-----------|----------|--------------|
|
||||
### managed-network managed_network_groups update
|
||||
|**--api-version**|constant|Api Version|/something/my_option|/something/myOption|
|
||||
### managed-network managed-network-groups update
|
||||
|
||||
create a managed-network managed_network_groups.
|
||||
create a managed-network managed-network-groups.
|
||||
|
||||
|Option|Type|Description|Path (SDK)|Path (swagger)|
|
||||
|------|----|-----------|----------|--------------|
|
||||
|**--managed_network_group**|object|Parameters supplied to the create/update a Managed Network Group resource|/something/my_option|/something/myOption|
|
||||
### managed-network managed_network_peering_policies create
|
||||
|**--api-version**|constant|Api Version|/something/my_option|/something/myOption|
|
||||
|**--managed-network-group**|object|Parameters supplied to the create/update a Managed Network Group resource|/something/my_option|/something/myOption|
|
||||
### managed-network managed-network-peering-policies create
|
||||
|
||||
create a managed-network managed_network_peering_policies.
|
||||
create a managed-network managed-network-peering-policies.
|
||||
|
||||
|Option|Type|Description|Path (SDK)|Path (swagger)|
|
||||
|------|----|-----------|----------|--------------|
|
||||
|**--managed_network_policy**|object|Parameters supplied to create/update a Managed Network Peering Policy|/something/my_option|/something/myOption|
|
||||
|**--api-version**|constant|Api Version|/something/my_option|/something/myOption|
|
||||
|**--managed-network-policy**|object|Parameters supplied to create/update a Managed Network Peering Policy|/something/my_option|/something/myOption|
|
||||
|**--type**|choice|Gets or sets the connectivity type of a network structure policy|/something/my_option|/something/myOption|
|
||||
|--location**|string|The geo-location where the resource lives|/something/my_option|/something/myOption|
|
||||
|--id**|string|Resource Id|/something/my_option|/something/myOption|
|
||||
|--spokes**|array|Gets or sets the spokes group IDs|/something/my_option|/something/myOption|
|
||||
|--mesh**|array|Gets or sets the mesh group IDs|/something/my_option|/something/myOption|
|
||||
### managed-network managed_network_peering_policies delete
|
||||
### managed-network managed-network-peering-policies delete
|
||||
|
||||
delete a managed-network managed_network_peering_policies.
|
||||
delete a managed-network managed-network-peering-policies.
|
||||
|
||||
|Option|Type|Description|Path (SDK)|Path (swagger)|
|
||||
|------|----|-----------|----------|--------------|
|
||||
### managed-network managed_network_peering_policies list
|
||||
|**--api-version**|constant|Api Version|/something/my_option|/something/myOption|
|
||||
### managed-network managed-network-peering-policies list
|
||||
|
||||
list a managed-network managed_network_peering_policies.
|
||||
list a managed-network managed-network-peering-policies.
|
||||
|
||||
|Option|Type|Description|Path (SDK)|Path (swagger)|
|
||||
|------|----|-----------|----------|--------------|
|
||||
|**--api-version**|constant|Api Version|/something/my_option|/something/myOption|
|
||||
|--$top**|integer|May be used to limit the number of results in a page for list queries.|/something/my_option|/something/myOption|
|
||||
|--$skiptoken**|string|Skiptoken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls.|/something/my_option|/something/myOption|
|
||||
### managed-network managed_network_peering_policies show
|
||||
### managed-network managed-network-peering-policies show
|
||||
|
||||
show a managed-network managed_network_peering_policies.
|
||||
show a managed-network managed-network-peering-policies.
|
||||
|
||||
|Option|Type|Description|Path (SDK)|Path (swagger)|
|
||||
|------|----|-----------|----------|--------------|
|
||||
### managed-network managed_network_peering_policies update
|
||||
|**--api-version**|constant|Api Version|/something/my_option|/something/myOption|
|
||||
### managed-network managed-network-peering-policies update
|
||||
|
||||
create a managed-network managed_network_peering_policies.
|
||||
create a managed-network managed-network-peering-policies.
|
||||
|
||||
|Option|Type|Description|Path (SDK)|Path (swagger)|
|
||||
|------|----|-----------|----------|--------------|
|
||||
|**--managed_network_policy**|object|Parameters supplied to create/update a Managed Network Peering Policy|/something/my_option|/something/myOption|
|
||||
|**--api-version**|constant|Api Version|/something/my_option|/something/myOption|
|
||||
|**--managed-network-policy**|object|Parameters supplied to create/update a Managed Network Peering Policy|/something/my_option|/something/myOption|
|
||||
|**--type**|choice|Gets or sets the connectivity type of a network structure policy|/something/my_option|/something/myOption|
|
||||
|--location**|string|The geo-location where the resource lives|/something/my_option|/something/myOption|
|
||||
|--id**|string|Resource Id|/something/my_option|/something/myOption|
|
||||
|--spokes**|array|Gets or sets the spokes group IDs|/something/my_option|/something/myOption|
|
||||
|--mesh**|array|Gets or sets the mesh group IDs|/something/my_option|/something/myOption|
|
||||
### managed-network managed_networks create
|
||||
### managed-network managed-networks create
|
||||
|
||||
create a managed-network managed_networks.
|
||||
create a managed-network managed-networks.
|
||||
|
||||
|Option|Type|Description|Path (SDK)|Path (swagger)|
|
||||
|------|----|-----------|----------|--------------|
|
||||
|**--managed_network**|object|Parameters supplied to the create/update a Managed Network Resource|/something/my_option|/something/myOption|
|
||||
|**--api-version**|constant|Api Version|/something/my_option|/something/myOption|
|
||||
|**--managed-network**|object|Parameters supplied to the create/update a Managed Network Resource|/something/my_option|/something/myOption|
|
||||
|--location**|string|The geo-location where the resource lives|/something/my_option|/something/myOption|
|
||||
|--tags**|dictionary|Resource tags|/something/my_option|/something/myOption|
|
||||
|--management_groups**|array|The collection of management groups covered by the Managed Network|/something/my_option|/something/myOption|
|
||||
|--management-groups**|array|The collection of management groups covered by the Managed Network|/something/my_option|/something/myOption|
|
||||
|--subscriptions**|array|The collection of subscriptions covered by the Managed Network|/something/my_option|/something/myOption|
|
||||
|--virtual_networks**|array|The collection of virtual nets covered by the Managed Network|/something/my_option|/something/myOption|
|
||||
|--virtual-networks**|array|The collection of virtual nets covered by the Managed Network|/something/my_option|/something/myOption|
|
||||
|--subnets**|array|The collection of subnets covered by the Managed Network|/something/my_option|/something/myOption|
|
||||
### managed-network managed_networks delete
|
||||
### managed-network managed-networks delete
|
||||
|
||||
delete a managed-network managed_networks.
|
||||
delete a managed-network managed-networks.
|
||||
|
||||
|Option|Type|Description|Path (SDK)|Path (swagger)|
|
||||
|------|----|-----------|----------|--------------|
|
||||
### managed-network managed_networks list
|
||||
|**--api-version**|constant|Api Version|/something/my_option|/something/myOption|
|
||||
### managed-network managed-networks list
|
||||
|
||||
list a managed-network managed_networks.
|
||||
list a managed-network managed-networks.
|
||||
|
||||
|Option|Type|Description|Path (SDK)|Path (swagger)|
|
||||
|------|----|-----------|----------|--------------|
|
||||
|**--api-version**|constant|Api Version|/something/my_option|/something/myOption|
|
||||
|--$top**|integer|May be used to limit the number of results in a page for list queries.|/something/my_option|/something/myOption|
|
||||
|--$skiptoken**|string|Skiptoken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls.|/something/my_option|/something/myOption|
|
||||
### managed-network managed_networks show
|
||||
### managed-network managed-networks show
|
||||
|
||||
show a managed-network managed_networks.
|
||||
show a managed-network managed-networks.
|
||||
|
||||
|Option|Type|Description|Path (SDK)|Path (swagger)|
|
||||
|------|----|-----------|----------|--------------|
|
||||
### managed-network managed_networks update
|
||||
|**--api-version**|constant|Api Version|/something/my_option|/something/myOption|
|
||||
### managed-network managed-networks update
|
||||
|
||||
update a managed-network managed_networks.
|
||||
update a managed-network managed-networks.
|
||||
|
||||
|Option|Type|Description|Path (SDK)|Path (swagger)|
|
||||
|------|----|-----------|----------|--------------|
|
||||
|**--api-version**|constant|Api Version|/something/my_option|/something/myOption|
|
||||
|**--parameters**|object|Parameters supplied to update application gateway tags and/or scope.|/something/my_option|/something/myOption|
|
||||
|--tags**|dictionary|Resource tags|/something/my_option|/something/myOption|
|
||||
### managed-network operations list
|
||||
|
@ -125,39 +140,45 @@ list a managed-network operations.
|
|||
|
||||
|Option|Type|Description|Path (SDK)|Path (swagger)|
|
||||
|------|----|-----------|----------|--------------|
|
||||
### managed-network scope_assignments create
|
||||
|**--api-version**|constant|Api Version|/something/my_option|/something/myOption|
|
||||
### managed-network scope-assignments create
|
||||
|
||||
create a managed-network scope_assignments.
|
||||
create a managed-network scope-assignments.
|
||||
|
||||
|Option|Type|Description|Path (SDK)|Path (swagger)|
|
||||
|------|----|-----------|----------|--------------|
|
||||
|**--api-version**|constant|Api Version|/something/my_option|/something/myOption|
|
||||
|**--parameters**|object|Parameters supplied to the specify which Managed Network this scope is being assigned|/something/my_option|/something/myOption|
|
||||
|--location**|string|The geo-location where the resource lives|/something/my_option|/something/myOption|
|
||||
|--assigned_managed_network**|string|The managed network ID with scope will be assigned to.|/something/my_option|/something/myOption|
|
||||
### managed-network scope_assignments delete
|
||||
|--assigned-managed-network**|string|The managed network ID with scope will be assigned to.|/something/my_option|/something/myOption|
|
||||
### managed-network scope-assignments delete
|
||||
|
||||
delete a managed-network scope_assignments.
|
||||
delete a managed-network scope-assignments.
|
||||
|
||||
|Option|Type|Description|Path (SDK)|Path (swagger)|
|
||||
|------|----|-----------|----------|--------------|
|
||||
### managed-network scope_assignments list
|
||||
|**--api-version**|constant|Api Version|/something/my_option|/something/myOption|
|
||||
### managed-network scope-assignments list
|
||||
|
||||
list a managed-network scope_assignments.
|
||||
list a managed-network scope-assignments.
|
||||
|
||||
|Option|Type|Description|Path (SDK)|Path (swagger)|
|
||||
|------|----|-----------|----------|--------------|
|
||||
### managed-network scope_assignments show
|
||||
|**--api-version**|constant|Api Version|/something/my_option|/something/myOption|
|
||||
### managed-network scope-assignments show
|
||||
|
||||
show a managed-network scope_assignments.
|
||||
show a managed-network scope-assignments.
|
||||
|
||||
|Option|Type|Description|Path (SDK)|Path (swagger)|
|
||||
|------|----|-----------|----------|--------------|
|
||||
### managed-network scope_assignments update
|
||||
|**--api-version**|constant|Api Version|/something/my_option|/something/myOption|
|
||||
### managed-network scope-assignments update
|
||||
|
||||
create a managed-network scope_assignments.
|
||||
create a managed-network scope-assignments.
|
||||
|
||||
|Option|Type|Description|Path (SDK)|Path (swagger)|
|
||||
|------|----|-----------|----------|--------------|
|
||||
|**--api-version**|constant|Api Version|/something/my_option|/something/myOption|
|
||||
|**--parameters**|object|Parameters supplied to the specify which Managed Network this scope is being assigned|/something/my_option|/something/myOption|
|
||||
|--location**|string|The geo-location where the resource lives|/something/my_option|/something/myOption|
|
||||
|--assigned_managed_network**|string|The managed network ID with scope will be assigned to.|/something/my_option|/something/myOption|
|
||||
|--assigned-managed-network**|string|The managed network ID with scope will be assigned to.|/something/my_option|/something/myOption|
|
Загрузка…
Ссылка в новой задаче