forked from Azure/azure-cli-extensions
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generated from 252aae51d01c13bd9f5f3215a5770e7a2c9e6213
Update readme for onboard autorest.schema to sdkautomation
- Loading branch information
SDK Automation
committed
Aug 13, 2020
1 parent
44ed22a
commit 58b4382
Showing
49 changed files
with
7,509 additions
and
4,120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.