Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test1 #1

Closed
wants to merge 56 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
4e55f60
Generated from 76032c5b6d424dceb3a9b03b7df79e009eb5c183 (#5142)
AutorestCI Jun 26, 2019
870ded7
[AutoPR netapp/resource-manager] NetApp update swagger for R4.5 (#5123)
AutorestCI Jun 27, 2019
8692e50
Generated from d85ec8052ee09e19a904c8682ecd71d95a87bfda (#5159)
AutorestCI Jun 28, 2019
2ad1dc3
Generated from 4ad4ff02b733691ce683f3c3d2ca93b04aedefc6 (#5080)
AutorestCI Jun 28, 2019
38b6041
Generated from 3066b3cc9574f2eec4f7b1a379e0875e14a37f51 (#5162)
AutorestCI Jun 28, 2019
c47ceeb
Generated from a19a3cb3fe52a5019182778275744a9c3af43993 (#5163)
AutorestCI Jun 28, 2019
a706ab7
Generated from 3d52a28322664ab7059521562493398366e27ad7 (#5164)
AutorestCI Jun 28, 2019
fc40210
Generated from c3eda289dfe2b94eff37c1654a9abadf4ee3c8ad (#5131)
AutorestCI Jun 28, 2019
4577e9e
Add sdk_generation_pull_request_base and main_branch
Jul 3, 2019
ae7dd2c
[AutoPR containerregistry/resource-manager] [ACR] Support Overriding …
AutorestCI Jun 28, 2019
157e2f0
Generated from f98449d1950d58d1919373e5b5f456b6a3d45e58 (#5177)
AutorestCI Jul 2, 2019
d2056de
[AutoPR healthcareapis/resource-manager] [Hub Generated] Review reque…
AutorestCI Jul 1, 2019
c742910
Generated from e8dd45240d9e1b579ccd155e0e6c811c764eb214 (#5079)
AutorestCI Jul 1, 2019
c1d909f
[AutoPR migrateprojects/resource-manager] [Do not merge] Swagger clos…
AutorestCI Jul 1, 2019
76186b5
[AutoPR iothub/resource-manager] [Hub Generated] Review request for M…
AutorestCI Jul 1, 2019
c06193c
[AutoPR cognitiveservices/data-plane/LUIS/Runtime] Update LUIS Runtim…
AutorestCI Jul 3, 2019
08923e1
Generated from e5018e39145852f56f01cf34ba0b2d123ae43512 (#5192)
AutorestCI Jul 3, 2019
a2fb18c
Generated from beed92f79dacff0ce3d1a65d3ecf42449d17a47c (#5154)
AutorestCI Jul 3, 2019
eb713b7
[AutoPR alertsmanagement/resource-manager] Adding new resource type f…
AutorestCI Jul 9, 2019
7a466ed
Generated from c944c9a2d8a2355147c3d9031b7aeadc4f63e71e (#5201)
AutorestCI Jul 5, 2019
45953ae
[AutoPR monitor/resource-manager] BUG fix: Fixing type of MetricValue…
AutorestCI Jul 8, 2019
6b8f0ff
Generated from dd6210272b93e1b156f4779f9efe24ff3a6d7baa
AutorestCI Jun 28, 2019
1a551b8
Generated from 54b65d35ddc25f16a24d0d1710773f5bfe9be66f (#5218)
AutorestCI Jul 10, 2019
278ff8f
Generated from 631cc8ef9ba25eddb465ba207157ff92ab4fa641 (#5182)
AutorestCI Jul 11, 2019
b78c4dd
[AutoPR datamigration/resource-manager] Adding objects necessary for …
AutorestCI Jul 11, 2019
1950537
add documentation for retry policy
jhendrixMSFT Jul 11, 2019
b5629c7
add azure devops pipeline
jhendrixMSFT Jul 12, 2019
acb8940
Fixes to devops CI (#5239)
jhendrixMSFT Jul 15, 2019
32a659c
Generated from ac6f48cce33d61bd4fa062a14e49ca27359e3dc4 (#5215)
AutorestCI Jul 12, 2019
827d184
Generated from 38bec715e92c9f8bcd1b0e381042194d3261fe58 (#5248)
AutorestCI Jul 15, 2019
c0d5a17
[AutoPR securityinsights/resource-manager] Adding AWS CloudTrail to s…
AutorestCI Jul 15, 2019
c81c639
Generated from 77190f2dc72106f5ff53ae7617312f90b5b1504b (#5196)
AutorestCI Jul 16, 2019
83317bb
Generated from 7c89fec7247a2f82d656c863fb37c1d76a08a797 (#5256)
AutorestCI Jul 16, 2019
50c4524
Generated from 537e9475d4ec21dcc8ede20cd45ec73f3f20c729 (#5236)
AutorestCI Jul 16, 2019
e4e3ce6
update to latest code generator
jhendrixMSFT Jul 17, 2019
6b2d448
[AutoPR cognitiveservices/data-plane/LUIS/Authoring] Updating Authori…
AutorestCI Jul 16, 2019
a2cdd5d
[AutoPR storage/resource-manager] [Bug fix] Remove read-only constrai…
AutorestCI Jul 17, 2019
bd2cbf4
[AutoPR cosmos-db/resource-manager] Fixing incorrectly formatted Cosm…
AutorestCI Jul 17, 2019
afaf7c1
update from latest swaggers and generator (#5280)
jhendrixMSFT Jul 17, 2019
f29a5f5
Generated from 46c41c8144620cf4589763fc14b57b3eef555edf (#5282)
AutorestCI Jul 17, 2019
91fa856
Generated from 05289ebc4b2be9d8be80218d6bfab65a9848e77a (#5285)
AutorestCI Jul 18, 2019
2bbafa0
Generated from 878390cbb0806c9194cc9ceaed923284d2d8f2ac (#5288)
AutorestCI Jul 18, 2019
cbc8549
Generated from b1b2d42672f41da7deb0eda1938e589a9149dc2e (#5307)
AutorestCI Jul 19, 2019
20453a6
Generated from c2786532a6bf80ceb9cddda5e2c8b8abc09d6b30 (#5305)
AutorestCI Jul 19, 2019
bd80afa
Generated from 3b992f9396f9c0bc7e34b11696efcffafa92575a (#5297)
AutorestCI Jul 18, 2019
09dd81c
Generated from 2f94b8cf4da36f6fe98397e664c08e3ba33bbc69 (#5299)
AutorestCI Jul 19, 2019
35d69b9
Generated from 5a1381b69f4475b40194c268dc0757b16afe14d9
AutorestCI Jul 18, 2019
209751c
Generated from a23d0bdd515690bb563e778441c8428272e222df
AutorestCI Jul 18, 2019
15840fd
[AutoPR datafactory/resource-manager] [DataFactory]Add AzurePostgreSq…
AutorestCI Jul 19, 2019
23a44c3
Merge pull request #5332 from Azure/restapi_auto_compute/resource-man…
AutorestCI Jul 25, 2019
094076c
Generated from e960466f597159f6f1068890076fd7af6ebe5276 (#5323)
AutorestCI Jul 23, 2019
6ccac7d
Generated from 4d76d19845c0c731f32ca830f3ae85d19aa9b90d (#5322)
AutorestCI Jul 23, 2019
4cb9693
Update swagger_to_sdk_config.json and ignore *.zip files (#5334)
Jul 25, 2019
2710e3d
Enable SDK Automation pull requests (#5342)
Jul 25, 2019
50ca5d6
Generated from e6f95be592d25370ff8f65f315ea6d4a0bdecc7d (#5327)
AutorestCI Jul 25, 2019
61dd5c5
v32.0.0
ArcturusZhang Jul 26, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ _testmain.go
*.exe
*.test
*.prof
*.zip

# Editor swap files
*.swp
Expand Down
6 changes: 3 additions & 3 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Gopkg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

[[constraint]]
name = "github.com/Azure/go-autorest"
version = "12.0.0"
version = "12.3.0"

[[constraint]]
branch = "master"
Expand Down
31 changes: 31 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

[![Build Status](https://travis-ci.org/Azure/azure-sdk-for-go.svg?branch=master)](https://travis-ci.org/Azure/azure-sdk-for-go)

[![Build Status](https://dev.azure.com/azure-sdk/public/_apis/build/status/go/Azure.azure-sdk-for-go?branchName=latest)](https://dev.azure.com/azure-sdk/public/_build/latest?definitionId=640&branchName=latest)

[![Go Report Card](https://goreportcard.com/badge/github.com/Azure/azure-sdk-for-go)](https://goreportcard.com/report/github.com/Azure/azure-sdk-for-go)

azure-sdk-for-go provides Go packages for managing and using Azure services.
Expand Down Expand Up @@ -489,6 +491,35 @@ func doAzureCalls() {
}
```

## Request Retry Policy

The SDK provides a baked in retry policy for failed requests with default values that can be configured.
Each [client](https://godoc.org/github.com/Azure/go-autorest/autorest#Client) object contains the follow fields.
- `RetryAttempts` - the number of times to retry a failed request
- `RetryDuration` - the duration to wait between retries

For async operations the follow values are also used.
- `PollingDelay` - the duration to wait between polling requests
- `PollingDuration` - the total time to poll an async request before timing out

Please see the [documentation](https://godoc.org/github.com/Azure/go-autorest/autorest#pkg-constants) for the default values used.

Changing one or more values will affect all subsequet API calls.

The default policy is to call `autorest.DoRetryForStatusCodes()` from an API's `Sender` method. Example:
```go
func (client OperationsClient) ListSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
}
```

Details on how `autorest.DoRetryforStatusCodes()` works can be found in the [documentation](https://godoc.org/github.com/Azure/go-autorest/autorest#DoRetryForStatusCodes).

It is not possible to change the invoked retry policy without writing a custom `Sender` and its calling code.

The `PollingDelay` and `PollingDuration` values are used exclusively by [WaitForCompletionRef()](https://godoc.org/github.com/Azure/go-autorest/autorest/azure#Future.WaitForCompletionRef) when blocking on an async call until it completes.

# Resources

- SDK docs are at [godoc.org](https://godoc.org/github.com/Azure/azure-sdk-for-go/).
Expand Down
58 changes: 58 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
pool:
vmImage: 'Ubuntu 16.04'

variables:
GOROOT: '/usr/local/go1.12'
GOPATH: '$(system.defaultWorkingDirectory)/work'
sdkPath: '$(GOPATH)/src/github.com/$(build.repository.name)'
IGNORE_BREAKING_CHANGES: true

steps:
- script: |
set -e
mkdir -p '$(GOPATH)/bin'
mkdir -p '$(sdkPath)'
shopt -s dotglob extglob
mv !(work) '$(sdkPath)'
echo '##vso[task.prependpath]$(GOROOT)/bin'
echo '##vso[task.prependpath]$(GOPATH)/bin'
displayName: 'Create Go Workspace'
- script: |
set -e
curl -sSL https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
dep ensure -v
go get -u golang.org/x/lint/golint
workingDirectory: '$(sdkPath)'
displayName: 'Install Dependencies'
- script: go vet $(go list ./... | grep -v vendor)
workingDirectory: '$(sdkPath)'
displayName: 'Vet'
- script: go build -v $(go list ./... | grep -v vendor)
workingDirectory: '$(sdkPath)'
displayName: 'Build'
- script: go test $(dirname $(find . -path ./vendor -prune -o -name '*_test.go' -print) | sort -u)
workingDirectory: '$(sdkPath)'
displayName: 'Run Tests'
- script: go run ./tools/apidiff/main.go packages ./services FETCH_HEAD~1 FETCH_HEAD --copyrepo --breakingchanges || $IGNORE_BREAKING_CHANGES
workingDirectory: '$(sdkPath)'
displayName: 'Display Breaking Changes'
- script: go run ./tools/pkgchk/main.go ./services --exceptions ./tools/pkgchk/exceptions.txt
workingDirectory: '$(sdkPath)'
displayName: 'Verify Package Directory'
- script: grep -L -r --include *.go --exclude-dir vendor -P "Copyright (\d{4}|\(c\)) Microsoft" ./ | tee >&2
workingDirectory: '$(sdkPath)'
displayName: 'Copyright Header Check'
failOnStderr: true
condition: succeededOrFailed()
- script: gofmt -s -l -w $(find . -path ./vendor -prune -o -name '*.go' -print) >&2
workingDirectory: '$(sdkPath)'
displayName: 'Format Check'
failOnStderr: true
condition: succeededOrFailed()
- script: |
golint ./storage/... >&2
golint ./tools/... >&2
workingDirectory: '$(sdkPath)'
displayName: 'Linter Check'
failOnStderr: true
condition: succeededOrFailed()
26 changes: 26 additions & 0 deletions profiles/latest/aad/mgmt/aad/aadapi/models.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// +build go1.9

// Copyright 2019 Microsoft Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

// This code was auto-generated by:
// github.com/Azure/azure-sdk-for-go/tools/profileBuilder

package aadapi

import original "github.com/Azure/azure-sdk-for-go/services/aad/mgmt/2017-04-01/aad/aadapi"

type DiagnosticSettingsCategoryClientAPI = original.DiagnosticSettingsCategoryClientAPI
type DiagnosticSettingsClientAPI = original.DiagnosticSettingsClientAPI
type OperationsClientAPI = original.OperationsClientAPI
95 changes: 95 additions & 0 deletions profiles/latest/aad/mgmt/aad/models.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
// +build go1.9

// Copyright 2019 Microsoft Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

// This code was auto-generated by:
// github.com/Azure/azure-sdk-for-go/tools/profileBuilder

package aad

import original "github.com/Azure/azure-sdk-for-go/services/aad/mgmt/2017-04-01/aad"

const (
DefaultBaseURI = original.DefaultBaseURI
)

type Category = original.Category

const (
AuditLogs Category = original.AuditLogs
SignInLogs Category = original.SignInLogs
)

type CategoryType = original.CategoryType

const (
Logs CategoryType = original.Logs
)

type BaseClient = original.BaseClient
type DiagnosticSettings = original.DiagnosticSettings
type DiagnosticSettingsCategory = original.DiagnosticSettingsCategory
type DiagnosticSettingsCategoryClient = original.DiagnosticSettingsCategoryClient
type DiagnosticSettingsCategoryResource = original.DiagnosticSettingsCategoryResource
type DiagnosticSettingsCategoryResourceCollection = original.DiagnosticSettingsCategoryResourceCollection
type DiagnosticSettingsClient = original.DiagnosticSettingsClient
type DiagnosticSettingsResource = original.DiagnosticSettingsResource
type DiagnosticSettingsResourceCollection = original.DiagnosticSettingsResourceCollection
type Display = original.Display
type ErrorDefinition = original.ErrorDefinition
type ErrorResponse = original.ErrorResponse
type LogSettings = original.LogSettings
type OperationsClient = original.OperationsClient
type OperationsDiscovery = original.OperationsDiscovery
type OperationsDiscoveryCollection = original.OperationsDiscoveryCollection
type ProxyOnlyResource = original.ProxyOnlyResource
type RetentionPolicy = original.RetentionPolicy

func New() BaseClient {
return original.New()
}
func NewDiagnosticSettingsCategoryClient() DiagnosticSettingsCategoryClient {
return original.NewDiagnosticSettingsCategoryClient()
}
func NewDiagnosticSettingsCategoryClientWithBaseURI(baseURI string) DiagnosticSettingsCategoryClient {
return original.NewDiagnosticSettingsCategoryClientWithBaseURI(baseURI)
}
func NewDiagnosticSettingsClient() DiagnosticSettingsClient {
return original.NewDiagnosticSettingsClient()
}
func NewDiagnosticSettingsClientWithBaseURI(baseURI string) DiagnosticSettingsClient {
return original.NewDiagnosticSettingsClientWithBaseURI(baseURI)
}
func NewOperationsClient() OperationsClient {
return original.NewOperationsClient()
}
func NewOperationsClientWithBaseURI(baseURI string) OperationsClient {
return original.NewOperationsClientWithBaseURI(baseURI)
}
func NewWithBaseURI(baseURI string) BaseClient {
return original.NewWithBaseURI(baseURI)
}
func PossibleCategoryTypeValues() []CategoryType {
return original.PossibleCategoryTypeValues()
}
func PossibleCategoryValues() []Category {
return original.PossibleCategoryValues()
}
func UserAgent() string {
return original.UserAgent() + " profiles/latest"
}
func Version() string {
return original.Version()
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@

package alertsmanagementapi

import original "github.com/Azure/azure-sdk-for-go/services/alertsmanagement/mgmt/2018-05-05/alertsmanagement/alertsmanagementapi"
import original "github.com/Azure/azure-sdk-for-go/services/alertsmanagement/mgmt/2019-03-01/alertsmanagement/alertsmanagementapi"

type AlertsClientAPI = original.AlertsClientAPI
type OperationsClientAPI = original.OperationsClientAPI
type SmartDetectorAlertRulesClientAPI = original.SmartDetectorAlertRulesClientAPI
type SmartGroupsClientAPI = original.SmartGroupsClientAPI
Loading