Skip to content
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
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
is_preview=True,
)
class __CMDGroup(AAZCommandGroup):
"""Data transfer commands
"""Commands for cross domain Service that enables customers to transfer data across security domains.
"""
pass

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,12 @@ class Create(AAZCommand):
"""Create the connection resource.

:example: Creates a receive side connection
az data-transfer connection create --resource-group testRG --connection-name testConnection --flow-types Mission API --location East US --justification justification --pipeline testdc --requirement-id id --direction Receive --remote-subscription-id 00000000-0000-0000-0000-000000000000
az data-transfer connection create --resource-group testRG --connection-name testConnection --flow-types Mission API --location eastus --justification justification --pipeline testdc --requirement-id id --direction Receive --remote-subscription-id 00000000-0000-0000-0000-000000000000
az data-transfer connection create --resource-group testRG --connection-name testConnection --flow-types ["Mission", "API"] --location eastus --justification justification --pipeline testdc --requirement-id id --direction Receive --remote-subscription-id 00000000-0000-0000-0000-000000000000

:example: Creates a send side connection
az data-transfer connection create --resource-group testRG --connection-name testConnection --location East US --pipeline testdc --pin 1234
az data-transfer connection create --resource-group testRG --connection-name testConnection --location eastus --pipeline testdc --pin '$-pe3' --flow-types Api Mission --direction Send
az data-transfer connection create --resource-group testRG --connection-name testConnection --location 'East US' --pipeline testdc --pin 12345 --flow-types Api Mission --direction Send
"""

_aaz_info = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,11 @@
class Delete(AAZCommand):
"""Delete the connection resource.

Deletes the connection specified by ids or by name and resource group

:example: Deletes the connection resource
az data-transfer connection delete --resource-group testRG --connection-name testConnection
az data-transfer connection delete --ids /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRG/providers/Microsoft.AzureDataTransfer/connections/testConnection /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRG/providers/Microsoft.AzureDataTransfer/connections/testConnection2
"""

_aaz_info = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ class Link(AAZCommand):

:example: Links the specified connection
az data-transfer connection link --resource-group testRG --connection-name receiveConnection --pending-connection-id /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRG/providers/Microsoft.AzureDataTransfer/connections/sendConnection
az data-transfer connection link --ids /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRG/providers/Microsoft.AzureDataTransfer/connections/recieveConnection --pending-connection-id /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRG/providers/Microsoft.AzureDataTransfer/connections/sendConnection
"""

_aaz_info = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
is_preview=True,
)
class List(AAZCommand):
"""List connections in a resource group.
"""List all the connections.

:example: Gets connections in a resource group
az data-transfer connection list --resource-group testRG
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,11 @@
class Show(AAZCommand):
"""Get connection resource.

Get connection with specified ids or name.

:example: Gets connection resource
az data-transfer connection show --resource-group testRG --connection-name testConnection
az data-transfer connection show --ids /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRG/providers/Microsoft.AzureDataTransfer/connections/testConnection
"""

_aaz_info = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
is_preview=True,
)
class Create(AAZCommand):
"""Create the flow resource.
"""Create data flow for the approved connection

:example: Creates the flow resource
az data-transfer connection flow create --resource-group testRG --connection-name testConnection --flow-name testFlow --location East US --connection --flow-type Complex --storage-account /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rpaas-rg/providers/Private.AzureDataTransfer/storageAccounts/testsa --storage-container-name testcontainer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,13 @@
confirmation="Are you sure you want to perform this operation?",
)
class Delete(AAZCommand):
"""Delete the flow resource.
"""Delete data flow for the approved connection

Deletes the flow specified by ids or by name along with its associated connection name and resouce group.

:example: Deletes the flow resource
az data-transfer connection flow delete --resource-group testRG --connection-name testConnection --flow-name testFlow
az data-transfer connection flow delete --ids /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRG/providers/Microsoft.AzureDataTransfer/connections/testConnection/flows/testFlow
"""

_aaz_info = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@
is_preview=True,
)
class Disable(AAZCommand):
"""Disables the specified flow
"""Disables the specified flow in the connection

:example: Disables the specified flow
az data-transfer connection flow disable --resource-group testRG --connection-name testConnection --flow-name testFlow
az data-transfer connection flow disable --ids /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRG/providers/Microsoft.AzureDataTransfer/connections/testConnection/flows/testFlow
"""

_aaz_info = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@
is_preview=True,
)
class Enable(AAZCommand):
"""Enables the specified flow.
"""Enables the specified flow in the connection

:example: Enables the specified flow
az data-transfer connection flow enable --resource-group testRG --connection-name testConnection --flow-name testFlow
az data-transfer connection flow enable --ids /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRG/providers/Microsoft.AzureDataTransfer/connections/testConnection/flows/testFlow
"""

_aaz_info = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@
is_preview=True,
)
class Link(AAZCommand):
"""Links the specified flow.
"""Links the specified flow in the connection

:example: Links the specified flow
az data-transfer connection flow link --resource-group testRG --connection-name testConnection --flow-name testFlow --id /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRG/providers/Microsoft.AzureDataTransfer/connections/testConnection/flows/testFlow
az data-transfer connection flow link --resource-group testRG --connection-name receiveConnection --flow-name receiveFlow --id /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRG/providers/Microsoft.AzureDataTransfer/connections/sendConnection/flows/sendFlow
az data-transfer connection flow link --ids /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRG/providers/Microsoft.AzureDataTransfer/receiveConnection/testConnection/flows/receiveFlow --pending-flow-id /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRG/providers/Microsoft.AzureDataTransfer/connections/sendConnection/flows/sendFlow
"""

_aaz_info = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
is_preview=True,
)
class List(AAZCommand):
"""List flows in a connection.
"""List all the flows in a connection.

:example: Gets flows in a connection
az data-transfer connection flow list --resource-group testRG --connection-name testConnection
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,13 @@
is_preview=True,
)
class Show(AAZCommand):
"""Get flow resource.
"""Show a specific flow in the connection.

Show specific flow with given ids or name.

:example: Gets flow resource
az data-transfer connection flow show --resource-group testRG --connection-name testConnection --flow-name testFlow
az data-transfer connection flow show --ids /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRG/providers/Microsoft.AzureDataTransfer/connections/testConnection/flows/testFlow
"""

_aaz_info = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
is_preview=True,
)
class List(AAZCommand):
"""List Pipeline resource by Subscription or Resource Group
"""List all the pipelines

:example: Gets pipelines in a subscription
az data-transfer pipeline list
Expand Down
2 changes: 1 addition & 1 deletion src/data-transfer/azext_data_transfer/azext_metadata.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"azext.isPreview": true,
"azext.minCliCoreVersion": "2.70.0"
"azext.minCliCoreVersion": "2.0.24"
}
2 changes: 1 addition & 1 deletion src/data-transfer/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


# HISTORY.rst entry.
VERSION = '1.0.0b1'
VERSION = '1.0.0b2'

# The full list of classifiers is available at
# https://pypi.python.org/pypi?%3Aaction=list_classifiers
Expand Down
2 changes: 1 addition & 1 deletion src/service_name.json
Original file line number Diff line number Diff line change
Expand Up @@ -941,7 +941,7 @@
},
{
"Command": "az data-transfer",
"AzureServiceName": "Azure Data Transfer",
"AzureServiceName": "Azure Data Transfer (ADT)",
"URL": ""
},
{
Expand Down
Loading