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.
Merge branch 'master' of https://github.com/Azure/azure-sdk-for-python …
…into fix_paging_types * 'master' of https://github.com/Azure/azure-sdk-for-python: (37 commits) [translation] poller design (Azure#19041) [AutoRelease] t2-resourcemover-2021-05-21-54304(wave4) (Azure#18849) [AutoRelease] t2-logz-2021-06-02-49354 (Azure#19035) prepare pipeline (Azure#19062) [AutoRelease] t2-recoveryservicesbackup-2021-05-26-33193 (Azure#18953) Get rid of DataFeedOptions (Azure#19054) [AutoRelease] t2-batchai-2021-06-02-38609 (Azure#19036) [appconfig] new gen code (Azure#18859) [Tables] mypy (Azure#19001) fix misleading url (Azure#19044) Create py.typed (Azure#19052) add override of opentelemetry-api to 1.3.0 (Azure#19048) Prepare for June Release (Azure#19043) [Key Vault] Add API version 7.2 for keys (Azure#18586) some misc fixes. (Azure#19024) [AppConfig] pre release (Azure#19027) [ACR] prerelease (Azure#19028) Add sdk/core to triggers and pr (Azure#19023) Event grid 4.3.0 regen code (Azure#19025) Handle 6 decimal places cloud event (Azure#19019) ...
- Loading branch information
Showing
1,225 changed files
with
221,732 additions
and
94,488 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
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 was deleted.
Oops, something went wrong.
This file was deleted.
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
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
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,10 @@ | ||
steps: | ||
- pwsh: | | ||
. ./eng/common/scripts/Helpers/PSModule-Helpers.ps1 | ||
Write-Host "##vso[task.setvariable variable=CachedPSModulePath]$global:CurrentUserModulePath" | ||
displayName: Set PS Modules Cache Directory | ||
- task: Cache@2 | ||
inputs: | ||
key: 'PSModulePath | $(CacheSalt) | $(Agent.OS) | $(Build.SourcesDirectory)/eng/common/scripts/Import-AzModules.ps1' | ||
path: $(CachedPSModulePath) | ||
displayName: Cache PS Modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
function MapLanguageName($language) | ||
{ | ||
$lang = $language | ||
# Update language name to match those in API cosmos DB. Cosmos SQL is case sensitive and handling this within the query makes it slow. | ||
if($lang -eq 'javascript'){ | ||
$lang = "JavaScript" | ||
} | ||
elseif ($lang -eq "dotnet"){ | ||
$lang = "C#" | ||
} | ||
elseif ($lang -eq "java"){ | ||
$lang = "Java" | ||
} | ||
elseif ($lang -eq "python"){ | ||
$lang = "Python" | ||
} | ||
else{ | ||
$lang = $null | ||
} | ||
return $lang | ||
} | ||
|
||
function Check-ApiReviewStatus($packageName, $packageVersion, $language, $url, $apiKey) | ||
{ | ||
# Get API view URL and API Key to check status | ||
Write-Host "Checking API review status" | ||
$lang = MapLanguageName -language $language | ||
if ($lang -eq $null) { | ||
return | ||
} | ||
$headers = @{ "ApiKey" = $apiKey } | ||
$body = @{ | ||
language = $lang | ||
packageName = $packageName | ||
packageVersion = $packageVersion | ||
} | ||
|
||
try | ||
{ | ||
$response = Invoke-WebRequest $url -Method 'GET' -Headers $headers -Body $body | ||
if ($response.StatusCode -eq '200') | ||
{ | ||
Write-Host "API Review is approved for package $($packageName)" | ||
} | ||
else | ||
{ | ||
Write-Warning "API Review is not approved for package $($packageName). Release pipeline will fail if API review is not approved." | ||
Write-Host "You can check http://aka.ms/azsdk/engsys/apireview/faq for more details on API Approval." | ||
} | ||
} | ||
catch | ||
{ | ||
Write-Warning "Failed to check API review status for package $($PackageName). You can check http://aka.ms/azsdk/engsys/apireview/faq for more details on API Approval." | ||
} | ||
} |
Oops, something went wrong.