зеркало из https://github.com/Azure/azure-cli.git
Add LICENSES and update README (#537)
* Fix up README & add LICENSE * move our scripts * Add license headers * modify setup.py with license in classifiers * Change license from TBD to MIT * Use contoso.com instead of test.com for url used in test and modify preview instructions * Add license header to new file recently added
This commit is contained in:
Родитель
83bbb74218
Коммит
5173fd1167
21
.hgeol
21
.hgeol
|
@ -1,21 +0,0 @@
|
|||
[patterns]
|
||||
|
||||
**.sln = BIN
|
||||
**.ico = BIN
|
||||
**.bmp = BIN
|
||||
**.png = BIN
|
||||
**.snk = BIN
|
||||
**.mht = BIN
|
||||
**.pickle = BIN
|
||||
|
||||
# Some Windows-specific files should always be CRLF
|
||||
|
||||
**.bat = CRLF
|
||||
|
||||
# All other files (which presumably are human-editable) are "native".
|
||||
# This must be the last rule!
|
||||
|
||||
** = native
|
||||
|
||||
[repository]
|
||||
native = LF
|
|
@ -0,0 +1,9 @@
|
|||
Contribute Code
|
||||
===================================
|
||||
|
||||
This project has adopted the `Microsoft Open Source Code of Conduct <https://opensource.microsoft.com/codeofconduct/>`__.
|
||||
|
||||
For more information see the `Code of Conduct FAQ <https://opensource.microsoft.com/codeofconduct/faq/>`__ or contact `opencode@microsoft.com <mailto:opencode@microsoft.com>`__ with any additional questions or comments.
|
||||
|
||||
If you would like to become an active contributor to this project please
|
||||
follow the instructions provided in `Microsoft Azure Projects Contribution Guidelines <http://azure.github.io/guidelines.html>`__
|
|
@ -1,3 +1,8 @@
|
|||
#---------------------------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
#---------------------------------------------------------------------------------------------
|
||||
|
||||
FROM python:3.5
|
||||
|
||||
# Set the working directory
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
Azure CLI
|
||||
|
||||
Copyright (c) Microsoft Corporation
|
||||
|
||||
All rights reserved.
|
||||
|
||||
MIT License
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
26
README.rst
26
README.rst
|
@ -1,6 +1,11 @@
|
|||
Microsoft Project AZ - Preview
|
||||
==================================
|
||||
|
||||
.. image:: https://travis-ci.com/Azure/azure-cli.svg?branch=master
|
||||
:target: https://travis-ci.com/Azure/azure-cli
|
||||
|
||||
==================================
|
||||
|
||||
A great cloud needs great tools; we're excited to introduce *Project Az*, our prototype for building a great, multiplatform commandline experience for Azure.
|
||||
|
||||
Project Az is built on Python (2.7, 3.4 and 3.5).
|
||||
|
@ -11,15 +16,15 @@ Installation
|
|||
For installation steps for common platforms, please take a look at our `preview installation guide <http://github.com/Azure/azure-cli/blob/master/doc/preview_install_guide.md>`__.
|
||||
|
||||
Docker Setup (optional)
|
||||
------------
|
||||
-----------------------
|
||||
We have automated Docker images of the latest code in the master branch.
|
||||
|
||||
If you have not previously done so, configure your Docker client engine [here](https://docs.docker.com/engine/installation/).
|
||||
If you have not previously done so, `configure your Docker client engine <https://docs.docker.com/engine/installation/>`__.
|
||||
|
||||
Then:
|
||||
+ Run `docker login` (contact the team for credentials as the images are not public yet).
|
||||
+ Run `docker pull azuresdk/azure-cli-python:latest`
|
||||
+ Run `docker run -it azuresdk/azure-cli-python:latest`
|
||||
+ Run :code:`docker login` (contact the team for credentials as the images are not public yet).
|
||||
+ Run :code:`docker pull azuresdk/azure-cli-python:latest`
|
||||
+ Run :code:`docker run -it azuresdk/azure-cli-python:latest`
|
||||
|
||||
Usage
|
||||
=====
|
||||
|
@ -31,7 +36,7 @@ Usage
|
|||
For sample scripts and commands, please visit the `Demo Scripts <https://github.com/Azure/azure-cli/blob/master/doc/preview_demo_scripts.md>`__ page.
|
||||
|
||||
Download Source Code
|
||||
--------------------
|
||||
====================
|
||||
|
||||
To get the source code of the SDK via **git** type
|
||||
|
||||
|
@ -51,7 +56,9 @@ To provide feedback from the command line, try the ``az feedback`` command.
|
|||
Contribute Code
|
||||
===================================
|
||||
|
||||
This project has adopted the `Microsoft Open Source Code of Conduct <https://opensource.microsoft.com/codeofconduct/>`__. For more information see the `Code of Conduct FAQ <https://opensource.microsoft.com/codeofconduct/faq/>`__ or contact `opencode@microsoft.com <mailto:opencode@microsoft.com>`__ with any additional questions or comments.
|
||||
This project has adopted the `Microsoft Open Source Code of Conduct <https://opensource.microsoft.com/codeofconduct/>`__.
|
||||
|
||||
For more information see the `Code of Conduct FAQ <https://opensource.microsoft.com/codeofconduct/faq/>`__ or contact `opencode@microsoft.com <mailto:opencode@microsoft.com>`__ with any additional questions or comments.
|
||||
|
||||
If you would like to become an active contributor to this project please
|
||||
follow the instructions provided in `Microsoft Azure Projects Contribution Guidelines <http://azure.github.io/guidelines.html>`__
|
||||
|
@ -60,3 +67,8 @@ Learn More
|
|||
==========
|
||||
|
||||
`Microsoft Azure Python Developer Center <http://azure.microsoft.com/en-us/develop/python/>`__
|
||||
|
||||
License
|
||||
=======
|
||||
|
||||
`MIT <https://github.com/Azure/azure-cli/blob/master/LICENSE.txt>`__
|
||||
|
|
|
@ -28,7 +28,7 @@ setup(
|
|||
version='0.0.1',
|
||||
description='Microsoft Azure Command-Line Tools Example Command Module',
|
||||
long_description=README,
|
||||
license='TBD',
|
||||
license='MIT',
|
||||
author='Example Author',
|
||||
author_email='author@example.com',
|
||||
url='https://github.com/example/repo',
|
||||
|
|
|
@ -8,11 +8,11 @@ Installation via CURL
|
|||
|
||||
To install via cURL on Linux, Unix and OS X, type:
|
||||
|
||||
curl http://azure-cli-nightly.westus.cloudapp.azure.com/install | bash
|
||||
curl -L https://aka.ms/ProjectAzInstall | bash
|
||||
|
||||
If you chose to enable tab completion, type `exec -l $SHELL` to restart your shell.
|
||||
|
||||
Note: This will install the latest nightly builds. You may re-run this script later to safely update to the latest version.
|
||||
Note: This will install the latest verified nightly builds. You may re-run this script later to safely update to the latest version.
|
||||
|
||||
Example Demo Script
|
||||
-------------------
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
#---------------------------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
#---------------------------------------------------------------------------------------------
|
||||
|
||||
import argparse
|
||||
from docutils import nodes
|
||||
from docutils.statemachine import ViewList
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
#---------------------------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
#---------------------------------------------------------------------------------------------
|
||||
|
||||
from __future__ import print_function
|
||||
import os
|
||||
import sys
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
#---------------------------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
#---------------------------------------------------------------------------------------------
|
||||
|
||||
from __future__ import print_function
|
||||
import os
|
||||
import sys
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
#---------------------------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
#---------------------------------------------------------------------------------------------
|
||||
|
||||
## Install the command modules using pip ##
|
||||
from __future__ import print_function
|
||||
import os
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
#---------------------------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
#---------------------------------------------------------------------------------------------
|
||||
|
||||
## Install the command modules using pip ##
|
||||
from __future__ import print_function
|
||||
import os
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
#---------------------------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
#---------------------------------------------------------------------------------------------
|
||||
|
||||
## Runs pylint on the command modules ##
|
||||
from __future__ import print_function
|
||||
import os
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
#---------------------------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
#---------------------------------------------------------------------------------------------
|
||||
|
||||
## Run the tests for each command module ##
|
||||
|
||||
from __future__ import print_function
|
||||
|
|
|
@ -1,4 +1,10 @@
|
|||
#!/usr/bin/python
|
||||
|
||||
#---------------------------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
#---------------------------------------------------------------------------------------------
|
||||
|
||||
from __future__ import print_function
|
||||
import sys
|
||||
from subprocess import check_call, CalledProcessError
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
#---------------------------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
#---------------------------------------------------------------------------------------------
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
import argparse
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
#---------------------------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
#---------------------------------------------------------------------------------------------
|
||||
|
||||
import argparse
|
||||
import json
|
||||
import re
|
||||
|
|
|
@ -1,4 +1,10 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
#---------------------------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
#---------------------------------------------------------------------------------------------
|
||||
|
||||
#
|
||||
# Bash script to install the Azure CLI
|
||||
#
|
||||
|
|
|
@ -1,4 +1,10 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
#---------------------------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
#---------------------------------------------------------------------------------------------
|
||||
|
||||
#
|
||||
# This script will install the CLI into a directory and create an executable
|
||||
# at a specified file path that is the entry point into the CLI.
|
||||
|
|
|
@ -1,4 +1,10 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
#---------------------------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
#---------------------------------------------------------------------------------------------
|
||||
|
||||
#
|
||||
# This script will set up tab completion for the Azure CLI.
|
||||
#
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
#---------------------------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
#---------------------------------------------------------------------------------------------
|
||||
|
||||
"""
|
||||
Generate a command module using the SDK.
|
||||
"""
|
||||
|
@ -79,7 +84,7 @@ setup(
|
|||
version=VERSION,
|
||||
description='Microsoft Azure Command-Line Tools',
|
||||
long_description=README,
|
||||
license='TBD',
|
||||
license='MIT',
|
||||
author='Microsoft Corporation',
|
||||
author_email='azpycli@microsoft.com',
|
||||
url='https://github.com/Azure/azure-cli',
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
#---------------------------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
#---------------------------------------------------------------------------------------------
|
||||
|
||||
"""
|
||||
Create the generated.py file for a command module.
|
||||
"""
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
#---------------------------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
#---------------------------------------------------------------------------------------------
|
||||
|
||||
import configparser
|
||||
import os
|
||||
import re
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
#---------------------------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
#---------------------------------------------------------------------------------------------
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
import distutils
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
#---------------------------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
#---------------------------------------------------------------------------------------------
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
from collections import OrderedDict
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
#---------------------------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
#---------------------------------------------------------------------------------------------
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
import json
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
#---------------------------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
#---------------------------------------------------------------------------------------------
|
||||
|
||||
import os
|
||||
import sys
|
||||
from six import StringIO, text_type, u
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
#---------------------------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
#---------------------------------------------------------------------------------------------
|
||||
|
||||
from _common import (create_vm,
|
||||
install_cli_interactive,
|
||||
verify_basic,
|
||||
|
|
25
setup.py
25
setup.py
|
@ -1,19 +1,9 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft. All rights reserved.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#--------------------------------------------------------------------------
|
||||
#---------------------------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
#---------------------------------------------------------------------------------------------
|
||||
|
||||
from __future__ import print_function
|
||||
import os
|
||||
|
@ -48,8 +38,6 @@ else:
|
|||
print('Expected __version__ = "{}"; found "{}"'.format(VERSION, m.group(1)))
|
||||
sys.exit(1)
|
||||
|
||||
# The full list of classifiers is available at
|
||||
# https://pypi.python.org/pypi?%3Aaction=list_classifiers
|
||||
CLASSIFIERS = [
|
||||
'Development Status :: 3 - Alpha',
|
||||
'Intended Audience :: Developers',
|
||||
|
@ -60,8 +48,7 @@ CLASSIFIERS = [
|
|||
'Programming Language :: Python :: 3',
|
||||
'Programming Language :: Python :: 3.4',
|
||||
'Programming Language :: Python :: 3.5',
|
||||
#'License :: OSI Approved :: Apache Software License',
|
||||
#'License :: OSI Approved :: MIT License',
|
||||
'License :: OSI Approved :: MIT License',
|
||||
]
|
||||
|
||||
DEPENDENCIES = [
|
||||
|
@ -114,7 +101,7 @@ setup(
|
|||
version=VERSION,
|
||||
description='Microsoft Azure Command-Line Tools',
|
||||
long_description=README,
|
||||
license='TBD',
|
||||
license='MIT',
|
||||
author='Microsoft Corporation',
|
||||
author_email='azpycli@microsoft.com',
|
||||
url='https://github.com/Azure/azure-cli',
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
#---------------------------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
#---------------------------------------------------------------------------------------------
|
||||
|
||||
'''The Azure Command-line tool.
|
||||
|
||||
This tools provides a command-line interface to Azure's management and storage
|
||||
|
|
|
@ -1,4 +1,9 @@
|
|||
import sys
|
||||
#---------------------------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
#---------------------------------------------------------------------------------------------
|
||||
|
||||
import sys
|
||||
import os
|
||||
|
||||
import azure.cli.main
|
||||
|
|
|
@ -1,4 +1,9 @@
|
|||
CLIENT_ID = '04b07795-8ddb-461a-bbee-02f9e1bf7b46'
|
||||
#---------------------------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
#---------------------------------------------------------------------------------------------
|
||||
|
||||
CLIENT_ID = '04b07795-8ddb-461a-bbee-02f9e1bf7b46'
|
||||
|
||||
ENV_DEFAULT = 'AzureCloud'
|
||||
ENV_US_GOVERNMENT = 'AzureUSGovernment'
|
||||
|
|
|
@ -1,4 +1,9 @@
|
|||
import os
|
||||
#---------------------------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
#---------------------------------------------------------------------------------------------
|
||||
|
||||
import os
|
||||
import azure.cli._logging as _logging
|
||||
|
||||
logger = _logging.get_az_logger(__name__)
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
#---------------------------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
#---------------------------------------------------------------------------------------------
|
||||
|
||||
from __future__ import print_function
|
||||
import argparse
|
||||
import sys
|
||||
|
|
|
@ -1,4 +1,9 @@
|
|||
import os
|
||||
#---------------------------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
#---------------------------------------------------------------------------------------------
|
||||
|
||||
import os
|
||||
import platform
|
||||
import logging
|
||||
from logging.handlers import RotatingFileHandler
|
||||
|
|
|
@ -1,4 +1,9 @@
|
|||
from __future__ import print_function, unicode_literals
|
||||
#---------------------------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
#---------------------------------------------------------------------------------------------
|
||||
|
||||
from __future__ import print_function, unicode_literals
|
||||
|
||||
import sys
|
||||
import json
|
||||
|
|
|
@ -1,4 +1,9 @@
|
|||
from __future__ import print_function
|
||||
#---------------------------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
#---------------------------------------------------------------------------------------------
|
||||
|
||||
from __future__ import print_function
|
||||
import collections
|
||||
from codecs import open as codecs_open
|
||||
import json
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
#---------------------------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
#---------------------------------------------------------------------------------------------
|
||||
|
||||
import json
|
||||
import os
|
||||
import time
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
#---------------------------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
#---------------------------------------------------------------------------------------------
|
||||
|
||||
import getpass
|
||||
from applicationinsights import TelemetryClient
|
||||
from applicationinsights.exceptions import enable
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
#---------------------------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
#---------------------------------------------------------------------------------------------
|
||||
|
||||
from __future__ import print_function
|
||||
import sys
|
||||
import platform
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
#---------------------------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
#---------------------------------------------------------------------------------------------
|
||||
|
||||
import adal
|
||||
|
||||
from msrest.authentication import Authentication
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
#---------------------------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
#---------------------------------------------------------------------------------------------
|
||||
|
||||
from collections import defaultdict
|
||||
from datetime import datetime
|
||||
import sys
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
#---------------------------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
#---------------------------------------------------------------------------------------------
|
||||
|
||||
from __future__ import print_function
|
||||
import json
|
||||
import time
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
#---------------------------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
#---------------------------------------------------------------------------------------------
|
||||
|
||||
import inspect
|
||||
import re
|
||||
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
#---------------------------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
#---------------------------------------------------------------------------------------------
|
||||
|
||||
import argparse
|
||||
import re
|
||||
from azure.cli.commands.client_factory import get_mgmt_service_client
|
||||
|
|
|
@ -1,4 +1,9 @@
|
|||
from .._profile import Profile
|
||||
#---------------------------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
#---------------------------------------------------------------------------------------------
|
||||
|
||||
from .._profile import Profile
|
||||
import azure.cli._debug as _debug
|
||||
import azure.cli as cli
|
||||
import azure.cli._logging as _logging
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
#---------------------------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
#---------------------------------------------------------------------------------------------
|
||||
|
||||
import argparse
|
||||
|
||||
# pylint: disable=line-too-long
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
#---------------------------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
#---------------------------------------------------------------------------------------------
|
||||
|
||||
from __future__ import print_function
|
||||
import argparse
|
||||
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
#---------------------------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
#---------------------------------------------------------------------------------------------
|
||||
|
||||
import argparse
|
||||
import time
|
||||
import random
|
||||
|
|
|
@ -1,4 +1,9 @@
|
|||
from .query import register as register_query
|
||||
#---------------------------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
#---------------------------------------------------------------------------------------------
|
||||
|
||||
from .query import register as register_query
|
||||
from .transform import register as register_transform
|
||||
|
||||
def register_extensions(application):
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
#---------------------------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
#---------------------------------------------------------------------------------------------
|
||||
|
||||
def register(event_dispatcher):
|
||||
def _enable_experimental_handlers(_, event_data):
|
||||
"""The user can opt in to experimental event handlers by
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
#---------------------------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
#---------------------------------------------------------------------------------------------
|
||||
|
||||
import collections
|
||||
|
||||
def jmespath_type(raw_query):
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
#---------------------------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
#---------------------------------------------------------------------------------------------
|
||||
|
||||
import re
|
||||
|
||||
def register(application):
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
#---------------------------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
#---------------------------------------------------------------------------------------------
|
||||
|
||||
import yaml
|
||||
|
||||
# modules should add entries to helps in the form: "group command": "YAML help"
|
||||
|
|
|
@ -1,4 +1,9 @@
|
|||
import os
|
||||
#---------------------------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
#---------------------------------------------------------------------------------------------
|
||||
|
||||
import os
|
||||
import sys
|
||||
|
||||
from azure.cli.application import APPLICATION, Configuration
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
#---------------------------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
#---------------------------------------------------------------------------------------------
|
||||
|
||||
import argparse
|
||||
import argcomplete
|
||||
import azure.cli._help as _help
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
#---------------------------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
#---------------------------------------------------------------------------------------------
|
||||
|
||||
import unittest
|
||||
from six import StringIO
|
||||
from azure.cli.extensions.transform import _parse_id, _add_resource_group
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
#---------------------------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
#---------------------------------------------------------------------------------------------
|
||||
|
||||
import unittest
|
||||
from collections import namedtuple
|
||||
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
#---------------------------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
#---------------------------------------------------------------------------------------------
|
||||
|
||||
import logging
|
||||
import unittest
|
||||
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
#---------------------------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
#---------------------------------------------------------------------------------------------
|
||||
|
||||
import os
|
||||
import logging
|
||||
import unittest
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
#---------------------------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
#---------------------------------------------------------------------------------------------
|
||||
|
||||
import unittest
|
||||
|
||||
from azure.cli.extensions.query import jmespath_type
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
#---------------------------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
#---------------------------------------------------------------------------------------------
|
||||
|
||||
from __future__ import print_function
|
||||
import sys
|
||||
import unittest
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
#---------------------------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
#---------------------------------------------------------------------------------------------
|
||||
|
||||
import unittest
|
||||
import azure.cli._logging as _logging
|
||||
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
#---------------------------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
#---------------------------------------------------------------------------------------------
|
||||
|
||||
import unittest
|
||||
|
||||
from azure.cli.main import main as cli
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
#---------------------------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
#---------------------------------------------------------------------------------------------
|
||||
|
||||
from __future__ import print_function
|
||||
# pylint: disable=protected-access, bad-continuation, too-many-public-methods, trailing-whitespace
|
||||
import unittest
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
#---------------------------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
#---------------------------------------------------------------------------------------------
|
||||
|
||||
import unittest
|
||||
from six import StringIO
|
||||
from azure.cli.parser import AzCliCommandParser
|
||||
|
|
|
@ -1,4 +1,9 @@
|
|||
# pylint: disable=protected-access, unsubscriptable-object
|
||||
#---------------------------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
#---------------------------------------------------------------------------------------------
|
||||
|
||||
# pylint: disable=protected-access, unsubscriptable-object
|
||||
import json
|
||||
import unittest
|
||||
import mock
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
#---------------------------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
#---------------------------------------------------------------------------------------------
|
||||
|
||||
# pylint: disable=line-too-long
|
||||
import unittest
|
||||
from six import StringIO
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
#---------------------------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
#---------------------------------------------------------------------------------------------
|
||||
|
||||
import unittest
|
||||
from six import StringIO
|
||||
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
#---------------------------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
#---------------------------------------------------------------------------------------------
|
||||
|
||||
# pylint: disable=line-too-long
|
||||
import os
|
||||
import unittest
|
||||
|
@ -36,14 +41,14 @@ class Test_vcr_security(unittest.TestCase):
|
|||
|
||||
def test_deployment_name_scrub(self):
|
||||
from azure.cli.utils.vcr_test_base import _scrub_deployment_name as scrub_deployment_name
|
||||
uri1 = 'https://www.test.com/deployments/azurecli1466174372.33571889479?api-version=2015-11-01'
|
||||
uri2 = 'https://www.test.com/deployments/azurecli1466174372.33571889479/more'
|
||||
uri1 = 'https://www.contoso.com/deployments/azurecli1466174372.33571889479?api-version=2015-11-01'
|
||||
uri2 = 'https://www.contoso.com/deployments/azurecli1466174372.33571889479/more'
|
||||
|
||||
uri1 = scrub_deployment_name(uri1)
|
||||
uri2 = scrub_deployment_name(uri2)
|
||||
|
||||
self.assertEqual(uri1, 'https://www.test.com/deployments/mock-deployment?api-version=2015-11-01')
|
||||
self.assertEqual(uri2, 'https://www.test.com/deployments/mock-deployment/more')
|
||||
self.assertEqual(uri1, 'https://www.contoso.com/deployments/mock-deployment?api-version=2015-11-01')
|
||||
self.assertEqual(uri2, 'https://www.contoso.com/deployments/mock-deployment/more')
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
#---------------------------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
#---------------------------------------------------------------------------------------------
|
||||
|
||||
import os
|
||||
import re
|
||||
import imp
|
||||
|
|
|
@ -1,4 +1,9 @@
|
|||
from __future__ import print_function
|
||||
#---------------------------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
#---------------------------------------------------------------------------------------------
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
import json
|
||||
import os
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
#---------------------------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
#---------------------------------------------------------------------------------------------
|
||||
|
||||
# pylint: disable=unused-import
|
||||
|
||||
import azure.cli.command_modules.component._params
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
#---------------------------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
#---------------------------------------------------------------------------------------------
|
||||
|
||||
from azure.cli.commands import register_cli_argument, CliArgumentType
|
||||
|
||||
# BASIC PARAMETER CONFIGURATION
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
#---------------------------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
#---------------------------------------------------------------------------------------------
|
||||
|
||||
# pylint: disable=no-self-use
|
||||
from __future__ import print_function
|
||||
import os
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
#---------------------------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
#---------------------------------------------------------------------------------------------
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
from azure.cli.commands import cli_command
|
||||
|
|
|
@ -1,27 +1,15 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft. All rights reserved.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#--------------------------------------------------------------------------
|
||||
#---------------------------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
#---------------------------------------------------------------------------------------------
|
||||
|
||||
from codecs import open
|
||||
from setuptools import setup
|
||||
|
||||
VERSION = '0.0.9'
|
||||
|
||||
# The full list of classifiers is available at
|
||||
# https://pypi.python.org/pypi?%3Aaction=list_classifiers
|
||||
CLASSIFIERS = [
|
||||
'Development Status :: 3 - Alpha',
|
||||
'Intended Audience :: Developers',
|
||||
|
@ -32,8 +20,7 @@ CLASSIFIERS = [
|
|||
'Programming Language :: Python :: 3',
|
||||
'Programming Language :: Python :: 3.4',
|
||||
'Programming Language :: Python :: 3.5',
|
||||
#'License :: OSI Approved :: Apache Software License',
|
||||
#'License :: OSI Approved :: MIT License',
|
||||
'License :: OSI Approved :: MIT License',
|
||||
]
|
||||
|
||||
DEPENDENCIES = [
|
||||
|
@ -48,7 +35,7 @@ setup(
|
|||
version=VERSION,
|
||||
description='Microsoft Azure Command-Line Tools',
|
||||
long_description=README,
|
||||
license='TBD',
|
||||
license='MIT',
|
||||
author='Microsoft Corporation',
|
||||
author_email='azpycli@microsoft.com',
|
||||
url='https://github.com/Azure/azure-cli',
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
#---------------------------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
#---------------------------------------------------------------------------------------------
|
||||
|
||||
from __future__ import print_function
|
||||
import sys
|
||||
from six.moves import input #pylint: disable=redefined-builtin
|
||||
|
|
|
@ -1,27 +1,15 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft. All rights reserved.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#--------------------------------------------------------------------------
|
||||
#---------------------------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
#---------------------------------------------------------------------------------------------
|
||||
|
||||
from codecs import open
|
||||
from setuptools import setup
|
||||
|
||||
VERSION = '0.0.1'
|
||||
|
||||
# The full list of classifiers is available at
|
||||
# https://pypi.python.org/pypi?%3Aaction=list_classifiers
|
||||
CLASSIFIERS = [
|
||||
'Development Status :: 3 - Alpha',
|
||||
'Intended Audience :: Developers',
|
||||
|
@ -32,8 +20,7 @@ CLASSIFIERS = [
|
|||
'Programming Language :: Python :: 3',
|
||||
'Programming Language :: Python :: 3.4',
|
||||
'Programming Language :: Python :: 3.5',
|
||||
#'License :: OSI Approved :: Apache Software License',
|
||||
#'License :: OSI Approved :: MIT License',
|
||||
'License :: OSI Approved :: MIT License',
|
||||
]
|
||||
|
||||
DEPENDENCIES = [
|
||||
|
@ -48,7 +35,7 @@ setup(
|
|||
version=VERSION,
|
||||
description='Microsoft Azure Command-Line Tools Feedback Command Module',
|
||||
long_description=README,
|
||||
license='TBD',
|
||||
license='MIT',
|
||||
author='Microsoft Corporation',
|
||||
author_email='azpycli@microsoft.com',
|
||||
url='https://github.com/Azure/azure-cli',
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
#---------------------------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
#---------------------------------------------------------------------------------------------
|
||||
|
||||
# pylint: disable=unused-import
|
||||
|
||||
import azure.cli.command_modules.network._params
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
#---------------------------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
#---------------------------------------------------------------------------------------------
|
||||
|
||||
from azure.mgmt.network import NetworkManagementClient
|
||||
from azure.cli.commands.client_factory import get_mgmt_service_client
|
||||
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
#---------------------------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
#---------------------------------------------------------------------------------------------
|
||||
|
||||
# pylint: disable=line-too-long
|
||||
import argparse
|
||||
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
#---------------------------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
#---------------------------------------------------------------------------------------------
|
||||
|
||||
import argparse
|
||||
import base64
|
||||
import socket
|
||||
|
|
|
@ -1,4 +1,9 @@
|
|||
# pylint: disable=no-self-use,too-many-arguments,no-member
|
||||
#---------------------------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
#---------------------------------------------------------------------------------------------
|
||||
|
||||
# pylint: disable=no-self-use,too-many-arguments,no-member
|
||||
from azure.mgmt.network.models import Subnet, SecurityRule, NetworkSecurityGroup
|
||||
|
||||
from azure.cli._util import CLIError
|
||||
|
|
|
@ -1,4 +1,9 @@
|
|||
from azure.mgmt.network.operations import (
|
||||
#---------------------------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
#---------------------------------------------------------------------------------------------
|
||||
|
||||
from azure.mgmt.network.operations import (
|
||||
ApplicationGatewaysOperations,
|
||||
ExpressRouteCircuitAuthorizationsOperations,
|
||||
ExpressRouteCircuitPeeringsOperations,
|
||||
|
|
|
@ -1,4 +1,9 @@
|
|||
#pylint: disable=method-hidden
|
||||
#---------------------------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
#---------------------------------------------------------------------------------------------
|
||||
|
||||
#pylint: disable=method-hidden
|
||||
#pylint: disable=line-too-long
|
||||
#pylint: disable=bad-continuation
|
||||
import os
|
||||
|
|
|
@ -1,27 +1,15 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft. All rights reserved.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#--------------------------------------------------------------------------
|
||||
#---------------------------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
#---------------------------------------------------------------------------------------------
|
||||
|
||||
from codecs import open
|
||||
from setuptools import setup
|
||||
|
||||
VERSION = '0.0.5'
|
||||
|
||||
# The full list of classifiers is available at
|
||||
# https://pypi.python.org/pypi?%3Aaction=list_classifiers
|
||||
CLASSIFIERS = [
|
||||
'Development Status :: 3 - Alpha',
|
||||
'Intended Audience :: Developers',
|
||||
|
@ -32,8 +20,7 @@ CLASSIFIERS = [
|
|||
'Programming Language :: Python :: 3',
|
||||
'Programming Language :: Python :: 3.4',
|
||||
'Programming Language :: Python :: 3.5',
|
||||
#'License :: OSI Approved :: Apache Software License',
|
||||
#'License :: OSI Approved :: MIT License',
|
||||
'License :: OSI Approved :: MIT License',
|
||||
]
|
||||
|
||||
DEPENDENCIES = [
|
||||
|
@ -48,7 +35,7 @@ setup(
|
|||
version=VERSION,
|
||||
description='Microsoft Azure Command-Line Tools',
|
||||
long_description=README,
|
||||
license='TBD',
|
||||
license='MIT',
|
||||
author='Microsoft Corporation',
|
||||
author_email='azpycli@microsoft.com',
|
||||
url='https://github.com/Azure/azure-cli',
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
#---------------------------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
#---------------------------------------------------------------------------------------------
|
||||
|
||||
# pylint: disable=unused-import
|
||||
|
||||
import azure.cli.command_modules.profile._params
|
||||
|
|
|
@ -1,4 +1,9 @@
|
|||
from azure.cli.commands import CliArgumentType, register_cli_argument
|
||||
#---------------------------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
#---------------------------------------------------------------------------------------------
|
||||
|
||||
from azure.cli.commands import CliArgumentType, register_cli_argument
|
||||
from .custom import load_subscriptions
|
||||
# BASIC PARAMETER CONFIGURATION
|
||||
|
||||
|
|
|
@ -1,4 +1,9 @@
|
|||
# pylint: disable=too-few-public-methods,too-many-arguments,no-self-use
|
||||
#---------------------------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
#---------------------------------------------------------------------------------------------
|
||||
|
||||
# pylint: disable=too-few-public-methods,too-many-arguments,no-self-use
|
||||
#TODO: update adal-python to support it
|
||||
#from azure.cli._debug import should_disable_connection_verify
|
||||
import datetime
|
||||
|
|
|
@ -1,4 +1,9 @@
|
|||
from __future__ import print_function
|
||||
#---------------------------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
#---------------------------------------------------------------------------------------------
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
from azure.cli.commands import cli_command
|
||||
|
||||
|
|
|
@ -1,27 +1,15 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft. All rights reserved.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#--------------------------------------------------------------------------
|
||||
#---------------------------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
#---------------------------------------------------------------------------------------------
|
||||
|
||||
from codecs import open
|
||||
from setuptools import setup
|
||||
|
||||
VERSION = '0.0.3'
|
||||
|
||||
# The full list of classifiers is available at
|
||||
# https://pypi.python.org/pypi?%3Aaction=list_classifiers
|
||||
CLASSIFIERS = [
|
||||
'Development Status :: 3 - Alpha',
|
||||
'Intended Audience :: Developers',
|
||||
|
@ -32,8 +20,7 @@ CLASSIFIERS = [
|
|||
'Programming Language :: Python :: 3',
|
||||
'Programming Language :: Python :: 3.4',
|
||||
'Programming Language :: Python :: 3.5',
|
||||
#'License :: OSI Approved :: Apache Software License',
|
||||
#'License :: OSI Approved :: MIT License',
|
||||
'License :: OSI Approved :: MIT License',
|
||||
]
|
||||
|
||||
DEPENDENCIES = [
|
||||
|
@ -49,7 +36,7 @@ setup(
|
|||
version=VERSION,
|
||||
description='Microsoft Azure Command-Line Tools',
|
||||
long_description=README,
|
||||
license='TBD',
|
||||
license='MIT',
|
||||
author='Microsoft Corporation',
|
||||
author_email='azpycli@microsoft.com',
|
||||
url='https://github.com/Azure/azure-cli',
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
#---------------------------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
#---------------------------------------------------------------------------------------------
|
||||
|
||||
# pylint: disable=unused-import
|
||||
|
||||
import azure.cli.command_modules.resource._params
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
#---------------------------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
#---------------------------------------------------------------------------------------------
|
||||
|
||||
from azure.mgmt.resource.resources import ResourceManagementClient
|
||||
from azure.cli.commands.client_factory import get_mgmt_service_client
|
||||
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
#---------------------------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
#---------------------------------------------------------------------------------------------
|
||||
|
||||
# pylint: disable=line-too-long
|
||||
import argparse
|
||||
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
#---------------------------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
#---------------------------------------------------------------------------------------------
|
||||
|
||||
import collections
|
||||
|
||||
from azure.cli.parser import IncorrectUsageError
|
||||
|
|
Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше
Загрузка…
Ссылка в новой задаче