-
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 b90b1c367459cd32fc49a26daf13ff8f46ad79fa (#7760)
chore: jsonfmt frontdoor
- Loading branch information
1 parent
30829aa
commit c4d3dbc
Showing
30 changed files
with
2,757 additions
and
30 deletions.
There are no files selected for viewing
943 changes: 943 additions & 0 deletions
943
sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/front_door_management_client.py
Large diffs are not rendered by default.
Oops, something went wrong.
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
32 changes: 32 additions & 0 deletions
32
sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/endpoint.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,32 @@ | ||
# 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 Endpoint(Model): | ||
"""Defines the endpoint properties. | ||
:param name: The name of the endpoint | ||
:type name: str | ||
:param endpoint: The endpoint URL | ||
:type endpoint: str | ||
""" | ||
|
||
_attribute_map = { | ||
'name': {'key': 'name', 'type': 'str'}, | ||
'endpoint': {'key': 'endpoint', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(Endpoint, self).__init__(**kwargs) | ||
self.name = kwargs.get('name', None) | ||
self.endpoint = kwargs.get('endpoint', None) |
32 changes: 32 additions & 0 deletions
32
sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/endpoint_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,32 @@ | ||
# 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 Endpoint(Model): | ||
"""Defines the endpoint properties. | ||
:param name: The name of the endpoint | ||
:type name: str | ||
:param endpoint: The endpoint URL | ||
:type endpoint: str | ||
""" | ||
|
||
_attribute_map = { | ||
'name': {'key': 'name', 'type': 'str'}, | ||
'endpoint': {'key': 'endpoint', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, *, name: str=None, endpoint: str=None, **kwargs) -> None: | ||
super(Endpoint, self).__init__(**kwargs) | ||
self.name = name | ||
self.endpoint = endpoint |
82 changes: 82 additions & 0 deletions
82
sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/experiment.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,82 @@ | ||
# 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 Experiment(Resource): | ||
"""Defines the properties of an Experiment. | ||
Variables are only populated by the server, and will be ignored when | ||
sending a request. | ||
:ivar id: Resource ID. | ||
:vartype id: str | ||
:ivar name: Resource name. | ||
:vartype name: str | ||
:ivar type: Resource type. | ||
:vartype type: str | ||
:param location: Resource location. | ||
:type location: str | ||
:param tags: Resource tags. | ||
:type tags: dict[str, str] | ||
:param description: The description of the details or intents of the | ||
Experiment | ||
:type description: str | ||
:param endpoint_a: The endpoint A of an experiment | ||
:type endpoint_a: ~azure.mgmt.frontdoor.models.Endpoint | ||
:param endpoint_b: The endpoint B of an experiment | ||
:type endpoint_b: ~azure.mgmt.frontdoor.models.Endpoint | ||
:param enabled_state: The state of the Experiment. Possible values | ||
include: 'Enabled', 'Disabled' | ||
:type enabled_state: str or ~azure.mgmt.frontdoor.models.State | ||
:param resource_state: Resource status. Possible values include: | ||
'Creating', 'Enabling', 'Enabled', 'Disabling', 'Disabled', 'Deleting' | ||
:type resource_state: str or | ||
~azure.mgmt.frontdoor.models.NetworkExperimentResourceState | ||
:ivar status: The description of Experiment status from the server side | ||
:vartype status: str | ||
:ivar script_file_uri: The uri to the Script used in the Experiment | ||
:vartype script_file_uri: str | ||
""" | ||
|
||
_validation = { | ||
'id': {'readonly': True}, | ||
'name': {'readonly': True}, | ||
'type': {'readonly': True}, | ||
'status': {'readonly': True}, | ||
'script_file_uri': {'readonly': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'id': {'key': 'id', 'type': 'str'}, | ||
'name': {'key': 'name', 'type': 'str'}, | ||
'type': {'key': 'type', 'type': 'str'}, | ||
'location': {'key': 'location', 'type': 'str'}, | ||
'tags': {'key': 'tags', 'type': '{str}'}, | ||
'description': {'key': 'properties.description', 'type': 'str'}, | ||
'endpoint_a': {'key': 'properties.endpointA', 'type': 'Endpoint'}, | ||
'endpoint_b': {'key': 'properties.endpointB', 'type': 'Endpoint'}, | ||
'enabled_state': {'key': 'properties.enabledState', 'type': 'str'}, | ||
'resource_state': {'key': 'properties.resourceState', 'type': 'str'}, | ||
'status': {'key': 'properties.status', 'type': 'str'}, | ||
'script_file_uri': {'key': 'properties.scriptFileUri', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(Experiment, self).__init__(**kwargs) | ||
self.description = kwargs.get('description', None) | ||
self.endpoint_a = kwargs.get('endpoint_a', None) | ||
self.endpoint_b = kwargs.get('endpoint_b', None) | ||
self.enabled_state = kwargs.get('enabled_state', None) | ||
self.resource_state = kwargs.get('resource_state', None) | ||
self.status = None | ||
self.script_file_uri = None |
27 changes: 27 additions & 0 deletions
27
sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/experiment_paged.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,27 @@ | ||
# 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.paging import Paged | ||
|
||
|
||
class ExperimentPaged(Paged): | ||
""" | ||
A paging container for iterating over a list of :class:`Experiment <azure.mgmt.frontdoor.models.Experiment>` object | ||
""" | ||
|
||
_attribute_map = { | ||
'next_link': {'key': 'nextLink', 'type': 'str'}, | ||
'current_page': {'key': 'value', 'type': '[Experiment]'} | ||
} | ||
|
||
def __init__(self, *args, **kwargs): | ||
|
||
super(ExperimentPaged, self).__init__(*args, **kwargs) |
Oops, something went wrong.