Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleaned up rest of faulty examples #7133

Merged
merged 3 commits into from
Aug 24, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
/src/command_modules/azure-cli-network/ @tjprescott
/src/command_modules/azure-cli-policyinsights/ @bulentelmaci
/src/command_modules/azure-cli-profile/ @yugangw-msft
/src/command_modules/azure-cli-storage/ @troydai
/src/command_modules/azure-cli-storage/ @troydai @williexu
/src/command_modules/azure-cli-servicefabric/ @QingChenmsft
/src/command_modules/azure-cli-sql/ @jaredmoo
/src/command_modules/azure-cli-vm/ @yugangw-msft
Expand Down
4 changes: 4 additions & 0 deletions src/command_modules/azure-cli-dms/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
Release History
===============

0.1.1
++++++
* Minor fixes.

0.1.0
++++++
* BREAKING CHANGE: 'show' commands log error message and fail with exit code of 3 upon a missing resource.
Expand Down
7 changes: 7 additions & 0 deletions src/command_modules/azure-cli-dms/linter_exclusions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
# exclusions for the dms module

dms project task create:
rule_exclusions:
- faulty_help_example_rule
...
2 changes: 1 addition & 1 deletion src/command_modules/azure-cli-dms/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
logger.warn("Wheel is not available, disabling bdist_wheel hook")
cmdclass = {}

VERSION = "0.1.0"
VERSION = "0.1.1"
# The full list of classifiers is available at
# https://pypi.python.org/pypi?%3Aaction=list_classifiers
CLASSIFIERS = [
Expand Down
4 changes: 4 additions & 0 deletions src/command_modules/azure-cli-eventhubs/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
Release History
===============

0.2.4
+++++
* Minor fixes

0.2.3
+++++
* Minor fixes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@
short-summary: Shows the list of Authorizationrule by Namespace
examples:
- name: Shows the list of Authorizationrule by Namespace
text: az eventhubs namespace authorization-rule show --resource-group myresourcegroup --namespace-name mynamespace
text: az eventhubs namespace authorization-rule list --resource-group myresourcegroup --namespace-name mynamespace
"""

helps['eventhubs namespace authorization-rule keys list'] = """
Expand All @@ -157,7 +157,7 @@
short-summary: Regenerate the connection strings of Authorizationrule for the namespace.
examples:
- name: Regenerate the connection strings of Authorizationrule for the namespace.
text: az eventhubs namespace authorization-rule regenerate-keys --resource-group myresourcegroup
text: az eventhubs namespace authorization-rule keys renew --resource-group myresourcegroup
--namespace-name mynamespace --name myauthorule --key PrimaryKey
"""

Expand Down Expand Up @@ -235,10 +235,10 @@

helps['eventhubs eventhub authorization-rule list'] = """
type: command
short-summary: shows the list of Authorizationrule by Eventhub
short-summary: shows the list of Authorization-rules by Eventhub
examples:
- name: shows the list of Authorizationrule by Eventhub
text: az eventhubs eventhub authorization-rule show --resource-group myresourcegroup --namespace-name mynamespace --eventhub-name myeventhub
- name: shows the list of Authorization-rules by Eventhub
text: az eventhubs eventhub authorization-rule list --resource-group myresourcegroup --namespace-name mynamespace --eventhub-name myeventhub
"""

helps['eventhubs eventhub authorization-rule keys list'] = """
Expand All @@ -254,7 +254,7 @@
short-summary: Regenerate the connection strings of Authorizationrule for the namespace.
examples:
- name: Regenerate the connection strings of Authorizationrule for the namespace.
text: az eventhubs eventhub authorization-rule regenerate-keys --resource-group myresourcegroup --namespace-name mynamespace --eventhub-name myeventhub --name myauthorule --key PrimaryKey
text: az eventhubs eventhub authorization-rule keys renew --resource-group myresourcegroup --namespace-name mynamespace --eventhub-name myeventhub --name myauthorule --key PrimaryKey
"""

helps['eventhubs eventhub authorization-rule delete'] = """
Expand Down Expand Up @@ -293,8 +293,8 @@
type: command
short-summary: List the ConsumerGroup by Eventhub
examples:
- name: Shows the ConsumerGroup by Eventhub.
text: az eventhubs eventhub consumer-group get --resource-group myresourcegroup --namespace-name mynamespace --eventhub-name myeventhub
- name: List the ConsumerGroup by Eventhub.
text: az eventhubs eventhub consumer-group list --resource-group myresourcegroup --namespace-name mynamespace --eventhub-name myeventhub
"""

helps['eventhubs eventhub consumer-group delete'] = """
Expand All @@ -310,7 +310,7 @@
short-summary: Check the availability of Geo-Disaster Recovery Configuration Alias Name
examples:
- name: Check the availability of Geo-Disaster Recovery Configuration Alias Name
text: az eventhubs georecovery-alias check-name-availability --resource-group myresourcegroup --namespace-name primarynamespace --alias myaliasname
text: az eventhubs georecovery-alias exists --resource-group myresourcegroup --namespace-name primarynamespace --alias myaliasname
"""

helps['eventhubs georecovery-alias set'] = """
Expand Down
2 changes: 1 addition & 1 deletion src/command_modules/azure-cli-eventhubs/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
logger.warn("Wheel is not available, disabling bdist_wheel hook")
cmdclass = {}

VERSION = "0.2.3"
VERSION = "0.2.4"

# The full list of classifiers is available at
# https://pypi.python.org/pypi?%3Aaction=list_classifiers
Expand Down
4 changes: 4 additions & 0 deletions src/command_modules/azure-cli-iotcentral/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
Release History
===============

0.1.2
+++++
* Minor fixes

0.1.1
+++++
* Minor fixes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
az iotcentral app create --resource-group MyResourceGroup --name MyApp --subdomain myapp
- name: Create an IoT Central application with the standard pricing tier S1 in the 'westus' region.
text: >
az iotcentral create --resource-group MyResourceGroup --name MyApp --sku S1 --location westus
az iotcentral app create --resource-group MyResourceGroup --name MyApp --sku S1 --location westus
--subdomain myapp
"""

Expand All @@ -37,7 +37,7 @@
examples:
- name: Show an IoT Central application.
text: >
az iotcentral show --name MyApp
az iotcentral app show --name MyApp
"""

helps['iotcentral app update'] = """
Expand Down
2 changes: 1 addition & 1 deletion src/command_modules/azure-cli-iotcentral/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
logger.warn("Wheel is not available, disabling bdist_wheel hook")
cmdclass = {}

VERSION = "0.1.1"
VERSION = "0.1.2"

# The full list of classifiers is available at
# https://pypi.python.org/pypi?%3Aaction=list_classifiers
Expand Down
4 changes: 4 additions & 0 deletions src/command_modules/azure-cli-network/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

Release History
===============
2.2.5
+++++
* Minor fixes

2.2.4
+++++
* `network application-gateway ssl-policy predefined show`: exception handling to exit with code 3 upon a missing resource for consistency
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@
short-summary: Get the details of a rule.
examples:
- name: Get the details of a rule.
text: az network application-gateway rule list -g MyResourceGroup --gateway-name MyAppGateway -n MyRule
text: az network application-gateway rule show -g MyResourceGroup --gateway-name MyAppGateway -n MyRule
"""

helps['network application-gateway rule update'] = """
Expand Down Expand Up @@ -684,7 +684,7 @@
short-summary: Gets SSL predefined policy with the specified policy name.
examples:
- name: Gets SSL predefined policy with the specified policy name.
text: az network application-gateway ssl-policy show -n AppGwSslPolicy20170401
text: az network application-gateway ssl-policy predefined show -n AppGwSslPolicy20170401
"""


Expand Down Expand Up @@ -1902,11 +1902,6 @@
--peering-type MicrosoftPeering --peer-asn 10002 --vlan-id 103 \\
--primary-peer-subnet 101.0.0.0/30 --secondary-peer-subnet 102.0.0.0/30 \\
--advertised-public-prefixes 101.0.0.0/30
- name: Add IPv6 settings to existing IPv4 config for Microsoft peering.
text: |
az network express-route peering update -g MyResourceGroup --circuit-name MyCircuit \\
--peering-type MicrosoftPeering --ip-version ipv6 --primary-peer-subnet 2002:db00::/126 \\
--secondary-peer-subnet 2003:db00::/126 --advertised-public-prefixes 2002:db00::/126
"""

helps['network express-route peering delete'] = """
Expand Down Expand Up @@ -2909,7 +2904,7 @@
short-summary: List route filters.
examples:
- name: List route filters in a resource group.
text: az network route-filter delete -g MyResourceGroup
text: az network route-filter list -g MyResourceGroup
"""

helps['network route-filter show'] = """
Expand Down Expand Up @@ -2957,7 +2952,7 @@
short-summary: Delete a rule from a route filter.
examples:
- name: Delete a rule from a route filter.
text: az network route-filter rule create -g MyResourceGroup --filter-name MyRouteFilter -n MyRouteFilterRule
text: az network route-filter rule delete -g MyResourceGroup --filter-name MyRouteFilter -n MyRouteFilterRule
"""

helps['network route-filter rule list'] = """
Expand Down Expand Up @@ -3351,7 +3346,7 @@
short-summary: Delete a VPN connection.
examples:
- name: Delete a VPN connection.
text: az network vpn-connection create -g MyResourceGroup -n MyConnection
text: az network vpn-connection delete -g MyResourceGroup -n MyConnection
"""

helps['network vpn-connection list'] = """
Expand Down
2 changes: 1 addition & 1 deletion src/command_modules/azure-cli-network/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
logger.warn("Wheel is not available, disabling bdist_wheel hook")
cmdclass = {}

VERSION = "2.2.4"
VERSION = "2.2.5"
CLASSIFIERS = [
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
Expand Down
4 changes: 4 additions & 0 deletions src/command_modules/azure-cli-relay/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
Release History
===============

0.1.2
+++++
* Minor fixes

0.1.1
+++++
* Minor fixes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,23 +136,23 @@
short-summary: Shows the list of Authorization Rule by Relay Service Namespace
examples:
- name: Shows the list of Authorization Rule by Relay Service Namespace
text: az relay namespace authorization-rule show --resource-group myresourcegroup --namespace-name mynamespace
text: az relay namespace authorization-rule list --resource-group myresourcegroup --namespace-name mynamespace
"""

helps['relay namespace authorization-rule keys list'] = """
type: command
short-summary: List the keys and connection strings of Authorization Rule for Relay Service Namespace
examples:
- name: List the keys and connection strings of Authorization Rule for Relay Service Namespace
text: az relay namespace authorization-rule list-keys --resource-group myresourcegroup --namespace-name mynamespace --name myauthorule
text: az relay namespace authorization-rule keys list --resource-group myresourcegroup --namespace-name mynamespace --name myauthorule
"""

helps['relay namespace authorization-rule keys renew'] = """
type: command
short-summary: Regenerate keys of Authorization Rule for the Relay Service Namespace.
examples:
- name: Regenerate keys of Authorization Rule for the Relay Service Namespace.
text: az relay namespace authorization-rule regenerate-keys --resource-group myresourcegroup --namespace-name mynamespace --name myauthorule --key PrimaryKey
text: az relay namespace authorization-rule keys renew --resource-group myresourcegroup --namespace-name mynamespace --name myauthorule --key PrimaryKey
"""

helps['relay namespace authorization-rule delete'] = """
Expand Down Expand Up @@ -232,23 +232,23 @@
short-summary: List of Authorization Rule by Relay Service WCF Relay.
examples:
- name: List of Authorization Rule by WCF Relay
text: az relay wcfrelay authorization-rule show --resource-group myresourcegroup --namespace-name mynamespace --relay-name myrelay
text: az relay wcfrelay authorization-rule list --resource-group myresourcegroup --namespace-name mynamespace --relay-name myrelay
"""

helps['relay wcfrelay authorization-rule keys list'] = """
type: command
short-summary: List the keys and connection strings of Authorization Rule for the given Relay Service WCF Relay
examples:
- name: List the keys and connection strings of Authorization Rule for the given Relay Service WCF Relay
text: az relay wcfrelay authorization-rule list-keys --resource-group myresourcegroup --namespace-name mynamespace --relay-name myrelay --name myauthorule
text: az relay wcfrelay authorization-rule keys list --resource-group myresourcegroup --namespace-name mynamespace --relay-name myrelay --name myauthorule
"""

helps['relay wcfrelay authorization-rule keys renew'] = """
type: command
short-summary: Regenerate keys of Authorization Rule for Relay Service WCF Relay
examples:
- name: Regenerate keys of Authorization Rule for Relay Service WCF Relay
text: az relay wcfrelay authorization-rule regenerate-keys --resource-group myresourcegroup --namespace-name mynamespace --relay-name myrelay --name myauthorule --key PrimaryKey
text: az relay wcfrelay authorization-rule keys renew --resource-group myresourcegroup --namespace-name mynamespace --relay-name myrelay --name myauthorule --key PrimaryKey
"""

helps['relay wcfrelay authorization-rule delete'] = """
Expand Down Expand Up @@ -320,31 +320,31 @@
short-summary: Shows the details of Authorization Rule for given Relay Service Hybrid Connection
examples:
- name: Shows the details of Authorization Rule for given Relay Service Hybrid Connection
text: az relay hyco authorization-rule get --resource-group myresourcegroup --namespace-name mynamespace --hybrid-connection-name myhyco --name myauthorule
text: az relay hyco authorization-rule show --resource-group myresourcegroup --namespace-name mynamespace --hybrid-connection-name myhyco --name myauthorule
"""

helps['relay hyco authorization-rule list'] = """
type: command
short-summary: shows list of Authorization Rule by Relay Service Hybrid Connection
examples:
- name: shows list of Authorization Rule by Relay Service Hybrid Connection
text: az relay hyco authorization-rule get --resource-group myresourcegroup --namespace-name mynamespace --hybrid-connection-name myhyco
text: az relay hyco authorization-rule list --resource-group myresourcegroup --namespace-name mynamespace --hybrid-connection-name myhyco
"""

helps['relay hyco authorization-rule keys list'] = """
type: command
short-summary: List the keys and connection strings of Authorization Rule for Relay Service Hybrid Connection.
examples:
- name: List the keys and connection strings of Authorization Rule for Relay Service Hybrid Connection.
text: az relay hyco authorization-rule listkeys --resource-group myresourcegroup --namespace-name mynamespace --hybrid-connection-name myhyco --name myauthorule
text: az relay hyco authorization-rule keys list --resource-group myresourcegroup --namespace-name mynamespace --hybrid-connection-name myhyco --name myauthorule
"""

helps['relay hyco authorization-rule keys renew'] = """
type: command
short-summary: Regenerate keys of Authorization Rule for Relay Service Hybrid Connection.
examples:
- name: Regenerate key of Relay Service Hybrid Connection.
text: az relay hyco authorization-rule regenerate_keys --resource-group myresourcegroup --namespace-name mynamespace --hybrid-connection-name myhyco --name myauthorule --key PrimaryKey
text: az relay hyco authorization-rule keys renew --resource-group myresourcegroup --namespace-name mynamespace --hybrid-connection-name myhyco --name myauthorule --key PrimaryKey
"""

helps['relay hyco authorization-rule delete'] = """
Expand Down
2 changes: 1 addition & 1 deletion src/command_modules/azure-cli-relay/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
logger.warn("Wheel is not available, disabling bdist_wheel hook")
cmdclass = {}

VERSION = "0.1.1"
VERSION = "0.1.2"

# The full list of classifiers is available at
# https://pypi.python.org/pypi?%3Aaction=list_classifiers
Expand Down
3 changes: 3 additions & 0 deletions src/command_modules/azure-cli-servicebus/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

Release History
===============
0.2.3
+++++
* Minor fixes

0.2.2
+++++
Expand Down
Loading