From 20bd01f575e2728bde2d4386cd89039d6b343b94 Mon Sep 17 00:00:00 2001 From: Rodge Fu Date: Tue, 31 Mar 2020 16:50:40 +0800 Subject: [PATCH] add readme.az.md --- .../azure-kusto/resource-manager/readme.az.md | 13 ++ .../datafactory/resource-manager/readme.az.md | 152 ++++++++++++++++++ 2 files changed, 165 insertions(+) create mode 100644 specification/azure-kusto/resource-manager/readme.az.md create mode 100644 specification/datafactory/resource-manager/readme.az.md diff --git a/specification/azure-kusto/resource-manager/readme.az.md b/specification/azure-kusto/resource-manager/readme.az.md new file mode 100644 index 000000000000..758e5e24f256 --- /dev/null +++ b/specification/azure-kusto/resource-manager/readme.az.md @@ -0,0 +1,13 @@ +## AZ + +These settings apply only when `--az` is specified on the command line. + +``` yaml $(az) +az: + extensions: kusto + namespace: azure.mgmt.kusto + package-name: azure-mgmt-kusto +python-sdk-output-folder: "$(output-folder)/src/kusto/azext_kusto/vendored_sdks/kusto" + + +``` diff --git a/specification/datafactory/resource-manager/readme.az.md b/specification/datafactory/resource-manager/readme.az.md new file mode 100644 index 000000000000..945398c829a5 --- /dev/null +++ b/specification/datafactory/resource-manager/readme.az.md @@ -0,0 +1,152 @@ +## AZ + +These settings apply only when `--az` is specified on the command line. + +``` yaml $(az) +az: + extensions: datafactory + namespace: azure.mgmt.datafactory + package-name: azure-mgmt-datafactory +python-sdk-output-folder: "$(output-folder)/src/datafactory/azext_datafactory/vendored_sdks/datafactory" + +#directive: +# - from: swagger-document +# where: $..parameters[?(@.in=='body')] +# transform: > +# $['x-ms-client-flatten'] = true; +# reason: Flatten everything for Azure CLI +# - from: swagger-document +# where: $.definitions[*].properties.* +# transform: > +# $['x-ms-client-flatten'] = true; +# reason: Flatten everything for Azure CLI +# - from: swagger-document +# where: $.definitions[?(@.discriminator)] +# transform: > +# $['x-ms-client-flatten'] = false; +# - from: swagger-document +# where: $.definitions[?(@.discriminator)].properties.* +# transform: > +# $['x-ms-client-flatten'] = false; +# - from: swagger-document +# where: $.definitions.FactoryRepoUpdate.properties.repoConfiguration +# transform: > +# $['x-ms-client-flatten'] = false; +# reason: manually don't flatten the polymorphic base class +# - from: swagger-document +# where: $.definitions.FactoryProperties.properties.repoConfiguration +# transform: > +# $['x-ms-client-flatten'] = false; +# reason: manually don't flatten the polymorphic base class +# - from: swagger-document +# where: $.definitions.Pipeline.properties.activities +# transform: > +# $['x-ms-client-flatten'] = false; + #- from: swagger-document + # where: $.definitions.CmdkeySetupTypeProperties.properties.password + # transform: > + # $['x-ms-client-flatten'] = false; + # reason: manually don't flatten the polymorphic base class + #- from: swagger-document + # where: $.definitions.LicensedComponentSetupTypeProperties.properties.licenseKey + # transform: > + # $['x-ms-client-flatten'] = false; + # reason: manually don't flatten the polymorphic base class + #- from: swagger-document + # where: $.definitions.*.properties.servicePrincipalKey + # transform: > + # $['x-ms-client-flatten'] = false; + # reason: manually don't flatten the polymorphic base class + #- from: swagger-document + # where: $.definitions.DataFlowResource.properties.properties + # transform: > + # $['x-ms-client-flatten'] = false; + # reason: manually don't flatten the polymorphic base class + #- from: swagger-document + # where: $.definitions.DataFlowDebugResource.properties.properties + # transform: > + # $['x-ms-client-flatten'] = false; + # reason: manually don't flatten the polymorphic base class + #- from: swagger-document + # where: $.definitions.IntegrationRuntimeResource.properties.properties + # transform: > + # $['x-ms-client-flatten'] = false; + # reason: manually don't flatten the polymorphic base class + #- from: swagger-document + # where: $.definitions.IntegrationRuntimeDebugResource.properties.properties + # transform: > + # $['x-ms-client-flatten'] = false; + # reason: manually don't flatten the polymorphic base class + #- from: swagger-document + # where: $.definitions.LinkedServiceResource.properties.properties + # transform: > + # $['x-ms-client-flatten'] = false; + + +cli: + cli-directive: + # directive on operationGroup + - where: + group: 'Datasets' + op: 'CreateOrUpdate' + param: 'properties' + poly-resource: true + - where: + group: 'LinkedServices' + op: 'CreateOrUpdate' + param: 'properties' + poly-resource: true + - where: + group: 'IntegrationRuntimes' + op: 'CreateOrUpdate' + param: 'properties' + poly-resource: true + - select: 'operationGroup' + where: + operationGroup: 'operations' + operation: 'list' + hidden: true + - where: + parameter: location + required: true + - where: + group: pipelines + parameter: pipeline + set: + json: true + # - where: + # operationGroup: 'exposure_control' + # delete: true + # - where: + # operationGroup: 'integration_runtime_object_metadata' + # delete: true + # - where: + # operationGroup: 'datasets' + # delete: true + # - where: + # operationGroup: 'activity_runs' + # delete: true + # - where: + # operationGroup: 'data_flows' + # delete: true + # - where: + # operationGroup: 'data_flow_debug_session' + # delete: true + # - where: + # operationGroup: 'integration_runtimes' + # delete: true + # - where: + # operationGroup: 'integration_runtime_nodes' + # delete: true + # - where: + # operationGroup: 'linked_services' + # delete: true + cli-flatten-directive: + - where: + group: pipelines + parameter: pipeline + flatten: false + + + +```