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
19 changes: 0 additions & 19 deletions azure-mgmt-edgegateway/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
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
from .operations.devices_operations import DevicesOperations
from .operations.alerts_operations import AlertsOperations
from .operations.bandwidth_schedules_operations import BandwidthSchedulesOperations
from .operations.jobs_operations import JobsOperations
from .operations.operations_status_operations import OperationsStatusOperations
from .operations.orders_operations import OrdersOperations
from .operations.roles_operations import RolesOperations
Expand Down Expand Up @@ -73,6 +74,8 @@ class DataBoxEdgeManagementClient(SDKClient):
:vartype alerts: azure.mgmt.edgegateway.operations.AlertsOperations
:ivar bandwidth_schedules: BandwidthSchedules operations
:vartype bandwidth_schedules: azure.mgmt.edgegateway.operations.BandwidthSchedulesOperations
:ivar jobs: Jobs operations
:vartype jobs: azure.mgmt.edgegateway.operations.JobsOperations
:ivar operations_status: OperationsStatus operations
:vartype operations_status: azure.mgmt.edgegateway.operations.OperationsStatusOperations
:ivar orders: Orders operations
Expand Down Expand Up @@ -103,7 +106,7 @@ def __init__(
super(DataBoxEdgeManagementClient, self).__init__(self.config.credentials, self.config)

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self.api_version = '2018-07-01'
self.api_version = '2019-03-01'
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)

Expand All @@ -115,6 +118,8 @@ def __init__(
self._client, self.config, self._serialize, self._deserialize)
self.bandwidth_schedules = BandwidthSchedulesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.jobs = JobsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.operations_status = OperationsStatusOperations(
self._client, self.config, self._serialize, self._deserialize)
self.orders = OrdersOperations(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@
NetworkAdapterStatus,
NetworkAdapterRDMAStatus,
NetworkAdapterDHCPStatus,
StatusTypes,
OrderState,
AuthenticationType,
ShareStatus,
MonitoringStatus,
Expand Down Expand Up @@ -253,7 +253,7 @@
'NetworkAdapterStatus',
'NetworkAdapterRDMAStatus',
'NetworkAdapterDHCPStatus',
'StatusTypes',
'OrderState',
'AuthenticationType',
'ShareStatus',
'MonitoringStatus',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ class Address(Model):

:param address_line1: Required. The address line1.
:type address_line1: str
:param address_line2: Required. The address line2.
:param address_line2: The address line2.
:type address_line2: str
:param address_line3: Required. The address line3.
:param address_line3: The address line3.
:type address_line3: str
:param postal_code: Required. The postal code.
:type postal_code: str
Expand All @@ -35,8 +35,6 @@ class Address(Model):

_validation = {
'address_line1': {'required': True},
'address_line2': {'required': True},
'address_line3': {'required': True},
'postal_code': {'required': True},
'city': {'required': True},
'state': {'required': True},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ class Address(Model):

:param address_line1: Required. The address line1.
:type address_line1: str
:param address_line2: Required. The address line2.
:param address_line2: The address line2.
:type address_line2: str
:param address_line3: Required. The address line3.
:param address_line3: The address line3.
:type address_line3: str
:param postal_code: Required. The postal code.
:type postal_code: str
Expand All @@ -35,8 +35,6 @@ class Address(Model):

_validation = {
'address_line1': {'required': True},
'address_line2': {'required': True},
'address_line3': {'required': True},
'postal_code': {'required': True},
'city': {'required': True},
'state': {'required': True},
Expand All @@ -53,7 +51,7 @@ class Address(Model):
'country': {'key': 'country', 'type': 'str'},
}

def __init__(self, *, address_line1: str, address_line2: str, address_line3: str, postal_code: str, city: str, state: str, country: str, **kwargs) -> None:
def __init__(self, *, address_line1: str, postal_code: str, city: str, state: str, country: str, address_line2: str=None, address_line3: str=None, **kwargs) -> None:
super(Address, self).__init__(**kwargs)
self.address_line1 = address_line1
self.address_line2 = address_line2
Expand Down
12 changes: 6 additions & 6 deletions azure-mgmt-edgegateway/azure/mgmt/edgegateway/models/alert.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,24 +20,24 @@ class Alert(ARMBaseModel):

:ivar id: The path ID that uniquely identifies the object.
:vartype id: str
:ivar name: The name of the object.
:ivar name: The object name.
:vartype name: str
:ivar type: The hierarchical type of the object.
:vartype type: str
:ivar title: Title of the alert.
:ivar title: Alert title.
:vartype title: str
:ivar alert_type: Type of the alert.
:ivar alert_type: Alert type.
:vartype alert_type: str
:ivar appeared_at_date_time: UTC time at which the alert appeared.
:ivar appeared_at_date_time: UTC time when the alert appeared.
:vartype appeared_at_date_time: datetime
:ivar recommendation: Recommendation for acting on the alert.
:ivar recommendation: Alert recommendation.
:vartype recommendation: str
:ivar severity: Severity of the alert. Possible values include:
'Informational', 'Warning', 'Critical'
:vartype severity: str or ~azure.mgmt.edgegateway.models.AlertSeverity
:ivar error_details: Error details of the alert.
:vartype error_details: ~azure.mgmt.edgegateway.models.AlertErrorDetails
:ivar detailed_information: Detailed information about the alert.
:ivar detailed_information: Alert details.
:vartype detailed_information: dict[str, str]
"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,24 +20,24 @@ class Alert(ARMBaseModel):

:ivar id: The path ID that uniquely identifies the object.
:vartype id: str
:ivar name: The name of the object.
:ivar name: The object name.
:vartype name: str
:ivar type: The hierarchical type of the object.
:vartype type: str
:ivar title: Title of the alert.
:ivar title: Alert title.
:vartype title: str
:ivar alert_type: Type of the alert.
:ivar alert_type: Alert type.
:vartype alert_type: str
:ivar appeared_at_date_time: UTC time at which the alert appeared.
:ivar appeared_at_date_time: UTC time when the alert appeared.
:vartype appeared_at_date_time: datetime
:ivar recommendation: Recommendation for acting on the alert.
:ivar recommendation: Alert recommendation.
:vartype recommendation: str
:ivar severity: Severity of the alert. Possible values include:
'Informational', 'Warning', 'Critical'
:vartype severity: str or ~azure.mgmt.edgegateway.models.AlertSeverity
:ivar error_details: Error details of the alert.
:vartype error_details: ~azure.mgmt.edgegateway.models.AlertErrorDetails
:ivar detailed_information: Detailed information about the alert.
:ivar detailed_information: Alert details.
:vartype detailed_information: dict[str, str]
"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class ARMBaseModel(Model):

:ivar id: The path ID that uniquely identifies the object.
:vartype id: str
:ivar name: The name of the object.
:ivar name: The object name.
:vartype name: str
:ivar type: The hierarchical type of the object.
:vartype type: str
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class ARMBaseModel(Model):

:ivar id: The path ID that uniquely identifies the object.
:vartype id: str
:ivar name: The name of the object.
:ivar name: The object name.
:vartype name: str
:ivar type: The hierarchical type of the object.
:vartype type: str
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ class AsymmetricEncryptedSecret(Model):

:param value: Required. The value of the secret.
:type value: str
:param encryption_cert_thumbprint: Thumbprint certificate that was used to
encrypt "Value". If the value in unencrypted, it will be null.
:param encryption_cert_thumbprint: Thumbprint certificate used to encrypt
\\"Value\\". If the value is unencrypted, it will be null.
:type encryption_cert_thumbprint: str
:param encryption_algorithm: Required. The algorithm used to encrypt
"Value". Possible values include: 'None', 'AES256', 'RSAES_PKCS1_v_1_5'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ class AsymmetricEncryptedSecret(Model):

:param value: Required. The value of the secret.
:type value: str
:param encryption_cert_thumbprint: Thumbprint certificate that was used to
encrypt "Value". If the value in unencrypted, it will be null.
:param encryption_cert_thumbprint: Thumbprint certificate used to encrypt
\\"Value\\". If the value is unencrypted, it will be null.
:type encryption_cert_thumbprint: str
:param encryption_algorithm: Required. The algorithm used to encrypt
"Value". Possible values include: 'None', 'AES256', 'RSAES_PKCS1_v_1_5'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ class AzureContainerInfo(Model):

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

:param storage_account_credential_id: Required. ID of the Storage account
credential to be used for accessing storage.
:param storage_account_credential_id: Required. ID of the storage account
credential used to access storage.
:type storage_account_credential_id: str
:param container_name: Required. Container name (Based on the data format
specified, represents the name of Azure file/ Page blob / Block blob).
specified, this represents the name of Azure Files/Page blob/Block blob).
:type container_name: str
:param data_format: Required. Storage format used for the file represented
by the share. Possible values include: 'BlockBlob', 'PageBlob',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ class AzureContainerInfo(Model):

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

:param storage_account_credential_id: Required. ID of the Storage account
credential to be used for accessing storage.
:param storage_account_credential_id: Required. ID of the storage account
credential used to access storage.
:type storage_account_credential_id: str
:param container_name: Required. Container name (Based on the data format
specified, represents the name of Azure file/ Page blob / Block blob).
specified, this represents the name of Azure Files/Page blob/Block blob).
:type container_name: str
:param data_format: Required. Storage format used for the file represented
by the share. Possible values include: 'BlockBlob', 'PageBlob',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class BandwidthSchedule(ARMBaseModel):

:ivar id: The path ID that uniquely identifies the object.
:vartype id: str
:ivar name: The name of the object.
:ivar name: The object name.
:vartype name: str
:ivar type: The hierarchical type of the object.
:vartype type: str
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class BandwidthSchedule(ARMBaseModel):

:ivar id: The path ID that uniquely identifies the object.
:vartype id: str
:ivar name: The name of the object.
:ivar name: The object name.
:vartype name: str
:ivar type: The hierarchical type of the object.
:vartype type: str
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@


class ClientAccessRight(Model):
"""The mapping between a particular client ip and the type of access client
"""The mapping between a particular client IP and the type of access client
has on the NFS share.

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

:param client: Required. Ip of the client.
:param client: Required. IP of the client.
:type client: str
:param access_permission: Required. Type of access to be allowed for the
client. Possible values include: 'NoAccess', 'ReadOnly', 'ReadWrite'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@


class ClientAccessRight(Model):
"""The mapping between a particular client ip and the type of access client
"""The mapping between a particular client IP and the type of access client
has on the NFS share.

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

:param client: Required. Ip of the client.
:param client: Required. IP of the client.
:type client: str
:param access_permission: Required. Type of access to be allowed for the
client. Possible values include: 'NoAccess', 'ReadOnly', 'ReadWrite'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ class ContactDetails(Model):

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

:param contact_person: Required. Gets or sets the contact person.
:param contact_person: Required. The contact person name.
:type contact_person: str
:param company_name: Required. Gets or sets the name of the company.
:param company_name: Required. The name of the company.
:type company_name: str
:param phone: Required. Gets or sets the phone number.
:param phone: Required. The phone number.
:type phone: str
:param email_list: Required. Gets or sets the email list.
:param email_list: Required. The email list.
:type email_list: list[str]
"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ class ContactDetails(Model):

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

:param contact_person: Required. Gets or sets the contact person.
:param contact_person: Required. The contact person name.
:type contact_person: str
:param company_name: Required. Gets or sets the name of the company.
:param company_name: Required. The name of the company.
:type company_name: str
:param phone: Required. Gets or sets the phone number.
:param phone: Required. The phone number.
:type phone: str
:param email_list: Required. Gets or sets the email list.
:param email_list: Required. The email list.
:type email_list: list[str]
"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,22 +22,22 @@ class DataBoxEdgeDevice(ARMBaseModel):

:ivar id: The path ID that uniquely identifies the object.
:vartype id: str
:ivar name: The name of the object.
:ivar name: The object name.
:vartype name: str
:ivar type: The hierarchical type of the object.
:vartype type: str
:param location: Required. The location of the device. This will be one of
the supported and registered Azure Geo Regions (e.g. West US, East US,
Southeast Asia, etc.). The geo region of a device cannot be changed once
it is created, but if an identical geo region is specified on update the
request will succeed.
:param location: Required. The location of the device. This is a supported
and registered Azure geographical region (for example, West US, East US,
or Southeast Asia). The geographical region of a device cannot be changed
once it is created, but if an identical geographical region is specified
on update, the request will succeed.
:type location: str
:param tags: The list of tags that describe the device. These tags can be
used in viewing and grouping this device (across resource groups).
used to view and group this device (across resource groups).
:type tags: dict[str, str]
:param sku: The sku type.
:param sku: The SKU type.
:type sku: ~azure.mgmt.edgegateway.models.Sku
:param etag: The etag of the devices.
:param etag: The etag for the devices.
:type etag: str
:param data_box_edge_device_status: The status of the Data Box
Edge/Gateway device. Possible values include: 'ReadyToSetup', 'Online',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class DataBoxEdgeDeviceExtendedInfo(ARMBaseModel):

:ivar id: The path ID that uniquely identifies the object.
:vartype id: str
:ivar name: The name of the object.
:ivar name: The object name.
:vartype name: str
:ivar type: The hierarchical type of the object.
:vartype type: str
Expand All @@ -34,7 +34,7 @@ class DataBoxEdgeDeviceExtendedInfo(ARMBaseModel):
:type encryption_key_thumbprint: str
:param encryption_key: The Channel Integrity Key (CIK) of the device.
:type encryption_key: str
:ivar resource_key: The Resource Id of the Resource.
:ivar resource_key: The Resource ID of the Resource.
:vartype resource_key: str
"""

Expand Down
Loading