forked from Azure/azure-sdk-for-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BatchAI. SDK for 2018-03-01 Rest API (Azure#2211)
* BatchAI. Generated new SDK for 2018-03-01 API spec * BatchAI. Updated unit tests * BatchAI. Updated unit tests recordings * BatchAI. Updated setup.py * Rebuild by Azure#2211 * BatchAI. Updated unit test to be compatible with new code generator * Update version.py
- Loading branch information
Showing
167 changed files
with
11,867 additions
and
5,669 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
50 changes: 50 additions & 0 deletions
50
azure-mgmt-batchai/azure/mgmt/batchai/models/app_insights_reference.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,50 @@ | ||
# 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 AppInsightsReference(Model): | ||
"""Specifies Azure Application Insights information for performance counters | ||
reporting. | ||
All required parameters must be populated in order to send to Azure. | ||
:param component: Required. Specifies the Azure Application Insights | ||
component resource id. | ||
:type component: ~azure.mgmt.batchai.models.ResourceId | ||
:param instrumentation_key: Value of the Azure Application Insights | ||
instrumentation key. | ||
:type instrumentation_key: str | ||
:param instrumentation_key_secret_reference: Specifies a KeyVault Secret | ||
containing Azure Application Insights instrumentation key. Specifies | ||
KeyVault Store and Secret which contains Azure Application Insights | ||
instrumentation key. One of instumentationKey or | ||
instrumentationKeySecretReference must be specified. | ||
:type instrumentation_key_secret_reference: | ||
~azure.mgmt.batchai.models.KeyVaultSecretReference | ||
""" | ||
|
||
_validation = { | ||
'component': {'required': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'component': {'key': 'component', 'type': 'ResourceId'}, | ||
'instrumentation_key': {'key': 'instrumentationKey', 'type': 'str'}, | ||
'instrumentation_key_secret_reference': {'key': 'instrumentationKeySecretReference', 'type': 'KeyVaultSecretReference'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(AppInsightsReference, self).__init__(**kwargs) | ||
self.component = kwargs.get('component', None) | ||
self.instrumentation_key = kwargs.get('instrumentation_key', None) | ||
self.instrumentation_key_secret_reference = kwargs.get('instrumentation_key_secret_reference', None) |
50 changes: 50 additions & 0 deletions
50
azure-mgmt-batchai/azure/mgmt/batchai/models/app_insights_reference_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,50 @@ | ||
# 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 AppInsightsReference(Model): | ||
"""Specifies Azure Application Insights information for performance counters | ||
reporting. | ||
All required parameters must be populated in order to send to Azure. | ||
:param component: Required. Specifies the Azure Application Insights | ||
component resource id. | ||
:type component: ~azure.mgmt.batchai.models.ResourceId | ||
:param instrumentation_key: Value of the Azure Application Insights | ||
instrumentation key. | ||
:type instrumentation_key: str | ||
:param instrumentation_key_secret_reference: Specifies a KeyVault Secret | ||
containing Azure Application Insights instrumentation key. Specifies | ||
KeyVault Store and Secret which contains Azure Application Insights | ||
instrumentation key. One of instumentationKey or | ||
instrumentationKeySecretReference must be specified. | ||
:type instrumentation_key_secret_reference: | ||
~azure.mgmt.batchai.models.KeyVaultSecretReference | ||
""" | ||
|
||
_validation = { | ||
'component': {'required': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'component': {'key': 'component', 'type': 'ResourceId'}, | ||
'instrumentation_key': {'key': 'instrumentationKey', 'type': 'str'}, | ||
'instrumentation_key_secret_reference': {'key': 'instrumentationKeySecretReference', 'type': 'KeyVaultSecretReference'}, | ||
} | ||
|
||
def __init__(self, *, component, instrumentation_key: str=None, instrumentation_key_secret_reference=None, **kwargs) -> None: | ||
super(AppInsightsReference, self).__init__(**kwargs) | ||
self.component = component | ||
self.instrumentation_key = instrumentation_key | ||
self.instrumentation_key_secret_reference = instrumentation_key_secret_reference |
Oops, something went wrong.