Skip to content

Commit

Permalink
Generated from 252aae51d01c13bd9f5f3215a5770e7a2c9e6213
Browse files Browse the repository at this point in the history
Update readme for onboard autorest.schema to sdkautomation
  • Loading branch information
SDK Automation committed Aug 13, 2020
1 parent 44ed22a commit 58b4382
Show file tree
Hide file tree
Showing 49 changed files with 7,509 additions and 4,120 deletions.
16 changes: 8 additions & 8 deletions src/databox/HISTORY.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
.. :changelog:
Release History
===============

0.1.0
++++++
* Initial release.
.. :changelog:
Release History
===============

0.1.0
++++++
* Initial release.
88 changes: 5 additions & 83 deletions src/databox/README.md
Original file line number Diff line number Diff line change
@@ -1,83 +1,5 @@
# Azure CLI DataBox Extension #
This is a extension for DataBox features.

### How to use ###
Install this extension using the below CLI command
```
az extension add --name databox
```

### Included Features
#### Manage DataBox jobs:


##### Create a DataBox job.

```
az databox job create \
--resource-group rg \
--name job_name \
--location westus \
--sku DataBox \
--contact-name contact_name \
--phone phone \
--email-list email_list \
--street-address1 street_address1 \
--city Redmond \
--state-or-province state_or_province \
--country US \
--postal-code postal_code \
--company-name company_name \
--storage-account storage_account_1 storage_account_2 \
--staging-storage-account staging_storage_account \
--resource-group-for-managed-disk rg-for-managed-disk
```

##### Update a DataBox job.
```
az databox job update \
--resource-group rg \
--name job_name \
--contact-name contact_name \
--email-list email_list
```

##### Get the information for a given job.
```
az databox job show \
--resource-group rg \
--name job_name
```

##### List all the jobs under the given resource group or the given subscription
```
az databox job list
```
```
az databox job list \
--resource-group rg
```

##### List the credentials for a given job.
```
az databox job list-credentials \
--resource-group rg \
--name job_name
```

##### Cancel a job.
```
az databox job cancel \
--resource-group rg \
--name job_name \
--reason reason
```

##### Delete a job.
```
az databox job delete \
--resource-group rg \
--name job_name
```

If you have issues, please give feedback by opening an issue at https://github.com/Azure/azure-cli-extensions/issues.
Microsoft Azure CLI 'databox' Extension
==========================================

This package is for the 'databox' extension.
i.e. 'az databox'
78 changes: 46 additions & 32 deletions src/databox/azext_databox/__init__.py
Original file line number Diff line number Diff line change
@@ -1,32 +1,46 @@
# --------------------------------------------------------------------------------------------
# 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.core import AzCommandsLoader

import azext_databox._help # pylint: disable=unused-import


class DataBoxCommandsLoader(AzCommandsLoader):

def __init__(self, cli_ctx=None):
from azure.cli.core.commands import CliCommandType
from azext_databox._client_factory import cf_databox
databox_custom = CliCommandType(
operations_tmpl='azext_databox.custom#{}',
client_factory=cf_databox)
super(DataBoxCommandsLoader, self).__init__(cli_ctx=cli_ctx,
custom_command_type=databox_custom)

def load_command_table(self, args):
from azext_databox.commands import load_command_table
load_command_table(self, args)
return self.command_table

def load_arguments(self, command):
from azext_databox._params import load_arguments
load_arguments(self, command)


COMMAND_LOADER_CLS = DataBoxCommandsLoader
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from azure.cli.core import AzCommandsLoader
from azext_databox.generated._help import helps # pylint: disable=unused-import


class DataBoxManagementClientCommandsLoader(AzCommandsLoader):

def __init__(self, cli_ctx=None):
from azure.cli.core.commands import CliCommandType
from azext_databox.generated._client_factory import cf_databox
databox_custom = CliCommandType(
operations_tmpl='azext_databox.custom#{}',
client_factory=cf_databox)
parent = super(DataBoxManagementClientCommandsLoader, self)
parent.__init__(cli_ctx=cli_ctx, custom_command_type=databox_custom)

def load_command_table(self, args):
from azext_databox.generated.commands import load_command_table
load_command_table(self, args)
try:
from azext_databox.manual.commands import load_command_table as load_command_table_manual
load_command_table_manual(self, args)
except ImportError:
pass
return self.command_table

def load_arguments(self, command):
from azext_databox.generated._params import load_arguments
load_arguments(self, command)
try:
from azext_databox.manual._params import load_arguments as load_arguments_manual
load_arguments_manual(self, command)
except ImportError:
pass


COMMAND_LOADER_CLS = DataBoxManagementClientCommandsLoader
101 changes: 0 additions & 101 deletions src/databox/azext_databox/_help.py

This file was deleted.

75 changes: 0 additions & 75 deletions src/databox/azext_databox/_params.py

This file was deleted.

Loading

0 comments on commit 58b4382

Please sign in to comment.