Skip to content

Commit

Permalink
[AutoPR] recoveryservices/resource-manager (#3975)
Browse files Browse the repository at this point in the history
* [AutoPR recoveryservices/resource-manager] typo: recoveryservices/resource-manager/Microsoft.RecoveryServices (#3966)

* Generated from 86c08209956d8a147acab6460c56f44e3ce75f6c

typo: recoveryservices/resource-manager/Microsoft.RecoveryServices

- polymorhpic -> polymorphic
- friendlyname -> friendly name
- operationss -> operations
- upgradation -> upgrade

* Packaging update of azure-mgmt-recoveryservices

* [AutoPR recoveryservices/resource-manager] Added Swagger details for CheckNameAvailability API (#4706)

* Generated from 1c52533609d5a8a806f616702ab45f6b8c514b68

Changed operationId for checkNameAvailability from CheckResourceNameAvailability_Post to RecoveryServices_CheckNameAvailability

* Packaging update of azure-mgmt-recoveryservices

* Generated from 2edb73566dac3446f8b8a54399b9f14650c32e36

Renaming ResourceNameAvailabilityResponse to ResourceNameAvailabilityResult

* Generated from f97eae58835c2bcc143d6c854a183830f257dda0

Renaming ResourceNameAvailabilityResult to CheckNameAvailabilityResult and changing GCed to GC'ed in swagger API summary

* Generated from cc6ecf84a7e767b9299aa77868b43817d17bde4c

Renaming ResourceNameAvailabilityParameters to CheckNameAvailabilityParameters

* Rebuild by #3975

* Packaging update of azure-mgmt-recoveryservices

* updated change log and versioning

* Update HISTORY.rst
  • Loading branch information
AutorestCI authored and lmazuel committed Apr 5, 2019
1 parent 010077b commit 7e2b995
Show file tree
Hide file tree
Showing 30 changed files with 442 additions and 76 deletions.
9 changes: 8 additions & 1 deletion azure-mgmt-recoveryservices/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
Release History
===============

0.4.0 (2019-04-05)
++++++++++++++++++

**Features**

- Added operation recovery_services.check_name_availability

0.3.0 (2018-05-25)
++++++++++++++++++

Expand Down Expand Up @@ -33,7 +40,7 @@ This version uses a next-generation code generator that *might* introduce breaki

- Return type changes from `msrestazure.azure_operation.AzureOperationPoller` to `msrest.polling.LROPoller`. External API is the same.
- Return type is now **always** a `msrest.polling.LROPoller`, regardless of the optional parameters used.
- The behavior has changed when using `raw=True`. Instead of returning the initial call result as `ClientRawResponse`,
- The behavior has changed when using `raw=True`. Instead of returning the initial call result as `ClientRawResponse`,
without polling, now this returns an LROPoller. After polling, the final resource will be returned as a `ClientRawResponse`.
- New `polling` parameter. The default behavior is `Polling=True` which will poll using ARM algorithm. When `Polling=False`,
the response of the initial call will be returned without polling.
Expand Down
4 changes: 4 additions & 0 deletions azure-mgmt-recoveryservices/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
recursive-include tests *.py *.yaml
include *.rst
include azure/__init__.py
include azure/mgmt/__init__.py

19 changes: 0 additions & 19 deletions azure-mgmt-recoveryservices/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 @@ -19,6 +19,9 @@
from .jobs_summary_py3 import JobsSummary
from .monitoring_summary_py3 import MonitoringSummary
from .replication_usage_py3 import ReplicationUsage
from .check_name_availability_parameters_py3 import CheckNameAvailabilityParameters
from .check_name_availability_result_py3 import CheckNameAvailabilityResult
from .check_name_availability_result_resource_py3 import CheckNameAvailabilityResultResource
from .client_discovery_display_py3 import ClientDiscoveryDisplay
from .client_discovery_for_log_specification_py3 import ClientDiscoveryForLogSpecification
from .client_discovery_for_service_specification_py3 import ClientDiscoveryForServiceSpecification
Expand All @@ -45,6 +48,9 @@
from .jobs_summary import JobsSummary
from .monitoring_summary import MonitoringSummary
from .replication_usage import ReplicationUsage
from .check_name_availability_parameters import CheckNameAvailabilityParameters
from .check_name_availability_result import CheckNameAvailabilityResult
from .check_name_availability_result_resource import CheckNameAvailabilityResultResource
from .client_discovery_display import ClientDiscoveryDisplay
from .client_discovery_for_log_specification import ClientDiscoveryForLogSpecification
from .client_discovery_for_service_specification import ClientDiscoveryForServiceSpecification
Expand Down Expand Up @@ -83,6 +89,9 @@
'JobsSummary',
'MonitoringSummary',
'ReplicationUsage',
'CheckNameAvailabilityParameters',
'CheckNameAvailabilityResult',
'CheckNameAvailabilityResultResource',
'ClientDiscoveryDisplay',
'ClientDiscoveryForLogSpecification',
'ClientDiscoveryForServiceSpecification',
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# coding=utf-8
# --------------------------------------------------------------------------
# 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 msrest.serialization import Model


class CheckNameAvailabilityParameters(Model):
"""Resource Name availability input parameters - Resource type and resource
name.
:param type: Describes the Resource type:
Microsoft.RecoveryServices/Vaults
:type type: str
:param name: Resource name for which availability needs to be checked
:type name: str
"""

_attribute_map = {
'type': {'key': 'type', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
}

def __init__(self, **kwargs):
super(CheckNameAvailabilityParameters, self).__init__(**kwargs)
self.type = kwargs.get('type', None)
self.name = kwargs.get('name', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# coding=utf-8
# --------------------------------------------------------------------------
# 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 msrest.serialization import Model


class CheckNameAvailabilityParameters(Model):
"""Resource Name availability input parameters - Resource type and resource
name.
:param type: Describes the Resource type:
Microsoft.RecoveryServices/Vaults
:type type: str
:param name: Resource name for which availability needs to be checked
:type name: str
"""

_attribute_map = {
'type': {'key': 'type', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
}

def __init__(self, *, type: str=None, name: str=None, **kwargs) -> None:
super(CheckNameAvailabilityParameters, self).__init__(**kwargs)
self.type = type
self.name = name
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# coding=utf-8
# --------------------------------------------------------------------------
# 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 msrest.serialization import Model


class CheckNameAvailabilityResult(Model):
"""Response for check name availability API. Resource provider will set
availability as true | false.
:param name_available:
:type name_available: bool
:param reason:
:type reason: str
:param message:
:type message: str
"""

_attribute_map = {
'name_available': {'key': 'nameAvailable', 'type': 'bool'},
'reason': {'key': 'reason', 'type': 'str'},
'message': {'key': 'message', 'type': 'str'},
}

def __init__(self, **kwargs):
super(CheckNameAvailabilityResult, self).__init__(**kwargs)
self.name_available = kwargs.get('name_available', None)
self.reason = kwargs.get('reason', None)
self.message = kwargs.get('message', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# coding=utf-8
# --------------------------------------------------------------------------
# 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 msrest.serialization import Model


class CheckNameAvailabilityResult(Model):
"""Response for check name availability API. Resource provider will set
availability as true | false.
:param name_available:
:type name_available: bool
:param reason:
:type reason: str
:param message:
:type message: str
"""

_attribute_map = {
'name_available': {'key': 'nameAvailable', 'type': 'bool'},
'reason': {'key': 'reason', 'type': 'str'},
'message': {'key': 'message', 'type': 'str'},
}

def __init__(self, *, name_available: bool=None, reason: str=None, message: str=None, **kwargs) -> None:
super(CheckNameAvailabilityResult, self).__init__(**kwargs)
self.name_available = name_available
self.reason = reason
self.message = message
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# coding=utf-8
# --------------------------------------------------------------------------
# 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 .resource import Resource


class CheckNameAvailabilityResultResource(Resource):
"""Response for check name availability API. Resource provider will set
availability as true | false.
Variables are only populated by the server, and will be ignored when
sending a request.
:ivar id: Resource Id represents the complete path to the resource.
:vartype id: str
:ivar name: Resource name associated with the resource.
:vartype name: str
:ivar type: Resource type represents the complete path of the form
Namespace/ResourceType/ResourceType/...
:vartype type: str
:param e_tag: Optional ETag.
:type e_tag: str
:param properties: CheckNameAvailabilityResultResource properties
:type properties:
~azure.mgmt.recoveryservices.models.CheckNameAvailabilityResult
"""

_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
}

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'e_tag': {'key': 'eTag', 'type': 'str'},
'properties': {'key': 'properties', 'type': 'CheckNameAvailabilityResult'},
}

def __init__(self, **kwargs):
super(CheckNameAvailabilityResultResource, self).__init__(**kwargs)
self.properties = kwargs.get('properties', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# coding=utf-8
# --------------------------------------------------------------------------
# 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 .resource_py3 import Resource


class CheckNameAvailabilityResultResource(Resource):
"""Response for check name availability API. Resource provider will set
availability as true | false.
Variables are only populated by the server, and will be ignored when
sending a request.
:ivar id: Resource Id represents the complete path to the resource.
:vartype id: str
:ivar name: Resource name associated with the resource.
:vartype name: str
:ivar type: Resource type represents the complete path of the form
Namespace/ResourceType/ResourceType/...
:vartype type: str
:param e_tag: Optional ETag.
:type e_tag: str
:param properties: CheckNameAvailabilityResultResource properties
:type properties:
~azure.mgmt.recoveryservices.models.CheckNameAvailabilityResult
"""

_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
}

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'e_tag': {'key': 'eTag', 'type': 'str'},
'properties': {'key': 'properties', 'type': 'CheckNameAvailabilityResult'},
}

def __init__(self, *, e_tag: str=None, properties=None, **kwargs) -> None:
super(CheckNameAvailabilityResultResource, self).__init__(e_tag=e_tag, **kwargs)
self.properties = properties
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class ResourceCertificateAndAadDetails(ResourceCertificateDetails):
:param certificate: The base64 encoded certificate raw data string.
:type certificate: bytearray
:param friendly_name: Certificate friendlyname.
:param friendly_name: Certificate friendly name.
:type friendly_name: str
:param issuer: Certificate issuer.
:type issuer: str
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class ResourceCertificateAndAadDetails(ResourceCertificateDetails):
:param certificate: The base64 encoded certificate raw data string.
:type certificate: bytearray
:param friendly_name: Certificate friendlyname.
:param friendly_name: Certificate friendly name.
:type friendly_name: str
:param issuer: Certificate issuer.
:type issuer: str
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class ResourceCertificateAndAcsDetails(ResourceCertificateDetails):
:param certificate: The base64 encoded certificate raw data string.
:type certificate: bytearray
:param friendly_name: Certificate friendlyname.
:param friendly_name: Certificate friendly name.
:type friendly_name: str
:param issuer: Certificate issuer.
:type issuer: str
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class ResourceCertificateAndAcsDetails(ResourceCertificateDetails):
:param certificate: The base64 encoded certificate raw data string.
:type certificate: bytearray
:param friendly_name: Certificate friendlyname.
:param friendly_name: Certificate friendly name.
:type friendly_name: str
:param issuer: Certificate issuer.
:type issuer: str
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class ResourceCertificateDetails(Model):
:param certificate: The base64 encoded certificate raw data string.
:type certificate: bytearray
:param friendly_name: Certificate friendlyname.
:param friendly_name: Certificate friendly name.
:type friendly_name: str
:param issuer: Certificate issuer.
:type issuer: str
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class ResourceCertificateDetails(Model):
:param certificate: The base64 encoded certificate raw data string.
:type certificate: bytearray
:param friendly_name: Certificate friendlyname.
:param friendly_name: Certificate friendly name.
:type friendly_name: str
:param issuer: Certificate issuer.
:type issuer: str
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class UpgradeDetails(Model):
:ivar message: Message to the user containing information about the
upgrade operation.
:vartype message: str
:ivar trigger_type: The way the vault upgradation was triggered. Possible
:ivar trigger_type: The way the vault upgrade was triggered. Possible
values include: 'UserTriggered', 'ForcedUpgrade'
:vartype trigger_type: str or
~azure.mgmt.recoveryservices.models.TriggerType
Expand Down
Loading

0 comments on commit 7e2b995

Please sign in to comment.