vendor: update all dependencies to latest versions
This commit is contained in:
+27
-36
@@ -14,9 +14,8 @@ package trafficmanager
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
//
|
||||
// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
|
||||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
|
||||
import (
|
||||
"github.com/Azure/go-autorest/autorest"
|
||||
@@ -24,8 +23,7 @@ import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
// EndpointsClient is the client for the Endpoints methods of the
|
||||
// Trafficmanager service.
|
||||
// EndpointsClient is the client for the Endpoints methods of the Trafficmanager service.
|
||||
type EndpointsClient struct {
|
||||
ManagementClient
|
||||
}
|
||||
@@ -35,20 +33,17 @@ func NewEndpointsClient(subscriptionID string) EndpointsClient {
|
||||
return NewEndpointsClientWithBaseURI(DefaultBaseURI, subscriptionID)
|
||||
}
|
||||
|
||||
// NewEndpointsClientWithBaseURI creates an instance of the EndpointsClient
|
||||
// client.
|
||||
// NewEndpointsClientWithBaseURI creates an instance of the EndpointsClient client.
|
||||
func NewEndpointsClientWithBaseURI(baseURI string, subscriptionID string) EndpointsClient {
|
||||
return EndpointsClient{NewWithBaseURI(baseURI, subscriptionID)}
|
||||
}
|
||||
|
||||
// CreateOrUpdate create or update a Traffic Manager endpoint.
|
||||
//
|
||||
// resourceGroupName is the name of the resource group containing the Traffic
|
||||
// Manager endpoint to be created or updated. profileName is the name of the
|
||||
// Traffic Manager profile. endpointType is the type of the Traffic Manager
|
||||
// endpoint to be created or updated. endpointName is the name of the Traffic
|
||||
// Manager endpoint to be created or updated. parameters is the Traffic Manager
|
||||
// endpoint parameters supplied to the CreateOrUpdate operation.
|
||||
// resourceGroupName is the name of the resource group containing the Traffic Manager endpoint to be created or
|
||||
// updated. profileName is the name of the Traffic Manager profile. endpointType is the type of the Traffic Manager
|
||||
// endpoint to be created or updated. endpointName is the name of the Traffic Manager endpoint to be created or
|
||||
// updated. parameters is the Traffic Manager endpoint parameters supplied to the CreateOrUpdate operation.
|
||||
func (client EndpointsClient) CreateOrUpdate(resourceGroupName string, profileName string, endpointType string, endpointName string, parameters Endpoint) (result Endpoint, err error) {
|
||||
req, err := client.CreateOrUpdatePreparer(resourceGroupName, profileName, endpointType, endpointName, parameters)
|
||||
if err != nil {
|
||||
@@ -81,7 +76,7 @@ func (client EndpointsClient) CreateOrUpdatePreparer(resourceGroupName string, p
|
||||
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
|
||||
}
|
||||
|
||||
const APIVersion = "2015-11-01"
|
||||
const APIVersion = "2017-09-01-preview"
|
||||
queryParameters := map[string]interface{}{
|
||||
"api-version": APIVersion,
|
||||
}
|
||||
@@ -117,12 +112,10 @@ func (client EndpointsClient) CreateOrUpdateResponder(resp *http.Response) (resu
|
||||
|
||||
// Delete deletes a Traffic Manager endpoint.
|
||||
//
|
||||
// resourceGroupName is the name of the resource group containing the Traffic
|
||||
// Manager endpoint to be deleted. profileName is the name of the Traffic
|
||||
// Manager profile. endpointType is the type of the Traffic Manager endpoint to
|
||||
// be deleted. endpointName is the name of the Traffic Manager endpoint to be
|
||||
// deleted.
|
||||
func (client EndpointsClient) Delete(resourceGroupName string, profileName string, endpointType string, endpointName string) (result autorest.Response, err error) {
|
||||
// resourceGroupName is the name of the resource group containing the Traffic Manager endpoint to be deleted.
|
||||
// profileName is the name of the Traffic Manager profile. endpointType is the type of the Traffic Manager endpoint to
|
||||
// be deleted. endpointName is the name of the Traffic Manager endpoint to be deleted.
|
||||
func (client EndpointsClient) Delete(resourceGroupName string, profileName string, endpointType string, endpointName string) (result DeleteOperationResult, err error) {
|
||||
req, err := client.DeletePreparer(resourceGroupName, profileName, endpointType, endpointName)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "trafficmanager.EndpointsClient", "Delete", nil, "Failure preparing request")
|
||||
@@ -131,7 +124,7 @@ func (client EndpointsClient) Delete(resourceGroupName string, profileName strin
|
||||
|
||||
resp, err := client.DeleteSender(req)
|
||||
if err != nil {
|
||||
result.Response = resp
|
||||
result.Response = autorest.Response{Response: resp}
|
||||
err = autorest.NewErrorWithError(err, "trafficmanager.EndpointsClient", "Delete", resp, "Failure sending request")
|
||||
return
|
||||
}
|
||||
@@ -154,7 +147,7 @@ func (client EndpointsClient) DeletePreparer(resourceGroupName string, profileNa
|
||||
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
|
||||
}
|
||||
|
||||
const APIVersion = "2015-11-01"
|
||||
const APIVersion = "2017-09-01-preview"
|
||||
queryParameters := map[string]interface{}{
|
||||
"api-version": APIVersion,
|
||||
}
|
||||
@@ -175,22 +168,22 @@ func (client EndpointsClient) DeleteSender(req *http.Request) (*http.Response, e
|
||||
|
||||
// DeleteResponder handles the response to the Delete request. The method always
|
||||
// closes the http.Response Body.
|
||||
func (client EndpointsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
|
||||
func (client EndpointsClient) DeleteResponder(resp *http.Response) (result DeleteOperationResult, err error) {
|
||||
err = autorest.Respond(
|
||||
resp,
|
||||
client.ByInspecting(),
|
||||
azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent),
|
||||
autorest.ByUnmarshallingJSON(&result),
|
||||
autorest.ByClosing())
|
||||
result.Response = resp
|
||||
result.Response = autorest.Response{Response: resp}
|
||||
return
|
||||
}
|
||||
|
||||
// Get gets a Traffic Manager endpoint.
|
||||
//
|
||||
// resourceGroupName is the name of the resource group containing the Traffic
|
||||
// Manager endpoint. profileName is the name of the Traffic Manager profile.
|
||||
// endpointType is the type of the Traffic Manager endpoint. endpointName is
|
||||
// the name of the Traffic Manager endpoint.
|
||||
// resourceGroupName is the name of the resource group containing the Traffic Manager endpoint. profileName is the name
|
||||
// of the Traffic Manager profile. endpointType is the type of the Traffic Manager endpoint. endpointName is the name
|
||||
// of the Traffic Manager endpoint.
|
||||
func (client EndpointsClient) Get(resourceGroupName string, profileName string, endpointType string, endpointName string) (result Endpoint, err error) {
|
||||
req, err := client.GetPreparer(resourceGroupName, profileName, endpointType, endpointName)
|
||||
if err != nil {
|
||||
@@ -223,7 +216,7 @@ func (client EndpointsClient) GetPreparer(resourceGroupName string, profileName
|
||||
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
|
||||
}
|
||||
|
||||
const APIVersion = "2015-11-01"
|
||||
const APIVersion = "2017-09-01-preview"
|
||||
queryParameters := map[string]interface{}{
|
||||
"api-version": APIVersion,
|
||||
}
|
||||
@@ -257,12 +250,10 @@ func (client EndpointsClient) GetResponder(resp *http.Response) (result Endpoint
|
||||
|
||||
// Update update a Traffic Manager endpoint.
|
||||
//
|
||||
// resourceGroupName is the name of the resource group containing the Traffic
|
||||
// Manager endpoint to be updated. profileName is the name of the Traffic
|
||||
// Manager profile. endpointType is the type of the Traffic Manager endpoint to
|
||||
// be updated. endpointName is the name of the Traffic Manager endpoint to be
|
||||
// updated. parameters is the Traffic Manager endpoint parameters supplied to
|
||||
// the Update operation.
|
||||
// resourceGroupName is the name of the resource group containing the Traffic Manager endpoint to be updated.
|
||||
// profileName is the name of the Traffic Manager profile. endpointType is the type of the Traffic Manager endpoint to
|
||||
// be updated. endpointName is the name of the Traffic Manager endpoint to be updated. parameters is the Traffic
|
||||
// Manager endpoint parameters supplied to the Update operation.
|
||||
func (client EndpointsClient) Update(resourceGroupName string, profileName string, endpointType string, endpointName string, parameters Endpoint) (result Endpoint, err error) {
|
||||
req, err := client.UpdatePreparer(resourceGroupName, profileName, endpointType, endpointName, parameters)
|
||||
if err != nil {
|
||||
@@ -295,7 +286,7 @@ func (client EndpointsClient) UpdatePreparer(resourceGroupName string, profileNa
|
||||
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
|
||||
}
|
||||
|
||||
const APIVersion = "2015-11-01"
|
||||
const APIVersion = "2017-09-01-preview"
|
||||
queryParameters := map[string]interface{}{
|
||||
"api-version": APIVersion,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user