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

[AutoPR] keyvault/resource-manager #3970

Merged
merged 10 commits into from
May 21, 2019
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
1 change: 1 addition & 0 deletions azure-mgmt-batch/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
recursive-include tests *.py *.yaml
include *.rst
include azure/__init__.py
include azure/mgmt/__init__.py
Expand Down
19 changes: 0 additions & 19 deletions azure-mgmt-batch/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,6 @@ For the older Azure Service Management (ASM) libraries, see
For a more complete set of Azure libraries, see the `azure <https://pypi.python.org/pypi/azure>`__ bundle package.


Compatibility
=============

**IMPORTANT**: If you have an earlier version of the azure package
(version < 1.0), you should uninstall it before installing this package.

You can check the version using pip:

.. code:: shell

pip freeze

If you see azure==0.11.0 (or any version below 1.0), uninstall it first:

.. code:: shell

pip uninstall azure


Usage
=====

Expand Down
2 changes: 1 addition & 1 deletion azure-mgmt-batch/dev_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
-e ../azure-sdk-tools
-e ../azure-mgmt-keyvault
-e ../sdk/keyvault/azure-mgmt-keyvault
1 change: 1 addition & 0 deletions azure-mgmt-batch/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
version=version,
description='Microsoft Azure {} Client Library for Python'.format(PACKAGE_PPRINT_NAME),
long_description=readme + '\n\n' + history,
long_description_content_type='text/x-rst',
license='MIT License',
author='Microsoft Corporation',
author_email='azpysdkhelp@microsoft.com',
Expand Down
1 change: 0 additions & 1 deletion azure-mgmt-keyvault/MANIFEST.in

This file was deleted.

1 change: 0 additions & 1 deletion azure-mgmt-keyvault/dev_requirements.txt

This file was deleted.

2 changes: 1 addition & 1 deletion sdk/keyvault/azure-keyvault/dev_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
-e ../../../azure-mgmt-authorization
-e ../../../azure-mgmt-keyvault
-e ../azure-mgmt-keyvault
-e ../../../azure-sdk-tools
5 changes: 5 additions & 0 deletions sdk/keyvault/azure-mgmt-keyvault/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
recursive-include tests *.py *.yaml
include *.rst
include azure/__init__.py
include azure/mgmt/__init__.py

Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,6 @@ For the older Azure Service Management (ASM) libraries, see
For a more complete set of Azure libraries, see the `azure <https://pypi.python.org/pypi/azure>`__ bundle package.


Compatibility
=============

**IMPORTANT**: If you have an earlier version of the azure package
(version < 1.0), you should uninstall it before installing this package.

You can check the version using pip:

.. code:: shell

pip freeze

If you see azure==0.11.0 (or any version below 1.0), uninstall it first:

.. code:: shell

pip uninstall azure


Usage
=====

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def models(cls, api_version=DEFAULT_API_VERSION):
from .v2018_02_14 import models
return models
raise NotImplementedError("APIVersion {} is not available".format(api_version))

@property
def operations(self):
"""Instance depends on the API version:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class OperationDisplay(Model):
:type resource: str
:param operation: Type of operation: get, read, delete, etc.
:type operation: str
:param description: Decription of operation.
:param description: Description of operation.
:type description: str
"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class OperationDisplay(Model):
:type resource: str
:param operation: Type of operation: get, read, delete, etc.
:type operation: str
:param description: Decription of operation.
:param description: Description of operation.
:type description: str
"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class VaultAccessPolicyParameters(Model):
:vartype name: str
:ivar type: The resource name of the access policy.
:vartype type: str
:ivar location: The resource type of the the access policy.
:ivar location: The resource type of the access policy.
:vartype location: str
:param properties: Required. Properties of the access policy
:type properties:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class VaultAccessPolicyParameters(Model):
:vartype name: str
:ivar type: The resource name of the access policy.
:vartype type: str
:ivar location: The resource type of the the access policy.
:ivar location: The resource type of the access policy.
:vartype location: str
:param properties: Required. Properties of the access policy
:type properties:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@


class VaultCheckNameAvailabilityParameters(Model):
"""The parameters used to check the availabity of the vault name.
"""The parameters used to check the availability of the vault name.

Variables are only populated by the server, and will be ignored when
sending a request.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@


class VaultCheckNameAvailabilityParameters(Model):
"""The parameters used to check the availabity of the vault name.
"""The parameters used to check the availability of the vault name.

Variables are only populated by the server, and will be ignored when
sending a request.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ class VaultProperties(Model):
:type sku: ~azure.mgmt.keyvault.v2016_10_01.models.Sku
:param access_policies: An array of 0 to 16 identities that have access to
the key vault. All identities in the array must use the same tenant ID as
the key vault's tenant ID.
the key vault's tenant ID. When `createMode` is set to `recover`, access
policies are not required. Otherwise, access policies are required.
:type access_policies:
list[~azure.mgmt.keyvault.v2016_10_01.models.AccessPolicyEntry]
:param vault_uri: The URI of the vault for performing operations on keys
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ class VaultProperties(Model):
:type sku: ~azure.mgmt.keyvault.v2016_10_01.models.Sku
:param access_policies: An array of 0 to 16 identities that have access to
the key vault. All identities in the array must use the same tenant ID as
the key vault's tenant ID.
the key vault's tenant ID. When `createMode` is set to `recover`, access
policies are not required. Otherwise, access policies are required.
:type access_policies:
list[~azure.mgmt.keyvault.v2016_10_01.models.AccessPolicyEntry]
:param vault_uri: The URI of the vault for performing operations on keys
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def internal_paging(next_link=None, raw=False):

# Construct headers
header_parameters = {}
header_parameters['Content-Type'] = 'application/json; charset=utf-8'
header_parameters['Accept'] = 'application/json'
if self.config.generate_client_request_id:
header_parameters['x-ms-client-request-id'] = str(uuid.uuid1())
if custom_headers:
Expand All @@ -76,9 +76,8 @@ def internal_paging(next_link=None, raw=False):
header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str')

# Construct and send request
request = self._client.get(url, query_parameters)
response = self._client.send(
request, header_parameters, stream=False, **operation_config)
request = self._client.get(url, query_parameters, header_parameters)
response = self._client.send(request, stream=False, **operation_config)

if response.status_code not in [200]:
exp = CloudError(response)
Expand Down
Loading