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

[AutoPR] datamigration/mgmt/2018-04-19 #102

Closed
wants to merge 33 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
dec5817
Add schema and create_sdk_pull_requests to config
Jul 24, 2019
2a38f57
Add *.zip to .gitignore
Jul 24, 2019
317a7b7
Merge branch 'latest' of https://github.com/Azure/azure-sdk-for-go in…
Jul 25, 2019
0512363
[AutoPR datamigration/mgmt/2018-04-19] Fix outdated arm-datamigration…
openapi-sdkautomation[bot] Jul 30, 2019
23bc466
Generated from ca46ecf5c4baeb43c5fc1afb355c065bf49efd90 (#5449)
AutorestCI Aug 7, 2019
b04065c
Generated from b3623415bfb03b5a528c8a2a20caad53aba43ce2
AutorestCI Aug 1, 2019
0e470cf
Generated from f1354d954d03c2283656d3c820a88dcfc2ddf79e
AutorestCI Aug 2, 2019
7fed295
Generated from df3fa85139fca07f04373031470bed637e7b8126
AutorestCI Aug 5, 2019
3c08fc3
Merge pull request #4 from Azure/latest
pull[bot] Aug 7, 2019
ed5a0d0
[AutoPR datamigration/mgmt/2018-04-19] fix: datamigration model valid…
openapi-sdkautomation[bot] Aug 7, 2019
6b008f6
Add schema and create_sdk_pull_requests to config
Jul 24, 2019
e2ed6ce
Merge branch 'sdkAutomationProdTest/datamigration/mgmt/2018-04-19' of…
Aug 7, 2019
81b98af
[AutoPR servicefabric/resource-manager] Moving sfrp release 2019-03-0…
AutorestCI Aug 7, 2019
052ffb5
Generated from e8805bf5ca1ff7c125b84a637eb483af9efd5ff5 (#5459)
AutorestCI Aug 8, 2019
d366f09
Generated from 27e7dd3c7e4a6b855c902cfaf35380e273760cde (#5462)
AutorestCI Aug 8, 2019
5e3f0e9
Add schema and create_sdk_pull_requests to config
Jul 24, 2019
f5a8b04
Merge branch 'sdkAutomationProdTest/datamigration/mgmt/2018-04-19' of…
Aug 14, 2019
912600b
Add schema and create_sdk_pull_requests to config
Jul 24, 2019
2ccbf78
Merge branch 'sdkAutomationProdTest/datamigration/mgmt/2018-04-19' of…
Aug 15, 2019
0a47bae
[AutoPR datamigration/mgmt/2018-04-19] Fix bad discriminator value on…
openapi-sdkautomation[bot] Aug 16, 2019
3e6fc8a
Add schema and create_sdk_pull_requests to config
Jul 24, 2019
866ee98
[AutoPR datamigration/mgmt/2018-04-19] Fix bad discriminator value on…
openapi-sdkautomation[bot] Aug 16, 2019
6dcfa60
Merge branch 'sdkAutomationProdTest/datamigration/mgmt/2018-04-19' of…
Aug 16, 2019
2e4cc7c
[AutoPR datamigration/mgmt/2018-04-19] fix bad 'unknown' discriminato…
openapi-sdkautomation[bot] Aug 19, 2019
26da718
Add schema and create_sdk_pull_requests to config
Jul 24, 2019
6652889
Generated from b3623415bfb03b5a528c8a2a20caad53aba43ce2
AutorestCI Aug 1, 2019
7d8b57f
Generated from f1354d954d03c2283656d3c820a88dcfc2ddf79e
AutorestCI Aug 2, 2019
04c6c60
Generated from e8805bf5ca1ff7c125b84a637eb483af9efd5ff5 (#5459)
AutorestCI Aug 8, 2019
ba48d53
Generated from 27e7dd3c7e4a6b855c902cfaf35380e273760cde (#5462)
AutorestCI Aug 8, 2019
c25687b
Merge branch 'sdkAutomationProdTest/datamigration/mgmt/2018-04-19' of…
Sep 11, 2019
2254b2b
[AutoPR datamigration/mgmt/2018-04-19] Correct the version (#385)
openapi-sdkautomation[bot] Sep 16, 2019
bb67155
[AutoPR datamigration/mgmt/2018-04-19] Fix eligibility typo (#410)
openapi-sdkautomation[bot] Sep 19, 2019
ccd16e1
[AutoPR datamigration/mgmt/2018-04-19] Add aad domain name for window…
openapi-sdkautomation[bot] Sep 23, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 14 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -514,14 +514,25 @@ 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...))
sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
return autorest.SendWithSender(client, req, sd...)
}
```

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 slice of `SendDecorators` used in a `Sender` method can be customized per API call by smuggling them in the context. Here's an example.

```go
ctx := context.Background()
autorest.WithSendDecorators(ctx, []autorest.SendDecorator{
autorest.DoRetryForStatusCodesWithCap(client.RetryAttempts,
client.RetryDuration, time.Duration(0),
autorest.StatusCodesForRetry...)})
client.List(ctx)
```

This will replace the default slice of `SendDecorators` with the provided slice.

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.

Expand Down
12 changes: 12 additions & 0 deletions profiles/latest/compute/mgmt/compute/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,14 @@ const (
Regular VirtualMachinePriorityTypes = original.Regular
)

type VirtualMachineScaleSetScaleInRules = original.VirtualMachineScaleSetScaleInRules

const (
Default VirtualMachineScaleSetScaleInRules = original.Default
NewestVM VirtualMachineScaleSetScaleInRules = original.NewestVM
OldestVM VirtualMachineScaleSetScaleInRules = original.OldestVM
)

type VirtualMachineScaleSetSkuScaleType = original.VirtualMachineScaleSetSkuScaleType

const (
Expand Down Expand Up @@ -866,6 +874,7 @@ type RunCommandParameterDefinition = original.RunCommandParameterDefinition
type RunCommandResult = original.RunCommandResult
type SSHConfiguration = original.SSHConfiguration
type SSHPublicKey = original.SSHPublicKey
type ScaleInPolicy = original.ScaleInPolicy
type ScheduledEventsProfile = original.ScheduledEventsProfile
type Sku = original.Sku
type Snapshot = original.Snapshot
Expand Down Expand Up @@ -1508,6 +1517,9 @@ func PossibleVirtualMachineEvictionPolicyTypesValues() []VirtualMachineEvictionP
func PossibleVirtualMachinePriorityTypesValues() []VirtualMachinePriorityTypes {
return original.PossibleVirtualMachinePriorityTypesValues()
}
func PossibleVirtualMachineScaleSetScaleInRulesValues() []VirtualMachineScaleSetScaleInRules {
return original.PossibleVirtualMachineScaleSetScaleInRulesValues()
}
func PossibleVirtualMachineScaleSetSkuScaleTypeValues() []VirtualMachineScaleSetSkuScaleType {
return original.PossibleVirtualMachineScaleSetSkuScaleTypeValues()
}
Expand Down
12 changes: 6 additions & 6 deletions profiles/latest/cosmos-db/mgmt/documentdb/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,12 @@ const (
type PrimaryAggregationType = original.PrimaryAggregationType

const (
PrimaryAggregationTypeAverage PrimaryAggregationType = original.PrimaryAggregationTypeAverage
PrimaryAggregationTypeLast PrimaryAggregationType = original.PrimaryAggregationTypeLast
PrimaryAggregationTypeMaximum PrimaryAggregationType = original.PrimaryAggregationTypeMaximum
PrimaryAggregationTypeMinimimum PrimaryAggregationType = original.PrimaryAggregationTypeMinimimum
PrimaryAggregationTypeNone PrimaryAggregationType = original.PrimaryAggregationTypeNone
PrimaryAggregationTypeTotal PrimaryAggregationType = original.PrimaryAggregationTypeTotal
PrimaryAggregationTypeAverage PrimaryAggregationType = original.PrimaryAggregationTypeAverage
PrimaryAggregationTypeLast PrimaryAggregationType = original.PrimaryAggregationTypeLast
PrimaryAggregationTypeMaximum PrimaryAggregationType = original.PrimaryAggregationTypeMaximum
PrimaryAggregationTypeMinimum PrimaryAggregationType = original.PrimaryAggregationTypeMinimum
PrimaryAggregationTypeNone PrimaryAggregationType = original.PrimaryAggregationTypeNone
PrimaryAggregationTypeTotal PrimaryAggregationType = original.PrimaryAggregationTypeTotal
)

type UnitType = original.UnitType
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
// +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 databoxedgeapi

import original "github.com/Azure/azure-sdk-for-go/services/databoxedge/mgmt/2019-07-01/databoxedge/databoxedgeapi"

type AlertsClientAPI = original.AlertsClientAPI
type BandwidthSchedulesClientAPI = original.BandwidthSchedulesClientAPI
type DevicesClientAPI = original.DevicesClientAPI
type JobsClientAPI = original.JobsClientAPI
type NodesClientAPI = original.NodesClientAPI
type OperationsClientAPI = original.OperationsClientAPI
type OperationsStatusClientAPI = original.OperationsStatusClientAPI
type OrdersClientAPI = original.OrdersClientAPI
type RolesClientAPI = original.RolesClientAPI
type SharesClientAPI = original.SharesClientAPI
type StorageAccountCredentialsClientAPI = original.StorageAccountCredentialsClientAPI
type TriggersClientAPI = original.TriggersClientAPI
type UsersClientAPI = original.UsersClientAPI
Loading