Skip to content

Commit

Permalink
CodeGen from PR 24762 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Release machinelearningservices microsoft.machine learning services 2023 08 01 preview (Azure#24762)

* Adds base for updating Microsoft.MachineLearningServices from version preview/2023-06-01-preview to version 2023-08-01-preview

* Updates readme

* Updates API version in new specs and examples

* MFE 2023-08-01-preview mfe.json (Azure#24764)

* add mfe.json

* labeling jobs update descriptions

* add examples for ServerlessEndpoint

* update labelingjob examples

* label job examples remove additional properties

* adding sku to patch

* add identity to patch

* add in operationresult to examples

---------

Co-authored-by: Kayla Ames <kaseager@microsoft.com>

* Adding Resources at sweep level (Azure#25090)

Co-authored-by: Anubha98 <anubhajain@microsoft.com>

* HoboVM Preview Features (Azure#24769)

* Update Pricesheet properties for savingsPlan (Azure#24708)

* Update consumption.json

* Update PriceSheet.json

* Update consumption.json

* Update PriceSheet.json

* Update consumption.json

* Update PriceSheet.json

* Update consumption.json

* Update consumption.json

* Update consumption.json

* Update PriceSheet.json

* elasticsan preview refresh microsoft.elasticsan 2022-12-01-preview (Azure#24494)

* Adds base for updating Microsoft.ElasticSan from version preview/2021-11-20-preview to version 2022-12-01-preview

* Updates readme

* Updates API version in new specs and examples

* Added PE related changes

* Added Private Link resource API

* Nit change to correct the path for privateLinkResource API

* Updated Lint errors

* prettier check

* resolved comments & added publicNetworkAccess

* removed publicNetworkAccess & NIT changes

* Updated the list operations

* resolved lintDiff

* proper value for examples and removed value from PECollections

* resolved comments

* spell check resolved

* removing volumeCreateParameter

* [Hub Generated] Publish private branch 'InbalZim-storagemover-Microsoft.StorageMover-RPSaaSMaster-2023-07-01-preview' (Azure#24390)

* add or modify files

* Updated `credentials` models according to PR Azure#24318 + reverted unwanted changes to `readme.md`

* Removed URI format from SMB credentials to support it receiving empty string in order to clean-up their value

* Removed extra hierarchy of `AzureStorageFileShareEndpointBaseProperties`

* improve NR Examples (Azure#24636)

* improve NR Examples

* addressing AutoRun Errors

* Fixing Prettier Issue

* Adding NextLink in Max Examples

* Formatting Azure Resource Id

* Updating Format of azure subscriptionIds

* update code owner (Azure#24754)

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

* [TypeSpecValidation] Refactor package.json (Azure#24756)

- Improves upon Azure#24745
- Creates eng/tools/package.json for all EngSys tools
- Moves "postinstall" to eng/tools/TypeSpecValidation/package.json
  - Technically incorrect if the package were ever to be published to a registry
  - In practice, the best way I have found so far to use source-based tools in a TypeScript repo

* Add resize APIs

* workflow-bot comments: update breaking changes alternative C to point to alternative B (Azure#24770)

* Add properties for os patching (Azure#24775)

Co-authored-by: Chris Jiang <chrjia@microsoft.com>

* [Communication] Job Router Public Preview v2022-07-18 (Azure#23804)

* Updated JR swagger with maxNumberOfJobs

* job scheduling swagger changes

* Enforce DistributionMode.kind to be read-only

* retry with removing Required tag from abstract property for DistributionMode

* WorkerState stopped showing up in generated swagger

* Add reofferTimeUtc to decline offer API

* Prettier

* Prettier

* rename WorkerState to RouterWorkerState

* more fixes in polymorphic types

* Rename decline offer request

* prettier fix

* add example for scheduled job

* cpsell fix

* fix response schema validation error

* address review feedback item round 1

* SDK review changes

* More API changes

* Update distribution mode required properties

* Renamings

* job matching mode added

* prettier fixes

* fix examples refs

* update ref examples

* update swagger spec

* fix enum mismatch

* change operator to labelOperator in classification policy get and update ops example

* Update specification/communication/data-plane/JobRouter/preview/2022-07-18-preview/communicationservicejobrouter.json

Co-authored-by: Liangying.Wei <lianwei@microsoft.com>

* hide redundant communicationerror and communicationerrorresponse during codegen

* revert commit

* fix typo

* test whether removing kind from request works

* revert removing kind from request

* make kind read-only

* run prettier

* try adding properties to empty classes

---------

Co-authored-by: Rajarshi Sarkar 🦄 <rsarkar@microsoft.com>
Co-authored-by: Rajarshi Sarkar <73562869+sarkar-rajarshi@users.noreply.github.com>
Co-authored-by: Liangying.Wei <lianwei@microsoft.com>

* [OpenAI] Rename properties for Java (Azure#24596)

* renames

* more renames

* testing on the deploymentOrModelName

* revert for no breaking changes

* [TypeSpec] Upgrade to 0.46.0 (Azure#24776)

* Release quota on stop (Azure#24778)

* Release quota on stop

* add ReleaseQuotaOnStop to computeinstance properties

* update

* rm

* [OpenAI] Update generated autorest (Azure#24788)

- Continuation of Azure#24596

* Dynatrace.Observability merge to public repo (Azure#24101)

* Initial Commit

* Updating version in all files

* Removed version from readme

* removing version which are not available from readme

* Resolving PR comments (Azure#24205)

* Features/users/abhargava/merge to public repo (Azure#24230)

* Resolving PR comments

* Features/users/abhargava/merge to public repo (Azure#24233)

* Resolving PR comments

* Responding to the comment in PR review

* Fixed typo

* Features/users/abhargava/merge to public repo (Azure#24253)

* Resolving PR comments

* Responding to the comment in PR review

* Fixed typo

* Added a suppression for Avacado issue

* Adding the required field

* Updating suppression reason

* Updating path for suppression

* Adding suppression for deprecated API

* suppression

* suppress

* Update specification/dynatrace/resource-manager/readme.md

Co-authored-by: Yuchao Yan <yuchaoyan@microsoft.com>

* updating path in suppression

* updating suppression

* updating suppression

* Update specification/dynatrace/resource-manager/readme.md: WIP: fixing suppressions

Iteratively work on fixing suppressions

* Update readme.md: update suppressions

* Update readme.md: update suppressions

* Update readme.md: remove Avocado suppressions

---------

Co-authored-by: kanupriyasinghh <113429657+kanupriyasinghh@users.noreply.github.com>
Co-authored-by: Yuchao Yan <yuchaoyan@microsoft.com>
Co-authored-by: Konrad Jamrozik <kojamroz@microsoft.com>

* Double Header Fix (Azure#24760)

* [OpenAI.Inference] Adding content filter support (Azure#24652)

* first-pass adding annotation

* FilterResult definitions

* move Filter definitions to common

* cleaning up naming and imports

* adding version headers

* added descriptions to objects

* correct self_harm JSON projection

* Correct to "prompt_annotations"

* "prompt_annotations" for chat, too

* Update specification/cognitiveservices/OpenAI.Inference/models/completions.common.tsp

Co-authored-by: Shawn Fang <45607042+mssfang@users.noreply.github.com>

* Add per-choice content_filter_results to /completions

* tsp compile after merge

* recompile with 0.46.0 after today's update

---------

Co-authored-by: Travis Wilson <35748617+trrwilson@users.noreply.github.com>
Co-authored-by: Shawn Fang <45607042+mssfang@users.noreply.github.com>

* Update OpenAI PR assignment (Azure#24794)

* Update OpenAI PR assignment

* Update pull_request_assignment.yml

* [typespec-ci] Automatically detect spec folders to validate (Azure#24629)

* [fist] mgmt, update service name (Azure#24781)

* [typespec-pr] Add pipeline (Azure#24802)

* [typespec-ci] Remove path wildcard (Azure#24804)

* Update engsys CODEOWNERS (Azure#24808)

* Align optionality of content filter categories (Azure#24819)

* Add spec ARM PR review workflow diagram to ARM PR description template. (Azure#24823)

* Add spec PR review workflow diagram to ARM PR description template.

* Update control_plane_template.md: fix link to diagram (Azure#24828)

* Added generator config for OpenAI `Functions` for the Java SDK (Azure#24765)

* Remove repeatability support for token revocation endpoint (Azure#24589)

* Update clientTYpe (Azure#24503)

* [Hub Generated] Publish private branch 'dev-maintenance-Microsoft.Maintenance-2023-04-01' (Azure#24048)

* Revert "Revert "[Hub Generated] Publish private branch 'dev-maintenance-Microsoft.Maintenance-2023-04-01' (Azure#23832)" (Azure#23923)"

This reverts commit e6c0e188a74d051a3a44728ce058e85447553392.

* Removed 202 and Async supression.

* Update documentation.

* Updated documentation

---------

Co-authored-by: Kalpesh Chavan <kachavan@microsoft.com>

* [package-lock.json] Add names to local dependencies (Azure#24846)

- Command "npm update" removes these names, but "npm install" adds them
- It's probably better to keep the names, since users are more likely to run "npm install"

* Update ci-fix.md: add API Doc Preview TSG (Azure#24843)

* Update ci-fix.md: add API Doc Preview TSG

* Remove unsupported SQL Pool Rename/move operation (Azure#24517)

* Add enableOSPatching and address comments (Azure#24849)

* Updated text for property isSoftDeleteFeatureStateEditable (Azure#24713)

* Updating folder structure for Microsoft.Migrate (Azure#24550)

* folders restructure and update readme

* revert removed offazure in readme

* Removing readonly flag from top level object (Azure#24848)

* [ACS JobRouter] Add misssing descriptions (Azure#24842)

* Updated JR swagger with maxNumberOfJobs

* sync with upstream main

* add descriptions

* prettier fix

* add more missing descriptions

* add more description fixes

---------

Co-authored-by: williamzhao87 <williamzhao87@gmail.com>

* a couple of representation tweaks for codegen (Azure#24847)

* Removed pricing not relevant to CI

* Added Resizing state

* Change targetVMSize name

* Revert "Merge branch 'main' of https://github.com/Azure/azure-rest-api-specs into teom-hobovm08-01-preview"

This reverts commit 47adff637482e53956bcde7a4331f0638a1ddfbc, reversing
changes made to 4b9165da959a09109ecf96e7e70a940ec3989732.

* Resolve comments for os patching (Azure#24872)

* Add properties for os patching

* resolve comments

* remove autorestartafterupdates

* update description

* rename property

---------

Co-authored-by: Chris Jiang <chrjia@microsoft.com>

* Rename osPatchingStatus to upper case (Azure#24954)

* Add properties for os patching

* resolve comments

* remove autorestartafterupdates

* update description

* rename property

* Change property osPatchingStatus to upper case

* rename osPatchingStatus to upper case

---------

Co-authored-by: Chris Jiang <chrjia@microsoft.com>

* Fix some minor issues

* Fix comments

* Minor changes

* Fix more builds

* 200 and nextLink

* Remove nextlink

* Try 204 not 200

* Change GET call to POST

* Remove 204

* Add 200 response

* Change example state

* Add enum for patch status (Azure#25208)

* Add properties for os patching

* resolve comments

* remove autorestartafterupdates

* update description

* rename property

* Change property osPatchingStatus to upper case

* rename osPatchingStatus to upper case

* add enum for patch status

* add enum for patch status

---------

Co-authored-by: Chris Jiang <chrjia@microsoft.com>

* LRO does not return 200

* Format readme

* Format readme

* Format readme

* Fix readme

* Rename enum for patchStatus (Azure#25257)

* Add properties for os patching

* resolve comments

* remove autorestartafterupdates

* update description

* rename property

* Change property osPatchingStatus to upper case

* rename osPatchingStatus to upper case

* add enum for patch status

* add enum for patch status

* rename enum's name

* rename enum

---------

Co-authored-by: Chris Jiang <chrjia@microsoft.com>

---------

Co-authored-by: Jayati Tehri <72947097+jayati-tehri@users.noreply.github.com>
Co-authored-by: PreetPRG <31791038+PreetPRG@users.noreply.github.com>
Co-authored-by: InbalZim <48387592+InbalZim@users.noreply.github.com>
Co-authored-by: VIPRAY JAIN <118152689+vipray-ms@users.noreply.github.com>
Co-authored-by: Dapeng Zhang <dapzhang@microsoft.com>
Co-authored-by: Yuchao Yan <yuchaoyan@microsoft.com>
Co-authored-by: Mike Harder <mharder@microsoft.com>
Co-authored-by: Teo Magnino Chaban <teom@microsoft.com>
Co-authored-by: Konrad Jamrozik <kojamroz@microsoft.com>
Co-authored-by: Chris Jiang <hust.crystal@gmail.com>
Co-authored-by: Chris Jiang <chrjia@microsoft.com>
Co-authored-by: williamzhao87 <williamzhao87@users.noreply.github.com>
Co-authored-by: Rajarshi Sarkar 🦄 <rsarkar@microsoft.com>
Co-authored-by: Rajarshi Sarkar <73562869+sarkar-rajarshi@users.noreply.github.com>
Co-authored-by: Liangying.Wei <lianwei@microsoft.com>
Co-authored-by: Shawn Fang <45607042+mssfang@users.noreply.github.com>
Co-authored-by: mqwang <mewan@microsoft.com>
Co-authored-by: abhargavams <91880511+abhargavams@users.noreply.github.com>
Co-authored-by: kanupriyasinghh <113429657+kanupriyasinghh@users.noreply.github.com>
Co-authored-by: JainRah <108508612+JainRah@users.noreply.github.com>
Co-authored-by: Brandon Miller <42854725+brandom-msft@users.noreply.github.com>
Co-authored-by: Travis Wilson <35748617+trrwilson@users.noreply.github.com>
Co-authored-by: Laurent Mazuel <laurent.mazuel@gmail.com>
Co-authored-by: Albert Cheng <38804567+ckairen@users.noreply.github.com>
Co-authored-by: Weidong Xu <weidxu@microsoft.com>
Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>
Co-authored-by: Jose Alvarez <jpalvarezl@users.noreply.github.com>
Co-authored-by: Maxim Rytych <99686729+maximrytych-ms@users.noreply.github.com>
Co-authored-by: Daniel Hu <dhu5432@gmail.com>
Co-authored-by: Kalpesh Chavan <18593210+KalpeshChavan12@users.noreply.github.com>
Co-authored-by: Kalpesh Chavan <kachavan@microsoft.com>
Co-authored-by: kashyap-kunal <72463758+kashyap-kunal@users.noreply.github.com>
Co-authored-by: ishanjindalms <96572678+ishanjindalms@users.noreply.github.com>
Co-authored-by: athulvijayanmsft <134380821+athulvijayanmsft@users.noreply.github.com>
Co-authored-by: Thomas Ricci <thricci@microsoft.com>
Co-authored-by: williamzhao87 <williamzhao87@gmail.com>

* Adding new query param on list job api (Azure#25375)

Co-authored-by: Shail Paragbhai Shah <shaisha@microsoft.com>

* Remove list materialization jobs api (Azure#25372)

* Update mfe.json

* prettify swagger

* Remove example

* Update readme.md

* Update readme.md

* Add backfill api contract changes

* Fixing json

* Add property bag

* Modifying example

---------

Co-authored-by: Shail Paragbhai Shah <shaisha@microsoft.com>

* sweep over pipeline component (Azure#25616)

* Add SSO and RootAccess (Azure#25754)

Co-authored-by: Teo Magnino Chaban <teom@microsoft.com>

* add EnvironmentVariables in sparkjob (Azure#25814)

* Add model monitor 2023-08-01-preview changes (Azure#25785)

* Add model monitor 2023-08-01-preview changes

* update

* run prettier

* update comments

* add

* Add WS Vnet properties for Serverless GA (Azure#25780)

* add serverless ws vnet properties

* add to workspace update properties

* update format

* update description

---------

Co-authored-by: Aaheli Chattopadhyay <aahelic@microsoft.com>

* Resource to ProxyResource for preview version (Azure#25906)

Co-authored-by: Shail Paragbhai Shah <shaisha@microsoft.com>

* August-2023-preview fix circular reference (Azure#25870)

* TriggerType->ComputeTriggerType

* RecurrenceFrequency->ComputeRecurrenceFrequency

* RecurrenceSchedule->ComputeRecurrenceSchedule

---------

Co-authored-by: Kayla Ames <kaseager@microsoft.com>

* Update ServerlessEndpoints design (Azure#25593)

* first draft redesign of ServerlessEndpoints

* add getStatus.json

* update examples

* add LRO location header to example

* add CapacityReservationGroups API

* spellcheck fix

* example fix

* capacity reservation groups should be under resource groups

* fix examples

* inferenceUri -> uri

* CapacityReservation -> ServerlessEndpointCapacityReservation

* update description

* remove ExcessCapacityReservation concept

* remove parentGroupId concept

* rename /status api to /getStatus

* label metrics as readOnly

* lintdiff GET fix

* more fixes

* add listBySubscription

* add/fix examples

* add suppression for lint error (Azure#25941)

* minor fixes (Azure#25940)

* Update 2023-08-01-preview swagger for workspaceRP (Azure#25532)

* Update swagger

* Bug fix

* update

* Update testconnection and example

* Fix format

* update custom words and example

* Update missing custom words

* reflect comment remove LRO opetions

* make metadata a string dictionary

* reflect comment

* Revert "reflect comment"

This reverts commit 9b85252250fd442dd891b27509f5d2e315d8aa2a.

* Update with managedNetwork change included

* Update managed network schema

* revert metadata change

* remove the RBAC properties related with shared connection

* Update readme

* Update suppression  reason

* Updated preview API to add Kernel Config (Azure#25361)

* Updated preview API to add Kernel Config and LRO Headers

* Fixing formatting issue

* Updated as per comments

* Updated as per comments

* Reverting changes

* Reverted header changes

* Reverting change

* Reverting example

* Added version parameter and removed addition properties as per guidelines

---------

Co-authored-by: Srivatsa Sinha <srsinha@microsoft.com>

* Thtodoro/serverless endpoints 2023 08 01 preview fix (Azure#25993)

* Capacity Reservation Groups is not an async resource, and thus does not have 202 as a response type

* PATCH response must have same resource as GET/PUT APIs

* add missing description

* Adding Inference Pools, Groups and Endpoints recreated for Azure/azure-rest-api-specs#25783 for rebased issue (Azure#25819)

* Adding Inference Pools, Groups and Endpoints

* PR comments

* remove EventLog and change data

* remove EventLog and change data

* moving endpoint as sibling to group

* Moving back to the tracked resources

* force change

* fix the missing field

---------

Co-authored-by: Raushan Kumar <raushank@microsoft.com>

* Make suppression more specific (Azure#26031)

Co-authored-by: Teo Magnino Chaban <teom@microsoft.com>

* add serverless compute settings (Azure#26007)

Co-authored-by: Aaheli Chattopadhyay <aahelic@microsoft.com>

---------

Co-authored-by: Kayla Ames <kaseager@microsoft.com>
Co-authored-by: Anubha Jain <41411445+Anubha98@users.noreply.github.com>
Co-authored-by: Anubha98 <anubhajain@microsoft.com>
Co-authored-by: teochaban <teochaban@hotmail.com>
Co-authored-by: Jayati Tehri <72947097+jayati-tehri@users.noreply.github.com>
Co-authored-by: PreetPRG <31791038+PreetPRG@users.noreply.github.com>
Co-authored-by: InbalZim <48387592+InbalZim@users.noreply.github.com>
Co-authored-by: VIPRAY JAIN <118152689+vipray-ms@users.noreply.github.com>
Co-authored-by: Dapeng Zhang <dapzhang@microsoft.com>
Co-authored-by: Yuchao Yan <yuchaoyan@microsoft.com>
Co-authored-by: Mike Harder <mharder@microsoft.com>
Co-authored-by: Teo Magnino Chaban <teom@microsoft.com>
Co-authored-by: Konrad Jamrozik <kojamroz@microsoft.com>
Co-authored-by: Chris Jiang <hust.crystal@gmail.com>
Co-authored-by: Chris Jiang <chrjia@microsoft.com>
Co-authored-by: williamzhao87 <williamzhao87@users.noreply.github.com>
Co-authored-by: Rajarshi Sarkar 🦄 <rsarkar@microsoft.com>
Co-authored-by: Rajarshi Sarkar <73562869+sarkar-rajarshi@users.noreply.github.com>
Co-authored-by: Liangying.Wei <lianwei@microsoft.com>
Co-authored-by: Shawn Fang <45607042+mssfang@users.noreply.github.com>
Co-authored-by: mqwang <mewan@microsoft.com>
Co-authored-by: abhargavams <91880511+abhargavams@users.noreply.github.com>
Co-authored-by: kanupriyasinghh <113429657+kanupriyasinghh@users.noreply.github.com>
Co-authored-by: JainRah <108508612+JainRah@users.noreply.github.com>
Co-authored-by: Brandon Miller <42854725+brandom-msft@users.noreply.github.com>
Co-authored-by: Travis Wilson <35748617+trrwilson@users.noreply.github.com>
Co-authored-by: Laurent Mazuel <laurent.mazuel@gmail.com>
Co-authored-by: Albert Cheng <38804567+ckairen@users.noreply.github.com>
Co-authored-by: Weidong Xu <weidxu@microsoft.com>
Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>
Co-authored-by: Jose Alvarez <jpalvarezl@users.noreply.github.com>
Co-authored-by: Maxim Rytych <99686729+maximrytych-ms@users.noreply.github.com>
Co-authored-by: Daniel Hu <dhu5432@gmail.com>
Co-authored-by: Kalpesh Chavan <18593210+KalpeshChavan12@users.noreply.github.com>
Co-authored-by: Kalpesh Chavan <kachavan@microsoft.com>
Co-authored-by: kashyap-kunal <72463758+kashyap-kunal@users.noreply.github.com>
Co-authored-by: ishanjindalms <96572678+ishanjindalms@users.noreply.github.com>
Co-authored-by: athulvijayanmsft <134380821+athulvijayanmsft@users.noreply.github.com>
Co-authored-by: Thomas Ricci <thricci@microsoft.com>
Co-authored-by: williamzhao87 <williamzhao87@gmail.com>
Co-authored-by: shail2208 <59747407+shail2208@users.noreply.github.com>
Co-authored-by: Shail Paragbhai Shah <shaisha@microsoft.com>
Co-authored-by: ghsutirtha <87542976+ghsutirtha@users.noreply.github.com>
Co-authored-by: ycheng35xo <90874573+ycheng35xo@users.noreply.github.com>
Co-authored-by: Mathieu St-Louis <81435026+mastloui-msft@users.noreply.github.com>
Co-authored-by: ac923 <aahelic@yahoo.com>
Co-authored-by: Aaheli Chattopadhyay <aahelic@microsoft.com>
Co-authored-by: Teddy Todorov <thtodoro@microsoft.com>
Co-authored-by: ZhidaLiu <zhili@microsoft.com>
Co-authored-by: srivatsasinha <102133347+srivatsasinha@users.noreply.github.com>
Co-authored-by: Srivatsa Sinha <srsinha@microsoft.com>
Co-authored-by: Raushan Kumar <44377286+raushan2016@users.noreply.github.com>
Co-authored-by: Raushan Kumar <raushank@microsoft.com>
  • Loading branch information
Show file tree
Hide file tree
Showing 350 changed files with 58,629 additions and 14,560 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"commit": "c7daa3d35baaaabece0dbc6f731eadbe426973b9",
"commit": "bcd08f63267bc5660a8d97a8ef5de7061cac2a4c",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest": "3.9.2",
"autorest": "3.9.7",
"use": [
"@autorest/python@6.4.12",
"@autorest/modelerfour@4.24.3"
"@autorest/python@6.7.1",
"@autorest/modelerfour@4.26.2"
],
"autorest_command": "autorest specification/machinelearningservices/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.4.12 --use=@autorest/modelerfour@4.24.3 --version=3.9.2 --version-tolerant=False",
"autorest_command": "autorest specification/machinelearningservices/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --use=@autorest/python@6.7.1 --use=@autorest/modelerfour@4.26.2 --version=3.9.7 --version-tolerant=False",
"readme": "specification/machinelearningservices/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ class MachineLearningServicesMgmtClientConfiguration(Configuration): # pylint:
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The ID of the target subscription. Required.
:type subscription_id: str
:keyword api_version: Api Version. Default value is "2023-04-01". Note that overriding this
default value may result in unsupported behavior.
:keyword api_version: Api Version. Default value is "2023-08-01-preview". Note that overriding
this default value may result in unsupported behavior.
:paramtype api_version: str
"""

def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
super(MachineLearningServicesMgmtClientConfiguration, self).__init__(**kwargs)
api_version: str = kwargs.pop("api_version", "2023-04-01")
api_version: str = kwargs.pop("api_version", "2023-08-01-preview")

if credential is None:
raise ValueError("Parameter 'credential' must not be None.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
from .operations import (
BatchDeploymentsOperations,
BatchEndpointsOperations,
CapacityReservationGroupsOperations,
CodeContainersOperations,
CodeVersionsOperations,
ComponentContainersOperations,
Expand All @@ -28,7 +29,18 @@
DatastoresOperations,
EnvironmentContainersOperations,
EnvironmentVersionsOperations,
FeaturesOperations,
FeaturesetContainersOperations,
FeaturesetVersionsOperations,
FeaturestoreEntityContainersOperations,
FeaturestoreEntityVersionsOperations,
InferenceEndpointsOperations,
InferenceGroupsOperations,
InferencePoolsOperations,
JobsOperations,
LabelingJobsOperations,
ManagedNetworkProvisionsOperations,
ManagedNetworkSettingsRuleOperations,
ModelContainersOperations,
ModelVersionsOperations,
OnlineDeploymentsOperations,
Expand All @@ -49,6 +61,7 @@
RegistryModelContainersOperations,
RegistryModelVersionsOperations,
SchedulesOperations,
ServerlessEndpointsOperations,
UsagesOperations,
VirtualMachineSizesOperations,
WorkspaceConnectionsOperations,
Expand All @@ -64,10 +77,6 @@
class MachineLearningServicesMgmtClient: # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes
"""These APIs allow end users to operate on Azure Machine Learning Workspace resources.
:ivar operations: Operations operations
:vartype operations: azure.mgmt.machinelearningservices.operations.Operations
:ivar workspaces: WorkspacesOperations operations
:vartype workspaces: azure.mgmt.machinelearningservices.operations.WorkspacesOperations
:ivar usages: UsagesOperations operations
:vartype usages: azure.mgmt.machinelearningservices.operations.UsagesOperations
:ivar virtual_machine_sizes: VirtualMachineSizesOperations operations
Expand All @@ -77,15 +86,9 @@ class MachineLearningServicesMgmtClient: # pylint: disable=client-accepts-api-v
:vartype quotas: azure.mgmt.machinelearningservices.operations.QuotasOperations
:ivar compute: ComputeOperations operations
:vartype compute: azure.mgmt.machinelearningservices.operations.ComputeOperations
:ivar private_endpoint_connections: PrivateEndpointConnectionsOperations operations
:vartype private_endpoint_connections:
azure.mgmt.machinelearningservices.operations.PrivateEndpointConnectionsOperations
:ivar private_link_resources: PrivateLinkResourcesOperations operations
:vartype private_link_resources:
azure.mgmt.machinelearningservices.operations.PrivateLinkResourcesOperations
:ivar workspace_connections: WorkspaceConnectionsOperations operations
:vartype workspace_connections:
azure.mgmt.machinelearningservices.operations.WorkspaceConnectionsOperations
:ivar capacity_reservation_groups: CapacityReservationGroupsOperations operations
:vartype capacity_reservation_groups:
azure.mgmt.machinelearningservices.operations.CapacityReservationGroupsOperations
:ivar registry_code_containers: RegistryCodeContainersOperations operations
:vartype registry_code_containers:
azure.mgmt.machinelearningservices.operations.RegistryCodeContainersOperations
Expand Down Expand Up @@ -146,8 +149,33 @@ class MachineLearningServicesMgmtClient: # pylint: disable=client-accepts-api-v
:ivar environment_versions: EnvironmentVersionsOperations operations
:vartype environment_versions:
azure.mgmt.machinelearningservices.operations.EnvironmentVersionsOperations
:ivar featureset_containers: FeaturesetContainersOperations operations
:vartype featureset_containers:
azure.mgmt.machinelearningservices.operations.FeaturesetContainersOperations
:ivar features: FeaturesOperations operations
:vartype features: azure.mgmt.machinelearningservices.operations.FeaturesOperations
:ivar featureset_versions: FeaturesetVersionsOperations operations
:vartype featureset_versions:
azure.mgmt.machinelearningservices.operations.FeaturesetVersionsOperations
:ivar featurestore_entity_containers: FeaturestoreEntityContainersOperations operations
:vartype featurestore_entity_containers:
azure.mgmt.machinelearningservices.operations.FeaturestoreEntityContainersOperations
:ivar featurestore_entity_versions: FeaturestoreEntityVersionsOperations operations
:vartype featurestore_entity_versions:
azure.mgmt.machinelearningservices.operations.FeaturestoreEntityVersionsOperations
:ivar inference_pools: InferencePoolsOperations operations
:vartype inference_pools:
azure.mgmt.machinelearningservices.operations.InferencePoolsOperations
:ivar inference_endpoints: InferenceEndpointsOperations operations
:vartype inference_endpoints:
azure.mgmt.machinelearningservices.operations.InferenceEndpointsOperations
:ivar inference_groups: InferenceGroupsOperations operations
:vartype inference_groups:
azure.mgmt.machinelearningservices.operations.InferenceGroupsOperations
:ivar jobs: JobsOperations operations
:vartype jobs: azure.mgmt.machinelearningservices.operations.JobsOperations
:ivar labeling_jobs: LabelingJobsOperations operations
:vartype labeling_jobs: azure.mgmt.machinelearningservices.operations.LabelingJobsOperations
:ivar model_containers: ModelContainersOperations operations
:vartype model_containers:
azure.mgmt.machinelearningservices.operations.ModelContainersOperations
Expand All @@ -161,19 +189,41 @@ class MachineLearningServicesMgmtClient: # pylint: disable=client-accepts-api-v
azure.mgmt.machinelearningservices.operations.OnlineDeploymentsOperations
:ivar schedules: SchedulesOperations operations
:vartype schedules: azure.mgmt.machinelearningservices.operations.SchedulesOperations
:ivar serverless_endpoints: ServerlessEndpointsOperations operations
:vartype serverless_endpoints:
azure.mgmt.machinelearningservices.operations.ServerlessEndpointsOperations
:ivar registries: RegistriesOperations operations
:vartype registries: azure.mgmt.machinelearningservices.operations.RegistriesOperations
:ivar workspace_features: WorkspaceFeaturesOperations operations
:vartype workspace_features:
azure.mgmt.machinelearningservices.operations.WorkspaceFeaturesOperations
:ivar operations: Operations operations
:vartype operations: azure.mgmt.machinelearningservices.operations.Operations
:ivar workspaces: WorkspacesOperations operations
:vartype workspaces: azure.mgmt.machinelearningservices.operations.WorkspacesOperations
:ivar workspace_connections: WorkspaceConnectionsOperations operations
:vartype workspace_connections:
azure.mgmt.machinelearningservices.operations.WorkspaceConnectionsOperations
:ivar managed_network_settings_rule: ManagedNetworkSettingsRuleOperations operations
:vartype managed_network_settings_rule:
azure.mgmt.machinelearningservices.operations.ManagedNetworkSettingsRuleOperations
:ivar private_endpoint_connections: PrivateEndpointConnectionsOperations operations
:vartype private_endpoint_connections:
azure.mgmt.machinelearningservices.operations.PrivateEndpointConnectionsOperations
:ivar private_link_resources: PrivateLinkResourcesOperations operations
:vartype private_link_resources:
azure.mgmt.machinelearningservices.operations.PrivateLinkResourcesOperations
:ivar managed_network_provisions: ManagedNetworkProvisionsOperations operations
:vartype managed_network_provisions:
azure.mgmt.machinelearningservices.operations.ManagedNetworkProvisionsOperations
:param credential: Credential needed for the client to connect to Azure. Required.
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The ID of the target subscription. Required.
:type subscription_id: str
:param base_url: Service URL. Default value is "https://management.azure.com".
:type base_url: str
:keyword api_version: Api Version. Default value is "2023-04-01". Note that overriding this
default value may result in unsupported behavior.
:keyword api_version: Api Version. Default value is "2023-08-01-preview". Note that overriding
this default value may result in unsupported behavior.
:paramtype api_version: str
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
Retry-After header is present.
Expand All @@ -195,21 +245,13 @@ def __init__(
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)
self._serialize.client_side_validation = False
self.operations = Operations(self._client, self._config, self._serialize, self._deserialize)
self.workspaces = WorkspacesOperations(self._client, self._config, self._serialize, self._deserialize)
self.usages = UsagesOperations(self._client, self._config, self._serialize, self._deserialize)
self.virtual_machine_sizes = VirtualMachineSizesOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.quotas = QuotasOperations(self._client, self._config, self._serialize, self._deserialize)
self.compute = ComputeOperations(self._client, self._config, self._serialize, self._deserialize)
self.private_endpoint_connections = PrivateEndpointConnectionsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.private_link_resources = PrivateLinkResourcesOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.workspace_connections = WorkspaceConnectionsOperations(
self.capacity_reservation_groups = CapacityReservationGroupsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.registry_code_containers = RegistryCodeContainersOperations(
Expand Down Expand Up @@ -263,7 +305,28 @@ def __init__(
self.environment_versions = EnvironmentVersionsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.featureset_containers = FeaturesetContainersOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.features = FeaturesOperations(self._client, self._config, self._serialize, self._deserialize)
self.featureset_versions = FeaturesetVersionsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.featurestore_entity_containers = FeaturestoreEntityContainersOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.featurestore_entity_versions = FeaturestoreEntityVersionsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.inference_pools = InferencePoolsOperations(self._client, self._config, self._serialize, self._deserialize)
self.inference_endpoints = InferenceEndpointsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.inference_groups = InferenceGroupsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.jobs = JobsOperations(self._client, self._config, self._serialize, self._deserialize)
self.labeling_jobs = LabelingJobsOperations(self._client, self._config, self._serialize, self._deserialize)
self.model_containers = ModelContainersOperations(
self._client, self._config, self._serialize, self._deserialize
)
Expand All @@ -275,10 +338,30 @@ def __init__(
self._client, self._config, self._serialize, self._deserialize
)
self.schedules = SchedulesOperations(self._client, self._config, self._serialize, self._deserialize)
self.serverless_endpoints = ServerlessEndpointsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.registries = RegistriesOperations(self._client, self._config, self._serialize, self._deserialize)
self.workspace_features = WorkspaceFeaturesOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.operations = Operations(self._client, self._config, self._serialize, self._deserialize)
self.workspaces = WorkspacesOperations(self._client, self._config, self._serialize, self._deserialize)
self.workspace_connections = WorkspaceConnectionsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.managed_network_settings_rule = ManagedNetworkSettingsRuleOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.private_endpoint_connections = PrivateEndpointConnectionsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.private_link_resources = PrivateLinkResourcesOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.managed_network_provisions = ManagedNetworkProvisionsOperations(
self._client, self._config, self._serialize, self._deserialize
)

def _send_request(self, request: HttpRequest, **kwargs: Any) -> HttpResponse:
"""Runs the network request through the client's chained policies.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -662,8 +662,9 @@ def _serialize(self, target_obj, data_type=None, **kwargs):
_serialized.update(_new_attr) # type: ignore
_new_attr = _new_attr[k] # type: ignore
_serialized = _serialized[k]
except ValueError:
continue
except ValueError as err:
if isinstance(err, SerializationError):
raise

except (AttributeError, KeyError, TypeError) as err:
msg = "Attribute {} in object {} cannot be serialized.\n{}".format(attr_name, class_name, str(target_obj))
Expand Down Expand Up @@ -741,6 +742,8 @@ def query(self, name, data, data_type, **kwargs):
:param data: The data to be serialized.
:param str data_type: The type to be serialized from.
:keyword bool skip_quote: Whether to skip quote the serialized result.
Defaults to False.
:rtype: str
:raises: TypeError if serialization fails.
:raises: ValueError if data is None
Expand All @@ -749,10 +752,8 @@ def query(self, name, data, data_type, **kwargs):
# Treat the list aside, since we don't want to encode the div separator
if data_type.startswith("["):
internal_data_type = data_type[1:-1]
data = [self.serialize_data(d, internal_data_type, **kwargs) if d is not None else "" for d in data]
if not kwargs.get("skip_quote", False):
data = [quote(str(d), safe="") for d in data]
return str(self.serialize_iter(data, internal_data_type, **kwargs))
do_quote = not kwargs.get("skip_quote", False)
return str(self.serialize_iter(data, internal_data_type, do_quote=do_quote, **kwargs))

# Not a list, regular serialization
output = self.serialize_data(data, data_type, **kwargs)
Expand Down Expand Up @@ -891,6 +892,8 @@ def serialize_iter(self, data, iter_type, div=None, **kwargs):
not be None or empty.
:param str div: If set, this str will be used to combine the elements
in the iterable into a combined string. Default is 'None'.
:keyword bool do_quote: Whether to quote the serialized result of each iterable element.
Defaults to False.
:rtype: list, str
"""
if isinstance(data, str):
Expand All @@ -903,9 +906,14 @@ def serialize_iter(self, data, iter_type, div=None, **kwargs):
for d in data:
try:
serialized.append(self.serialize_data(d, iter_type, **kwargs))
except ValueError:
except ValueError as err:
if isinstance(err, SerializationError):
raise
serialized.append(None)

if kwargs.get("do_quote", False):
serialized = ["" if s is None else quote(str(s), safe="") for s in serialized]

if div:
serialized = ["" if s is None else str(s) for s in serialized]
serialized = div.join(serialized)
Expand Down Expand Up @@ -950,7 +958,9 @@ def serialize_dict(self, attr, dict_type, **kwargs):
for key, value in attr.items():
try:
serialized[self.serialize_unicode(key)] = self.serialize_data(value, dict_type, **kwargs)
except ValueError:
except ValueError as err:
if isinstance(err, SerializationError):
raise
serialized[self.serialize_unicode(key)] = None

if "xml" in serialization_ctxt:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

from typing import List, cast

from azure.core.pipeline.transport import HttpRequest


Expand All @@ -16,15 +14,3 @@ def _convert_request(request, files=None):
if files:
request.set_formdata_body(files)
return request


def _format_url_section(template, **kwargs):
components = template.split("/")
while components:
try:
return template.format(**kwargs)
except KeyError as key:
# Need the cast, as for some reasons "split" is typed as list[str | Any]
formatted_components = cast(List[str], template.split("/"))
components = [c for c in formatted_components if "{}".format(key.args[0]) not in c]
template = "/".join(components)
Loading

0 comments on commit 3652df4

Please sign in to comment.