Skip to content
This repository was archived by the owner on Aug 26, 2025. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 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
994ce3d
[AutoPR logic/mgmt/2016-06-01] RosettaNet Process configuration apis …
openapi-sdkautomation[bot] Aug 2, 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
03e65a8
Add schema and create_sdk_pull_requests to config
Jul 24, 2019
d31e950
Merge branch 'sdkAutomationProdTest/logic/mgmt/2016-06-01' of https:/…
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
1daecf2
Add schema and create_sdk_pull_requests to config
Jul 24, 2019
7904c50
Merge branch 'sdkAutomationProdTest/logic/mgmt/2016-06-01' of https:/…
Aug 19, 2019
098aa17
Add schema and create_sdk_pull_requests to config
Jul 24, 2019
06c982c
Merge branch 'sdkAutomationProdTest/logic/mgmt/2016-06-01' of https:/…
Aug 22, 2019
e53ef59
Add schema and create_sdk_pull_requests to config
Jul 24, 2019
de95199
Merge branch 'sdkAutomationProdTest/logic/mgmt/2016-06-01' of https:/…
Aug 22, 2019
6b9d35f
Add schema and create_sdk_pull_requests to config
Jul 24, 2019
c9c8083
Merge branch 'sdkAutomationProdTest/logic/mgmt/2016-06-01' of https:/…
Aug 22, 2019
45ffb58
[AutoPR logic/mgmt/2016-06-01] Adding support to the LogicApps Workfl…
openapi-sdkautomation[bot] Aug 28, 2019
1bf6a91
Add schema and create_sdk_pull_requests to config
Jul 24, 2019
c07e01b
Generated from b3623415bfb03b5a528c8a2a20caad53aba43ce2
AutorestCI Aug 1, 2019
d87ce59
Generated from f1354d954d03c2283656d3c820a88dcfc2ddf79e
AutorestCI Aug 2, 2019
83bf0da
Generated from e8805bf5ca1ff7c125b84a637eb483af9efd5ff5 (#5459)
AutorestCI Aug 8, 2019
6b7f4f8
Generated from 27e7dd3c7e4a6b855c902cfaf35380e273760cde (#5462)
AutorestCI Aug 8, 2019
df2e653
Merge branch 'sdkAutomationProdTest/logic/mgmt/2016-06-01' of https:/…
Sep 18, 2019
0a6cee0
[AutoPR logic/mgmt/2016-06-01] [LogicApps] New Api version (#416)
openapi-sdkautomation[bot] Sep 20, 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
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