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 batchai/resource-manager] typo: batchai/resource-manager/Microsoft.BatchAI/BatchAI #3859

Merged
merged 2 commits into from
Nov 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
4 changes: 3 additions & 1 deletion azure-mgmt-batchai/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
include *.rst
include azure_bdist_wheel.py
include azure/__init__.py
include azure/mgmt/__init__.py

8 changes: 4 additions & 4 deletions azure-mgmt-batchai/README.rst
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
Microsoft Azure SDK for Python
==============================

This is the Microsoft Azure Batch AI Management Client Library.
This is the Microsoft Azure MyService Management Client Library.

Azure Resource Manager (ARM) is the next generation of management APIs that
replace the old Azure Service Management (ASM).

This package has been tested with Python 2.7, 3.4, 3.5 and 3.6.
This package has been tested with Python 2.7, 3.4, 3.5, 3.6 and 3.7.

For the older Azure Service Management (ASM) libraries, see
`azure-servicemanagement-legacy <https://pypi.python.org/pypi/azure-servicemanagement-legacy>`__ library.
Expand Down Expand Up @@ -36,8 +36,8 @@ If you see azure==0.11.0 (or any version below 1.0), uninstall it first:
Usage
=====

For code examples, see `Batch AI Management
<https://docs.microsoft.com/python/api/overview/azure/batchai>`__
For code examples, see `MyService Management
<https://docs.microsoft.com/python/api/overview/azure/>`__
on docs.microsoft.com.


Expand Down
2 changes: 1 addition & 1 deletion azure-mgmt-batchai/azure/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__import__('pkg_resources').declare_namespace(__name__)
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
2 changes: 1 addition & 1 deletion azure-mgmt-batchai/azure/mgmt/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__import__('pkg_resources').declare_namespace(__name__)
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
4 changes: 2 additions & 2 deletions azure-mgmt-batchai/azure/mgmt/batchai/models/job.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class Job(ProxyResource):
:type cluster: ~azure.mgmt.batchai.models.ResourceId
:param mount_volumes: Mount volumes. Collection of mount volumes available
to the job during execution. These volumes are mounted before the job
execution and unmouted after the job completion. The volumes are mounted
execution and unmounted after the job completion. The volumes are mounted
at location specified by $AZ_BATCHAI_JOB_MOUNT_ROOT environment variable.
:type mount_volumes: ~azure.mgmt.batchai.models.MountVolumes
:param node_count: Number of compute nodes to run the job on. The job will
Expand Down Expand Up @@ -120,7 +120,7 @@ class Job(ProxyResource):
up container specified on the job - it does not necessarily mean that the
job command line has started executing. terminating - The job is
terminated by the user, the terminate operation is in progress. succeeded
- The job has completed running succesfully and exited with exit code 0.
- The job has completed running successfully and exited with exit code 0.
failed - The job has finished unsuccessfully (failed with a non-zero exit
code) and has exhausted its retry limit. A job is also marked as failed if
an error occurred launching the job. Possible values include: 'queued',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ class JobCreateParameters(Model):
:type cluster: ~azure.mgmt.batchai.models.ResourceId
:param mount_volumes: Mount volumes. Information on mount volumes to be
used by the job. These volumes will be mounted before the job execution
and will be unmouted after the job completion. The volumes will be mounted
at location specified by $AZ_BATCHAI_JOB_MOUNT_ROOT environment variable.
and will be unmounted after the job completion. The volumes will be
mounted at location specified by $AZ_BATCHAI_JOB_MOUNT_ROOT environment
variable.
:type mount_volumes: ~azure.mgmt.batchai.models.MountVolumes
:param node_count: Required. Node count. Number of compute nodes to run
the job on. The job will be gang scheduled on that many compute nodes.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ class JobCreateParameters(Model):
:type cluster: ~azure.mgmt.batchai.models.ResourceId
:param mount_volumes: Mount volumes. Information on mount volumes to be
used by the job. These volumes will be mounted before the job execution
and will be unmouted after the job completion. The volumes will be mounted
at location specified by $AZ_BATCHAI_JOB_MOUNT_ROOT environment variable.
and will be unmounted after the job completion. The volumes will be
mounted at location specified by $AZ_BATCHAI_JOB_MOUNT_ROOT environment
variable.
:type mount_volumes: ~azure.mgmt.batchai.models.MountVolumes
:param node_count: Required. Node count. Number of compute nodes to run
the job on. The job will be gang scheduled on that many compute nodes.
Expand Down
4 changes: 2 additions & 2 deletions azure-mgmt-batchai/azure/mgmt/batchai/models/job_py3.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class Job(ProxyResource):
:type cluster: ~azure.mgmt.batchai.models.ResourceId
:param mount_volumes: Mount volumes. Collection of mount volumes available
to the job during execution. These volumes are mounted before the job
execution and unmouted after the job completion. The volumes are mounted
execution and unmounted after the job completion. The volumes are mounted
at location specified by $AZ_BATCHAI_JOB_MOUNT_ROOT environment variable.
:type mount_volumes: ~azure.mgmt.batchai.models.MountVolumes
:param node_count: Number of compute nodes to run the job on. The job will
Expand Down Expand Up @@ -120,7 +120,7 @@ class Job(ProxyResource):
up container specified on the job - it does not necessarily mean that the
job command line has started executing. terminating - The job is
terminated by the user, the terminate operation is in progress. succeeded
- The job has completed running succesfully and exited with exit code 0.
- The job has completed running successfully and exited with exit code 0.
failed - The job has finished unsuccessfully (failed with a non-zero exit
code) and has exhausted its retry limit. A job is also marked as failed if
an error occurred launching the job. Possible values include: 'queued',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class KeyVaultSecretReference(Model):
All required parameters must be populated in order to send to Azure.

:param source_vault: Required. Key Vault resource identifier. Fully
qualified resource indentifier of the Key Vault.
qualified resource identifier of the Key Vault.
:type source_vault: ~azure.mgmt.batchai.models.ResourceId
:param secret_url: Required. Secret URL. The URL referencing a secret in
the Key Vault.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class KeyVaultSecretReference(Model):
All required parameters must be populated in order to send to Azure.

:param source_vault: Required. Key Vault resource identifier. Fully
qualified resource indentifier of the Key Vault.
qualified resource identifier of the Key Vault.
:type source_vault: ~azure.mgmt.batchai.models.ResourceId
:param secret_url: Required. Secret URL. The URL referencing a secret in
the Key Vault.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class OutputDirectory(Model):
All required parameters must be populated in order to send to Azure.

:param id: Required. ID. The ID of the output directory. The job can use
AZ_BATCHAI_OUTPUT_<id> environment variale to find the directory path,
AZ_BATCHAI_OUTPUT_<id> environment variable to find the directory path,
where <id> is the value of id attribute.
:type id: str
:param path_prefix: Required. Path prefix. The prefix path where the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class OutputDirectory(Model):
All required parameters must be populated in order to send to Azure.

:param id: Required. ID. The ID of the output directory. The job can use
AZ_BATCHAI_OUTPUT_<id> environment variale to find the directory path,
AZ_BATCHAI_OUTPUT_<id> environment variable to find the directory path,
where <id> is the value of id attribute.
:type id: str
:param path_prefix: Required. Path prefix. The prefix path where the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@


class UnmanagedFileSystemReference(Model):
"""Unmananged file system mounting configuration.
"""Unmanaged file system mounting configuration.

All required parameters must be populated in order to send to Azure.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@


class UnmanagedFileSystemReference(Model):
"""Unmananged file system mounting configuration.
"""Unmanaged file system mounting configuration.

All required parameters must be populated in order to send to Azure.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ def _create_initial(

# Construct headers
header_parameters = {}
header_parameters['Accept'] = 'application/json'
header_parameters['Content-Type'] = 'application/json; charset=utf-8'
if self.config.generate_client_request_id:
header_parameters['x-ms-client-request-id'] = str(uuid.uuid1())
Expand All @@ -70,9 +71,8 @@ def _create_initial(
body_content = self._serialize.body(parameters, 'ClusterCreateParameters')

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

if response.status_code not in [200, 202]:
exp = CloudError(response)
Expand Down Expand Up @@ -198,6 +198,7 @@ def update(

# Construct headers
header_parameters = {}
header_parameters['Accept'] = 'application/json'
header_parameters['Content-Type'] = 'application/json; charset=utf-8'
if self.config.generate_client_request_id:
header_parameters['x-ms-client-request-id'] = str(uuid.uuid1())
Expand All @@ -210,9 +211,8 @@ def update(
body_content = self._serialize.body(parameters, 'ClusterUpdateParameters')

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

if response.status_code not in [200]:
exp = CloudError(response)
Expand Down Expand Up @@ -250,7 +250,6 @@ def _delete_initial(

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

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

if response.status_code not in [200, 202, 204]:
exp = CloudError(response)
Expand Down Expand Up @@ -365,7 +364,7 @@ def get(

# 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 @@ -374,8 +373,8 @@ def get(
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 Expand Up @@ -444,7 +443,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 @@ -453,9 +452,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.post(url, query_parameters)
response = self._client.send(
request, header_parameters, stream=False, **operation_config)
request = self._client.post(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 Expand Up @@ -529,7 +527,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 @@ -538,9 +536,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
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,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 @@ -102,9 +102,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 Expand Up @@ -143,7 +142,7 @@ def _create_initial(

# 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 @@ -152,8 +151,8 @@ def _create_initial(
header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str')

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

if response.status_code not in [200, 202]:
exp = CloudError(response)
Expand Down Expand Up @@ -247,7 +246,6 @@ def _delete_initial(

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

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

if response.status_code not in [200, 202, 204]:
exp = CloudError(response)
Expand Down Expand Up @@ -362,7 +360,7 @@ def get(

# 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 @@ -371,8 +369,8 @@ def get(
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