-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generated from 0b1c989c20db1b55e669d6f9bb8554fc8e2e0547 (#2519)
Update package version
- Loading branch information
1 parent
420f8b5
commit 44f2316
Showing
44 changed files
with
1,630 additions
and
144 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
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
34 changes: 34 additions & 0 deletions
34
...mt-managementgroups/azure/mgmt/managementgroups/models/check_name_availability_request.py
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 |
---|---|---|
@@ -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 CheckNameAvailabilityRequest(Model): | ||
"""Management group name availability check parameters. | ||
:param name: the name to check for availability | ||
:type name: str | ||
:param type: fully qualified resource type which includes provider | ||
namespace. Possible values include: | ||
'/providers/Microsoft.Management/managementGroup' | ||
:type type: str or ~azure.mgmt.managementgroups.models.Type | ||
""" | ||
|
||
_attribute_map = { | ||
'name': {'key': 'name', 'type': 'str'}, | ||
'type': {'key': 'type', 'type': 'Type'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(CheckNameAvailabilityRequest, self).__init__(**kwargs) | ||
self.name = kwargs.get('name', None) | ||
self.type = kwargs.get('type', None) |
34 changes: 34 additions & 0 deletions
34
...anagementgroups/azure/mgmt/managementgroups/models/check_name_availability_request_py3.py
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 |
---|---|---|
@@ -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 CheckNameAvailabilityRequest(Model): | ||
"""Management group name availability check parameters. | ||
:param name: the name to check for availability | ||
:type name: str | ||
:param type: fully qualified resource type which includes provider | ||
namespace. Possible values include: | ||
'/providers/Microsoft.Management/managementGroup' | ||
:type type: str or ~azure.mgmt.managementgroups.models.Type | ||
""" | ||
|
||
_attribute_map = { | ||
'name': {'key': 'name', 'type': 'str'}, | ||
'type': {'key': 'type', 'type': 'Type'}, | ||
} | ||
|
||
def __init__(self, *, name: str=None, type=None, **kwargs) -> None: | ||
super(CheckNameAvailabilityRequest, self).__init__(**kwargs) | ||
self.name = name | ||
self.type = type |
55 changes: 55 additions & 0 deletions
55
...gmt-managementgroups/azure/mgmt/managementgroups/models/check_name_availability_result.py
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 |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# 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): | ||
"""Describes the result of the request to check management group name | ||
availability. | ||
Variables are only populated by the server, and will be ignored when | ||
sending a request. | ||
:ivar name_available: Required. True indicates name is valid and | ||
available. False indicates the name is invalid, unavailable, or both. | ||
:vartype name_available: bool | ||
:ivar reason: Required if nameAvailable == false. Invalid indicates the | ||
name provided does not match the resource provider's naming requirements | ||
(incorrect length, unsupported characters, etc.) AlreadyExists indicates | ||
that the name is already in use and is therefore unavailable. Possible | ||
values include: 'Invalid', 'AlreadyExists' | ||
:vartype reason: str or ~azure.mgmt.managementgroups.models.Reason | ||
:ivar message: Required if nameAvailable == false. Localized. If reason == | ||
invalid, provide the user with the reason why the given name is invalid, | ||
and provide the resource naming requirements so that the user can select a | ||
valid name. If reason == AlreadyExists, explain that is already in use, | ||
and direct them to select a different name. | ||
:vartype message: str | ||
""" | ||
|
||
_validation = { | ||
'name_available': {'readonly': True}, | ||
'reason': {'readonly': True}, | ||
'message': {'readonly': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'name_available': {'key': 'nameAvailable', 'type': 'bool'}, | ||
'reason': {'key': 'reason', 'type': 'Reason'}, | ||
'message': {'key': 'message', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(CheckNameAvailabilityResult, self).__init__(**kwargs) | ||
self.name_available = None | ||
self.reason = None | ||
self.message = None |
Oops, something went wrong.