Skip to content

Commit

Permalink
CodeGen from PR 12289 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Get latest master (Azure#12289)

* [Hub Generated] Review request for Microsoft.AlertsManagement to add version stable/2019-06-01 (Azure#11833)

* Changing Swagger file

* Changing examples

* Fixing tags example

* Fixing tags example

* Fixing tags example

* prettier fix for white spaces

* Enable azure-sdk-for-net-track2 (Azure#12169)

* Updating existing CRR APIs with zone restore feature (Azure#12157)

* - Added change for support of cross zone restores.

* - updating example json

* - Fixing prettier

* lastUpdatedDate for templates (Azure#11900)

* lastUpdatedDate for templates

* fix

* [Hub Generated] Review request for Microsoft.AppPlatform to add version preview/2020-11-01-preview (Azure#11823)

* Adds base for updating Microsoft.AppPlatform from version stable/2020-07-01 to version 2020-11-01-preview

* Updates readme

* Updates API version in new specs and examples

* Introduce additional change to 2020-11-01-preview.

* Additional properties to monitoringSettings.
* Readonly properties to requiredTraffics.

Signed-off-by: Pan Li <panli@microsoft.com>

* Make credscan happy.

Signed-off-by: Pan Li <panli@microsoft.com>

* [Hub Generated] Review request for Microsoft.Consumption to add version stable/2019-10-01 (Azure#12113)

* Fix linter and swagger warnings

* Fix errors

* Removed unneeded change

* [ASC.Automations] Add new data type "RegulatoryComplianceAssessment" (Azure#12185)

* Add SubAssessment event source type and add more automations examples

* Change Location isReadOnlu to false

* Test

* Add new read/write location and add new type TrackedResourceLocation

* Minor

* minor

* prettier fixes

* Change variable name to TrackedResourceLocation

* Change type name TrackedResourceLocation to AzureTrackedResourceLocation

* Update automations example

* Add SecureScores & SecureScoreControls as new supported datatypes in Automations resource

* [ASC.Automations] add new data type RegulatoryComplianceAssessment

* add datalake store track2 config (Azure#12186)

* cleanup old pipeline dependencies (Azure#11889)

* cleanup pipeline deps

* add rest-api-specs-scripts

* Extending recovery network input in replication intent API to support new network creation (Azure#12191)

* [Hub Generated] Review request for Microsoft.Maps to add version preview/2020-02-01-preview (Azure#12172)

* Adding operations for Maps Creator resource.

* Fixing typo.

* Adds suppression to readme

* Adds suppression to readme

* Adds suppression to readme

* Adds suppression to readme

* Resolving linter errors.

* Minor update.

* Updating all reference to v2 schema.

* Marked private atlas as deprecated in description.

* add operationsmanagement track2 config (Azure#12141)

* Update comment.yml (Azure#12202)

Add ARM traffic query link. When add breakingChangeReviewRequired

* Adding new properties to response body (Azure#12201)

* adding new properties

* updating examples

* prettier fix

* [Hub Generated] Review request for Microsoft.ContainerService to add version stable/2020-12-01 (Azure#12064)

* Add autorest.az configurations for azure monitor control service (Azure#12090)

* add AMCS config for codegen

* reorganize command group

* rename command group

* Codegen modify try to rename DataCollectionRules create parameters

* hide DataCollectionRules Create & Update commands and DataCollectionRuleAssociations Create command

* use alias instand of rename in code-gen

* use monitor-control-service as the extension name

* Update readme.python.md

* add logic track2 config (Azure#12166)

* add alertsmanagement track2 config (Azure#11759)

* Update comment.yml (Azure#12213)

* add mixedreality track2 confi (Azure#12070)

* add signalr track2 config (Azure#11892)

* add cognitiveservice track2 config (Azure#11498)

* add machinglearningservices track2 config (Azure#12183)

* add apimanagement track2 config (Azure#12187)

* add serialconsole track2 config (Azure#12046)

* Update TransparentDataEncryption Group Name (Azure#12160)

* update TransparentDataEncryption Group name

* update reference of TransparentDataEncryption

* Update readme.python.md (Azure#12216)

* Required changes for Azure HealthBot swagger (Azure#12124)

* Fixes for SDK generation files.

* Fixes for SDK generation files.

* Added GO.

* Change Healthcare bot to Healthbot.

* 1. Remove unused properties of SKU.
2. Removed unused CheckNameAvailability.json
3. Remove subgroup.

* Sku is required.

* [Hub Generated] Review request for Microsoft.IoTCentral to add version stable/2018-09-01 (Azure#12224)

* update to name

* update

* add api-version of guest configuration to go SDK (Azure#12217)

* add api-version for templatespecs (Azure#12197)

* Update specificationRepositoryConfiguration.json (Azure#12218)

* Adding new api version to devops RP (Azure#11585)

* Initial commit as per PR review

* Actual changes to api spec for new version

* Switching to multi-api build for python

* Fix python spec to correct namespaces in multiapi mode

* Revert changes to python generation

* Add systemdata

* Fix the path for sys data reference

* Fix path once more

* remove additional properties after including systemdata

* Remove more addtional properties

* Move system data to root

* Fix wrong output-folder (Azure#12229)

* Remove swagger and examples because the controller will be used for private preview. (Azure#12177)

* Update pull_request_assignment.yml (Azure#12230)

* [Hub Generated] Review request for Microsoft.StorageCache to add version stable/2020-10-01 (Azure#11407)

* Init the next version so diffs can work better.

* Updates readme

* Updates API version in new specs and examples

* Updates to StorageTargetProperties and added examples of cmk, mtu

Add 202 to the storage cache and storage target create/update and update examples

Fix ST no junction example's 202 response.

add properties for nfs extended groups

fix issues with extended groups properties found with autorest

add properties and objects for Active Directory username download

undo unintended change

changes from comments in pull request

AccessPolicy support.

Example fixes for Access Policies.

Fix attribute names to match latest RP.

update to credential properties for LDAP and Active Directory

marking password properties with x-ms-secret tag

minor changes on extended groups and add examples

Added blob NFS and some other validation fixes.

Update required property for domainName from dnsName

Updated blobNfs examples and some kpi fixes.

Correct validation errors in examples.

Added systemdata to resources.

Remove x-ms-secret in keyvault reference due to linter error and common types not using it.

Remove blobNfs from this version.

Remove blobNfs from spec file.

Remove x-ms-secret due to linter errors.

Fix certificate spelling.

Updating prettier and spell check errors.

Used prettier on main spec file.

Readded x-ms-secret that open api hub failed on but the PR pipeline allows.

* Add prettier fix after rebase

* Remove 202 bodies and add systemData to examples.

* Update spec with prettier.

* Address comments on spec for descriptions, readmes, and extendedGroupsEnabled.

* Updating to address addition ldap and pattern comments.

* Update version tag to include 01

* Restore changes that would be considered breaking changes matching 2020-03-01

* Address a few other comments.

* Update netbios field names and some descriptions.

* Fix s360 for missing debugInfo operation.

* Fix credscan error in example file.

* Update required fields, new validator failure on debugInfo return codes, and bindPassword example value.

* Update debug info example with new return codes.

* Update other credscan password errors.

* Update Semantic-and-Model-Violations-Reference.md (Azure#12199)

Adding secret_property code, update some other codes.

* ADP - add system metadata to dataPool (Azure#12179)

* Swagger Linting Fix (Azure#12162)

* Fix Linting Issuing

* no message

* fix description

* add description and object back

* test to resolve model validation test

(cherry picked from commit ab273dfc0d5897683c128ee15da4babafa7a85ba)

* [SQL][V20180601] Updating LocationCapabilities spec (Azure#12032)

* [SQL][V20180601] Updating LocationCapabilities spec

* Fill 2020 versions

* Rollback V2018 changes and bump LocationCapabilities in V4 to 2020-08-01-preview

* update order for CI-FixRequiredOnFailure (Azure#12227)

* update rdbms track2 config (Azure#12245)

* ADT: refix path (Azure#12161)

* python track2 configure (Azure#12150)

* Add and remove owner for service principals (Azure#12081)

* [Hub Generated] Review request for Microsoft.MixedReality to add version stable/2020-05-01 (Azure#11810)

* fix spec

* fix prettier

* [Hub Generated] Review request for Microsoft.MixedReality to add version preview/2019-12-02-preview (Azure#11769)

* fix for swagger completeness

* forgot curly brace

* fix example

* Api Management - make /tenant endpoints ARM compliant in 2020-06-01-preview version (Azure#11549)

* Adds base for updating Microsoft.ApiManagement from version stable/2019-12-01 to version 2020-06-01-preview

* Updates readme

* Updates API version in new specs and examples

* Add support in API Management for Availability Zones (Azure#10284)

* apim in azs

* fix prettier check

* PATCH should return 200 OK (Azure#10328)

* add support for PATCH returning 200 OK

* CI fixes

prettier fix

CI fixes part 2

* Password no longer a mandatory property when uploading Certificates

* add missing x-ms-odata extension for filter support

* +gatewayhostnameconfiguration protocol changes (Azure#10292)

* [2020-06-01-preview] Update Oauth Server secrets Contract (Azure#10602)

* Oauth server secrets contract

* fix azureMonitor enum

* API Management Service Deleted Services Resource (Azure#10607)

* API Management Service Deleted Services Resource

* Path fix

* Lint + custom-words fixes

* Location URI parameter for deletedservices Resource

* GET for deletedservices by service name

* Remove resourceGroupName from resource path

* fixes

* schema for purge operation

* perttier applied

* 204 response code added

Co-authored-by: REDMOND\glfeokti <glfeokti@microsoft.com>

* OperationNameFormat property added to Diagnostic contract (Azure#10641)

* OperationNameFormat property added to Diagnostic contract

* add azuremonitor to update contract

Co-authored-by: REDMOND\glfeokti <glfeokti@microsoft.com>

* [Microsoft.ApiManagement][2020-06-01-preview] Change Network Status response contract (Azure#10331)

* Change Network Status response contract

* Update examples for network status contract

* ApiManagement - tenant/settings endpoints

* ApiManagement - tenant/settings endpoints fix

* ApiManagement - tenant/settings endpoints fix prettier

* ApiManagement - tenant/settings endpoints fix 3

* ApiManagement - tenant/settings endpoints fix 4

* ApiManagement - tenant/settings endpoints fix 5

Co-authored-by: Samir Solanki <samirsolanki@outlook.com>
Co-authored-by: maksimkim <maksim.kim@gmail.com>
Co-authored-by: promoisha <feoktistovgg@gmail.com>
Co-authored-by: REDMOND\glfeokti <glfeokti@microsoft.com>
Co-authored-by: RupengLiu <rliu1211@terpmail.umd.edu>
Co-authored-by: vfedonkin <vifedo@microsoft.com>

* Add "mail" parameter to UserUpdateParameters in graphrbac (Azure#12127)

This patch adds a single optional field "mail" to UserUpdateParameters
schema. This makes it possible to update user's e-mail address using
the (Go) Azure SDK. Currently this is not possible.

I have curled the graphrbac API with the extra body parameter and it
works as expected.

Addition of the field will make it possible to support the mail property
on the azuread_user resource in terraform-provider-azuread.

Co-authored-by: David Čepelík <david.cepelik@showmax.com>

* [Hub Generated] Review request for Microsoft.Advisor to add version stable/2020-01-01 (Azure#12262)

* add resourcegraph track2 config (Azure#12122)

* add reservations track2 config (Azure#12027)

* Removing a readonly tag from a property (Azure#12254)

* Fix swagger correctness errors (Azure#12246)

* Fix swagger correctness issues in Security for Iot service

* changed int format from 32 to 64

* Add systemData to iotSecuritySolutions

Co-authored-by: Liran Chen <lirche@microsoft.com>

* [Hub Generated] Review request for Microsoft.Consumption to add version stable/2019-10-01 (Azure#12196)

* AAS - Swagger Linting and Correctness Fix (Azure#12176)

* Fix R4013 IntegerTypeMustHaveFormat

* Fix R4010 RequiredDefaultResponse

* Fix R4007 DefaultErrorResponseSchema

* removed extra bracket

* fix semantic issue

* add type error

* Fix linting issue

* test to resolve model validation test

* Revert "test to resolve model validation test"

This reverts commit ab273dfc0d5897683c128ee15da4babafa7a85ba.

* Resolve Model Validation Issue

* Resolve Model Validation Issue v2

* test - add missing properties

(cherry picked from commit 48ec27c51cc61f4b3c05b531618f40b7c2f77de6)

* fix format

* set default value

* add x-ms-enum

* fix nit

* Add missing property

* add missing properties

* add missing bracket

* change GatewayListStatusLive type

* add missing "origin" property

* fix model validation

* Revert "change GatewayListStatusLive type"

This reverts commit 4f3fa743d5ce91bea6bcf83474e6e3fc15bc3483.

* Revert "fix model validation"

This reverts commit 945bc233b9e623b2d90f7903b8b4dee94d873aa8.

* add redhatopenshift track2 config (Azure#12045)

* [Hub Generated] Review request for Microsoft.CostManagement to add version stable/2019-10-01 (Azure#12194)

* Adding nextLink and previousLink to Tags endpoint properties

* moving properties out

* prettier check fix

Co-authored-by: Jorge Chavez Nieto <jochav@microsoft.com>

* add relay track2 config (Azure#11495)

* update healthbot t2 config (Azure#12269)

* update healthbot t2 config

* fix readme

* add automation track2 config (Azure#11628)

* add automation track2 config

* update config

* Azure Remote Rendering REST API swagger file - for review (Azure#12015)

* Azure Remote Rendering API specifcation

* fix schema issue

* fix examples

* fix request bodies integer values, :stop path

* pointing readme.md to open api spec for ARR

* fix typo, add custom words

* add msvc to custom words

* fix readme.md

* ran prettifier

* fix reference to json

* reference sts from file as well

* fix readme.md

* changes to readme.md

* remove example from error to fix error

* add 200 OK status for retried PUT for conversions and sessiosn

* ran prettier

* make autorest linter not crash

* fix casing of nextLinkName paramter

* factor out conversion list response

* add examples for conversions

* adding examples for sessions, prettify files

* [Hub Generated] Review request for Microsoft.Maps/Microsoft.Maps to add version preview/2.0 (Azure#12175)

* microsoft.imagery 512 not supported

Adding micorosft.imagery to 512 tile not supported list

* Updating Raster Tilesets to Have Max Zoom 22

Certain raster tilesets now support up to zoom level 22.

* minor changes to swagger (Azure#12253)

* minor changes to swagger

* reverting sdk definitions file

* Add addons to AVS 2020-07-17-preview (Azure#12236)

* found missing AVS/privateclouds/addons commit, moving it to 2020-07-17-preview API from PR repo

* fixed prettier errors

* Fixed vladation warnings for x-ms-enum and missing description/title, related to addons

* fixed validation error for missing systemData for addons responses

* fixed prettier errors

* fixed validation error for missing systemData for addons responses

* systemData for any Resource

* make sure systemData is readOnly

* systemData needs to go in a new api version

* suppress systemData error

Co-authored-by: Cameron Taggart <cameron.taggart@microsoft.com>

* Azs api bug fix (Azure#12133)

* Old api version for ComputeOperationResult

* Api Bugfix for Azure Stack Fabric Admin

* Fix for typo in readme

* Add default reponse

* Fix example issue for default error

* Update comment.yml (Azure#12273)

* [Hub Generated] Review request for Microsoft.CostManagement to add version stable/2019-11-01 (Azure#12031)

* fix dataSet typo

* fix dimensions and tags typo

* more dimensions and tags to fix

* one more miss on dimensions and tags

* Add the includeMonetaryCommitment missing field

* fix spell check error

* make property read only

* remove the not operation from query filters

* New backup service api version (Azure#12171)

* Initial commit: adding new api version

* - new api 2020-12-01

* updating the readme.md package reference

* - adding the zone information for new api

* - updating api-version in examples
- added 'zone' in Get recoverypoint api example json

* Fixing prettier issue

* Revert "- updating api-version in examples"

This reverts commit 80baa9fcec1293bd3a51875d793f2178964fce52.

* - adding api-version in examples

* adding new api version in package mds

* [IotHub] Introducing networkRuleSets in IotHubProperties [2020-08-31 : preview and stable ] (Azure#10853)

* Adds base for updating Microsoft.Devices from version preview/2020-07-10-preview to version 2020-08-31-preview

* Updates readme

* Updates API version in new specs and examples

* Adds base for updating Microsoft.Devices from version stable/2020-08-01 to version 2020-08-31

* Updates readme

* Updates API version in new specs and examples

* Adding networkRuleSets support for iothub

* Adding networkRuleSets Support in preview version

* Adding Examples, correcting order in iothub.json

* Updating Readme to have stable and previe versions

* Modifying Tag to package-2020-08-31

* Adding Arm identity properties from 2020-07-010-preview version

* Removing creds

* minor fix

* swagger correctness fix (Azure#12101)

* swagger correctness fix

* update preview version too

* Revert change and add defaults (Azure#12243)

* Remove gallery preview version 2020-09-30 from stable release (Azure#12222)

* add managementpartner track2 config (Azure#12043)

* [Hub Generated] Review request for Microsoft.Insights to add version stable/2019-03-01 (Azure#12232)

* Fixed swagger validations for api version 2019

* reverted error response change and suppress

* removed redundant error details

* renamed suppression rule

* fixed suppression

Co-authored-by: napolish <67951636+napolish@users.noreply.github.com>
Co-authored-by: Phoenix He <tih@microsoft.com>
Co-authored-by: arpja <46751982+arpja@users.noreply.github.com>
Co-authored-by: ShaniFelig <74960756+ShaniFelig@users.noreply.github.com>
Co-authored-by: Pan Li <Incarnation-p-lee@users.noreply.github.com>
Co-authored-by: Zach Rathbun <zachra@microsoft.com>
Co-authored-by: surashed <55134940+surashed@users.noreply.github.com>
Co-authored-by: Kaihui (Kerwin) Sun <sunkaihuisos@gmail.com>
Co-authored-by: Zhenglai Zhang <darinzh@microsoft.com>
Co-authored-by: om-nishant <50401171+om-nishant@users.noreply.github.com>
Co-authored-by: Ihar Voitka <ihvo@users.noreply.github.com>
Co-authored-by: Ruoxuan Wang <52271048+ruowan@users.noreply.github.com>
Co-authored-by: Ju Hee Lee <juhee0202@gmail.com>
Co-authored-by: xiazhan <allan.zhang76@gmail.com>
Co-authored-by: kai ru <69238381+kairu-ms@users.noreply.github.com>
Co-authored-by: Ji Wang <jiwang5@microsoft.com>
Co-authored-by: Andy Zhang <xiazhang@microsoft.com>
Co-authored-by: guy-microsoft <50947884+guy-microsoft@users.noreply.github.com>
Co-authored-by: PoAn (Baron) Chen <chen.baron@hotmail.com>
Co-authored-by: Arcturus <dapzhang@microsoft.com>
Co-authored-by: suyash691 <suyash691@github.com>
Co-authored-by: nemijato <68876730+nemijato@users.noreply.github.com>
Co-authored-by: brpanask <64860651+brpanask@users.noreply.github.com>
Co-authored-by: Ray Chen <raychen@microsoft.com>
Co-authored-by: Eli Arbel <aelij@arbel.net>
Co-authored-by: David Han <76010854+david-msft@users.noreply.github.com>
Co-authored-by: Roman Khotsyn <rokhot@microsoft.com>
Co-authored-by: David R. Williamson <drwill@microsoft.com>
Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com>
Co-authored-by: Xinyi Joffre <xiou@microsoft.com>
Co-authored-by: roytan-microsoft <73565668+roytan-microsoft@users.noreply.github.com>
Co-authored-by: Vitaliy Fedonkin <vitaliy.fedonkin@gmail.com>
Co-authored-by: Samir Solanki <samirsolanki@outlook.com>
Co-authored-by: maksimkim <maksim.kim@gmail.com>
Co-authored-by: promoisha <feoktistovgg@gmail.com>
Co-authored-by: REDMOND\glfeokti <glfeokti@microsoft.com>
Co-authored-by: RupengLiu <rliu1211@terpmail.umd.edu>
Co-authored-by: vfedonkin <vifedo@microsoft.com>
Co-authored-by: David Čepelík <d@dcepelik.cz>
Co-authored-by: David Čepelík <david.cepelik@showmax.com>
Co-authored-by: mudit794 <42189950+mudit794@users.noreply.github.com>
Co-authored-by: Dhawal Jain <41853104+dhawal777@users.noreply.github.com>
Co-authored-by: MichalHel <51286657+MichalHel@users.noreply.github.com>
Co-authored-by: Liran Chen <lirche@microsoft.com>
Co-authored-by: jochav <75458295+jochav@users.noreply.github.com>
Co-authored-by: Jorge Chavez Nieto <jochav@microsoft.com>
Co-authored-by: rikogeln <40666347+rikogeln@users.noreply.github.com>
Co-authored-by: chgennar <56695749+chgennar@users.noreply.github.com>
Co-authored-by: hivyas <61890270+hivyas@users.noreply.github.com>
Co-authored-by: Douglas Lee <65295939+leedouglas@users.noreply.github.com>
Co-authored-by: Cameron Taggart <cameron.taggart@microsoft.com>
Co-authored-by: LingyunSu <33764806+LingyunSu@users.noreply.github.com>
Co-authored-by: elabicha <61994320+elabicha@users.noreply.github.com>
Co-authored-by: Nikhil Kumar Mengani <62704762+nimengan@users.noreply.github.com>
Co-authored-by: Junbo Wang <juniwang@microsoft.com>
Co-authored-by: Daniel Orozco <64658732+dagoroz@users.noreply.github.com>
Co-authored-by: Adam Sandor <adsandor@microsoft.com>
Co-authored-by: yashmuel <63585146+yashmuel@users.noreply.github.com>
  • Loading branch information
Show file tree
Hide file tree
Showing 10 changed files with 345 additions and 55 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def __init__(
super(SignalRManagementClient, 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 = '2020-05-01'
self.api_version = '2020-07-01-preview'
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
from ._models_py3 import ErrorResponse, ErrorResponseException
from ._models_py3 import ErrorResponseBody
from ._models_py3 import LogSpecification
from ._models_py3 import ManagedIdentity
from ._models_py3 import ManagedIdentitySettings
from ._models_py3 import MetricSpecification
from ._models_py3 import NameAvailability
from ._models_py3 import NameAvailabilityParameters
Expand All @@ -38,15 +40,20 @@
from ._models_py3 import SignalRKeys
from ._models_py3 import SignalRNetworkACLs
from ._models_py3 import SignalRResource
from ._models_py3 import SignalRTlsSettings
from ._models_py3 import SignalRUsage
from ._models_py3 import SignalRUsageName
from ._models_py3 import TrackedResource
from ._models_py3 import UpstreamAuthSettings
from ._models_py3 import UpstreamTemplate
from ._models_py3 import UserAssignedIdentityProperty
except (SyntaxError, ImportError):
from ._models import Dimension
from ._models import ErrorResponse, ErrorResponseException
from ._models import ErrorResponseBody
from ._models import LogSpecification
from ._models import ManagedIdentity
from ._models import ManagedIdentitySettings
from ._models import MetricSpecification
from ._models import NameAvailability
from ._models import NameAvailabilityParameters
Expand All @@ -71,10 +78,13 @@
from ._models import SignalRKeys
from ._models import SignalRNetworkACLs
from ._models import SignalRResource
from ._models import SignalRTlsSettings
from ._models import SignalRUsage
from ._models import SignalRUsageName
from ._models import TrackedResource
from ._models import UpstreamAuthSettings
from ._models import UpstreamTemplate
from ._models import UserAssignedIdentityProperty
from ._paged_models import OperationPaged
from ._paged_models import PrivateLinkResourcePaged
from ._paged_models import SignalRResourcePaged
Expand All @@ -84,7 +94,9 @@
ProvisioningState,
PrivateLinkServiceConnectionStatus,
ServiceKind,
ManagedIdentityType,
FeatureFlags,
UpstreamAuthType,
ACLAction,
SignalRRequestType,
KeyType,
Expand All @@ -95,6 +107,8 @@
'ErrorResponse', 'ErrorResponseException',
'ErrorResponseBody',
'LogSpecification',
'ManagedIdentity',
'ManagedIdentitySettings',
'MetricSpecification',
'NameAvailability',
'NameAvailabilityParameters',
Expand All @@ -119,10 +133,13 @@
'SignalRKeys',
'SignalRNetworkACLs',
'SignalRResource',
'SignalRTlsSettings',
'SignalRUsage',
'SignalRUsageName',
'TrackedResource',
'UpstreamAuthSettings',
'UpstreamTemplate',
'UserAssignedIdentityProperty',
'OperationPaged',
'SignalRResourcePaged',
'PrivateLinkResourcePaged',
Expand All @@ -131,7 +148,9 @@
'ProvisioningState',
'PrivateLinkServiceConnectionStatus',
'ServiceKind',
'ManagedIdentityType',
'FeatureFlags',
'UpstreamAuthType',
'ACLAction',
'SignalRRequestType',
'KeyType',
Expand Down
169 changes: 149 additions & 20 deletions sdk/signalr/azure-mgmt-signalr/azure/mgmt/signalr/models/_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,64 @@ def __init__(self, **kwargs):
self.display_name = kwargs.get('display_name', None)


class ManagedIdentity(Model):
"""A class represent managed identities used for request and response.
Variables are only populated by the server, and will be ignored when
sending a request.
:param type: Represent the identity type: systemAssigned, userAssigned,
None. Possible values include: 'None', 'SystemAssigned', 'UserAssigned'
:type type: str or ~azure.mgmt.signalr.models.ManagedIdentityType
:param user_assigned_identities: Get or set the user assigned identities
:type user_assigned_identities: dict[str,
~azure.mgmt.signalr.models.UserAssignedIdentityProperty]
:ivar principal_id: Get the principal id for the system assigned identity.
Only be used in response.
:vartype principal_id: str
:ivar tenant_id: Get the tenant id for the system assigned identity.
Only be used in response
:vartype tenant_id: str
"""

_validation = {
'principal_id': {'readonly': True},
'tenant_id': {'readonly': True},
}

_attribute_map = {
'type': {'key': 'type', 'type': 'str'},
'user_assigned_identities': {'key': 'userAssignedIdentities', 'type': '{UserAssignedIdentityProperty}'},
'principal_id': {'key': 'principalId', 'type': 'str'},
'tenant_id': {'key': 'tenantId', 'type': 'str'},
}

def __init__(self, **kwargs):
super(ManagedIdentity, self).__init__(**kwargs)
self.type = kwargs.get('type', None)
self.user_assigned_identities = kwargs.get('user_assigned_identities', None)
self.principal_id = None
self.tenant_id = None


class ManagedIdentitySettings(Model):
"""Managed identity settings for upstream.
:param resource: The Resource indicating the App ID URI of the target
resource.
It also appears in the aud (audience) claim of the issued token.
:type resource: str
"""

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

def __init__(self, **kwargs):
super(ManagedIdentitySettings, self).__init__(**kwargs)
self.resource = kwargs.get('resource', None)


class MetricSpecification(Model):
"""Specifications of the Metrics for Azure Monitoring.
Expand Down Expand Up @@ -599,6 +657,9 @@ def __init__(self, **kwargs):
class ResourceSku(Model):
"""The billing information of the SignalR resource.
Variables are only populated by the server, and will be ignored when
sending a request.
All required parameters must be populated in order to send to Azure.
:param name: Required. The name of the SKU. Required.
Expand All @@ -608,10 +669,10 @@ class ResourceSku(Model):
`Basic` is deprecated, use `Standard` instead. Possible values include:
'Free', 'Basic', 'Standard', 'Premium'
:type tier: str or ~azure.mgmt.signalr.models.SignalRSkuTier
:param size: Optional string. For future use.
:type size: str
:param family: Optional string. For future use.
:type family: str
:ivar size: Not used. Retained for future use.
:vartype size: str
:ivar family: Not used. Retained for future use.
:vartype family: str
:param capacity: Optional, integer. The unit count of SignalR resource. 1
by default.
If present, following values are allowed:
Expand All @@ -622,6 +683,8 @@ class ResourceSku(Model):

_validation = {
'name': {'required': True},
'size': {'readonly': True},
'family': {'readonly': True},
}

_attribute_map = {
Expand All @@ -636,8 +699,8 @@ def __init__(self, **kwargs):
super(ResourceSku, self).__init__(**kwargs)
self.name = kwargs.get('name', None)
self.tier = kwargs.get('tier', None)
self.size = kwargs.get('size', None)
self.family = kwargs.get('family', None)
self.size = None
self.family = None
self.capacity = kwargs.get('capacity', None)


Expand Down Expand Up @@ -705,11 +768,6 @@ def __init__(self, **kwargs):
class SignalRCreateOrUpdateProperties(Model):
"""Settings used to provision or configure the resource.
:param host_name_prefix: Prefix for the hostName of the SignalR service.
Retained for future use.
The hostname will be of format:
&lt;hostNamePrefix&gt;.service.signalr.net.
:type host_name_prefix: str
:param features: List of SignalR featureFlags. e.g. ServiceMode.
FeatureFlags that are not included in the parameters for the update
operation will not be modified.
Expand All @@ -729,7 +787,6 @@ class SignalRCreateOrUpdateProperties(Model):
"""

_attribute_map = {
'host_name_prefix': {'key': 'hostNamePrefix', 'type': 'str'},
'features': {'key': 'features', 'type': '[SignalRFeature]'},
'cors': {'key': 'cors', 'type': 'SignalRCorsSettings'},
'upstream': {'key': 'upstream', 'type': 'ServerlessUpstreamSettings'},
Expand All @@ -738,7 +795,6 @@ class SignalRCreateOrUpdateProperties(Model):

def __init__(self, **kwargs):
super(SignalRCreateOrUpdateProperties, self).__init__(**kwargs)
self.host_name_prefix = kwargs.get('host_name_prefix', None)
self.features = kwargs.get('features', None)
self.cors = kwargs.get('cors', None)
self.upstream = kwargs.get('upstream', None)
Expand Down Expand Up @@ -905,11 +961,6 @@ class SignalRResource(TrackedResource):
:type tags: dict[str, str]
:param sku: The billing information of the resource.(e.g. Free, Standard)
:type sku: ~azure.mgmt.signalr.models.ResourceSku
:param host_name_prefix: Prefix for the hostName of the SignalR service.
Retained for future use.
The hostname will be of format:
&lt;hostNamePrefix&gt;.service.signalr.net.
:type host_name_prefix: str
:param features: List of SignalR featureFlags. e.g. ServiceMode.
FeatureFlags that are not included in the parameters for the update
operation will not be modified.
Expand Down Expand Up @@ -949,10 +1000,14 @@ class SignalRResource(TrackedResource):
SignalR resource.
:vartype private_endpoint_connections:
list[~azure.mgmt.signalr.models.PrivateEndpointConnection]
:param tls: TLS settings.
:type tls: ~azure.mgmt.signalr.models.SignalRTlsSettings
:param kind: The kind of the service - e.g. "SignalR", or "RawWebSockets"
for "Microsoft.SignalRService/SignalR". Possible values include:
'SignalR', 'RawWebSockets'
:type kind: str or ~azure.mgmt.signalr.models.ServiceKind
:param identity: The managed identity response
:type identity: ~azure.mgmt.signalr.models.ManagedIdentity
"""

_validation = {
Expand All @@ -975,7 +1030,6 @@ class SignalRResource(TrackedResource):
'location': {'key': 'location', 'type': 'str'},
'tags': {'key': 'tags', 'type': '{str}'},
'sku': {'key': 'sku', 'type': 'ResourceSku'},
'host_name_prefix': {'key': 'properties.hostNamePrefix', 'type': 'str'},
'features': {'key': 'properties.features', 'type': '[SignalRFeature]'},
'cors': {'key': 'properties.cors', 'type': 'SignalRCorsSettings'},
'upstream': {'key': 'properties.upstream', 'type': 'ServerlessUpstreamSettings'},
Expand All @@ -987,13 +1041,14 @@ class SignalRResource(TrackedResource):
'server_port': {'key': 'properties.serverPort', 'type': 'int'},
'version': {'key': 'properties.version', 'type': 'str'},
'private_endpoint_connections': {'key': 'properties.privateEndpointConnections', 'type': '[PrivateEndpointConnection]'},
'tls': {'key': 'properties.tls', 'type': 'SignalRTlsSettings'},
'kind': {'key': 'kind', 'type': 'str'},
'identity': {'key': 'identity', 'type': 'ManagedIdentity'},
}

def __init__(self, **kwargs):
super(SignalRResource, self).__init__(**kwargs)
self.sku = kwargs.get('sku', None)
self.host_name_prefix = kwargs.get('host_name_prefix', None)
self.features = kwargs.get('features', None)
self.cors = kwargs.get('cors', None)
self.upstream = kwargs.get('upstream', None)
Expand All @@ -1005,7 +1060,26 @@ def __init__(self, **kwargs):
self.server_port = None
self.version = None
self.private_endpoint_connections = None
self.tls = kwargs.get('tls', None)
self.kind = kwargs.get('kind', None)
self.identity = kwargs.get('identity', None)


class SignalRTlsSettings(Model):
"""TLS settings for SignalR.
:param client_cert_enabled: Request client certificate during TLS
handshake if enabled
:type client_cert_enabled: bool
"""

_attribute_map = {
'client_cert_enabled': {'key': 'clientCertEnabled', 'type': 'bool'},
}

def __init__(self, **kwargs):
super(SignalRTlsSettings, self).__init__(**kwargs)
self.client_cert_enabled = kwargs.get('client_cert_enabled', None)


class SignalRUsage(Model):
Expand Down Expand Up @@ -1063,6 +1137,28 @@ def __init__(self, **kwargs):
self.localized_value = kwargs.get('localized_value', None)


class UpstreamAuthSettings(Model):
"""Upstream auth settings.
:param type: Gets or sets the type of auth. None or ManagedIdentity is
supported now. Possible values include: 'None', 'ManagedIdentity'
:type type: str or ~azure.mgmt.signalr.models.UpstreamAuthType
:param managed_identity: Gets or sets the managed identity settings. It's
required if the auth type is set to ManagedIdentity.
:type managed_identity: ~azure.mgmt.signalr.models.ManagedIdentitySettings
"""

_attribute_map = {
'type': {'key': 'type', 'type': 'str'},
'managed_identity': {'key': 'managedIdentity', 'type': 'ManagedIdentitySettings'},
}

def __init__(self, **kwargs):
super(UpstreamAuthSettings, self).__init__(**kwargs)
self.type = kwargs.get('type', None)
self.managed_identity = kwargs.get('managed_identity', None)


class UpstreamTemplate(Model):
"""Upstream template item settings. It defines the Upstream URL of the
incoming requests.
Expand Down Expand Up @@ -1104,6 +1200,9 @@ class UpstreamTemplate(Model):
with a client request from hub `chat` connects, it will first POST to this
URL: `http://example.com/chat/api/connect`.
:type url_template: str
:param auth: Gets or sets the auth settings for an upstream. If not set,
no auth is used for upstream messages.
:type auth: ~azure.mgmt.signalr.models.UpstreamAuthSettings
"""

_validation = {
Expand All @@ -1115,6 +1214,7 @@ class UpstreamTemplate(Model):
'event_pattern': {'key': 'eventPattern', 'type': 'str'},
'category_pattern': {'key': 'categoryPattern', 'type': 'str'},
'url_template': {'key': 'urlTemplate', 'type': 'str'},
'auth': {'key': 'auth', 'type': 'UpstreamAuthSettings'},
}

def __init__(self, **kwargs):
Expand All @@ -1123,3 +1223,32 @@ def __init__(self, **kwargs):
self.event_pattern = kwargs.get('event_pattern', None)
self.category_pattern = kwargs.get('category_pattern', None)
self.url_template = kwargs.get('url_template', None)
self.auth = kwargs.get('auth', None)


class UserAssignedIdentityProperty(Model):
"""Properties of user assigned identity.
Variables are only populated by the server, and will be ignored when
sending a request.
:ivar principal_id: Get the principal id for the user assigned identity
:vartype principal_id: str
:ivar client_id: Get the client id for the user assigned identity
:vartype client_id: str
"""

_validation = {
'principal_id': {'readonly': True},
'client_id': {'readonly': True},
}

_attribute_map = {
'principal_id': {'key': 'principalId', 'type': 'str'},
'client_id': {'key': 'clientId', 'type': 'str'},
}

def __init__(self, **kwargs):
super(UserAssignedIdentityProperty, self).__init__(**kwargs)
self.principal_id = None
self.client_id = None

0 comments on commit fb4cc70

Please sign in to comment.