...

Source file src/github.com/Azure/azure-sdk-for-go/services/datalake/store/mgmt/2016-11-01/account/trustedidproviders.go

Documentation: github.com/Azure/azure-sdk-for-go/services/datalake/store/mgmt/2016-11-01/account

     1  package account
     2  
     3  // Copyright (c) Microsoft Corporation. All rights reserved.
     4  // Licensed under the MIT License. See License.txt in the project root for license information.
     5  //
     6  // Code generated by Microsoft (R) AutoRest Code Generator.
     7  // Changes may cause incorrect behavior and will be lost if the code is regenerated.
     8  
     9  import (
    10  	"context"
    11  	"github.com/Azure/go-autorest/autorest"
    12  	"github.com/Azure/go-autorest/autorest/azure"
    13  	"github.com/Azure/go-autorest/autorest/validation"
    14  	"github.com/Azure/go-autorest/tracing"
    15  	"net/http"
    16  )
    17  
    18  // TrustedIDProvidersClient is the creates an Azure Data Lake Store account management client.
    19  type TrustedIDProvidersClient struct {
    20  	BaseClient
    21  }
    22  
    23  // NewTrustedIDProvidersClient creates an instance of the TrustedIDProvidersClient client.
    24  func NewTrustedIDProvidersClient(subscriptionID string) TrustedIDProvidersClient {
    25  	return NewTrustedIDProvidersClientWithBaseURI(DefaultBaseURI, subscriptionID)
    26  }
    27  
    28  // NewTrustedIDProvidersClientWithBaseURI creates an instance of the TrustedIDProvidersClient client using a custom
    29  // endpoint.  Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
    30  // stack).
    31  func NewTrustedIDProvidersClientWithBaseURI(baseURI string, subscriptionID string) TrustedIDProvidersClient {
    32  	return TrustedIDProvidersClient{NewWithBaseURI(baseURI, subscriptionID)}
    33  }
    34  
    35  // CreateOrUpdate creates or updates the specified trusted identity provider. During update, the trusted identity
    36  // provider with the specified name will be replaced with this new provider
    37  // Parameters:
    38  // resourceGroupName - the name of the Azure resource group.
    39  // accountName - the name of the Data Lake Store account.
    40  // trustedIDProviderName - the name of the trusted identity provider. This is used for differentiation of
    41  // providers in the account.
    42  // parameters - parameters supplied to create or replace the trusted identity provider.
    43  func (client TrustedIDProvidersClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, accountName string, trustedIDProviderName string, parameters CreateOrUpdateTrustedIDProviderParameters) (result TrustedIDProvider, err error) {
    44  	if tracing.IsEnabled() {
    45  		ctx = tracing.StartSpan(ctx, fqdn+"/TrustedIDProvidersClient.CreateOrUpdate")
    46  		defer func() {
    47  			sc := -1
    48  			if result.Response.Response != nil {
    49  				sc = result.Response.Response.StatusCode
    50  			}
    51  			tracing.EndSpan(ctx, sc, err)
    52  		}()
    53  	}
    54  	if err := validation.Validate([]validation.Validation{
    55  		{TargetValue: parameters,
    56  			Constraints: []validation.Constraint{{Target: "parameters.CreateOrUpdateTrustedIDProviderProperties", Name: validation.Null, Rule: true,
    57  				Chain: []validation.Constraint{{Target: "parameters.CreateOrUpdateTrustedIDProviderProperties.IDProvider", Name: validation.Null, Rule: true, Chain: nil}}}}}}); err != nil {
    58  		return result, validation.NewError("account.TrustedIDProvidersClient", "CreateOrUpdate", err.Error())
    59  	}
    60  
    61  	req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, accountName, trustedIDProviderName, parameters)
    62  	if err != nil {
    63  		err = autorest.NewErrorWithError(err, "account.TrustedIDProvidersClient", "CreateOrUpdate", nil, "Failure preparing request")
    64  		return
    65  	}
    66  
    67  	resp, err := client.CreateOrUpdateSender(req)
    68  	if err != nil {
    69  		result.Response = autorest.Response{Response: resp}
    70  		err = autorest.NewErrorWithError(err, "account.TrustedIDProvidersClient", "CreateOrUpdate", resp, "Failure sending request")
    71  		return
    72  	}
    73  
    74  	result, err = client.CreateOrUpdateResponder(resp)
    75  	if err != nil {
    76  		err = autorest.NewErrorWithError(err, "account.TrustedIDProvidersClient", "CreateOrUpdate", resp, "Failure responding to request")
    77  		return
    78  	}
    79  
    80  	return
    81  }
    82  
    83  // CreateOrUpdatePreparer prepares the CreateOrUpdate request.
    84  func (client TrustedIDProvidersClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, accountName string, trustedIDProviderName string, parameters CreateOrUpdateTrustedIDProviderParameters) (*http.Request, error) {
    85  	pathParameters := map[string]interface{}{
    86  		"accountName":           autorest.Encode("path", accountName),
    87  		"resourceGroupName":     autorest.Encode("path", resourceGroupName),
    88  		"subscriptionId":        autorest.Encode("path", client.SubscriptionID),
    89  		"trustedIdProviderName": autorest.Encode("path", trustedIDProviderName),
    90  	}
    91  
    92  	const APIVersion = "2016-11-01"
    93  	queryParameters := map[string]interface{}{
    94  		"api-version": APIVersion,
    95  	}
    96  
    97  	preparer := autorest.CreatePreparer(
    98  		autorest.AsContentType("application/json; charset=utf-8"),
    99  		autorest.AsPut(),
   100  		autorest.WithBaseURL(client.BaseURI),
   101  		autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeStore/accounts/{accountName}/trustedIdProviders/{trustedIdProviderName}", pathParameters),
   102  		autorest.WithJSON(parameters),
   103  		autorest.WithQueryParameters(queryParameters))
   104  	return preparer.Prepare((&http.Request{}).WithContext(ctx))
   105  }
   106  
   107  // CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the
   108  // http.Response Body if it receives an error.
   109  func (client TrustedIDProvidersClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) {
   110  	return client.Send(req, azure.DoRetryWithRegistration(client.Client))
   111  }
   112  
   113  // CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
   114  // closes the http.Response Body.
   115  func (client TrustedIDProvidersClient) CreateOrUpdateResponder(resp *http.Response) (result TrustedIDProvider, err error) {
   116  	err = autorest.Respond(
   117  		resp,
   118  		azure.WithErrorUnlessStatusCode(http.StatusOK),
   119  		autorest.ByUnmarshallingJSON(&result),
   120  		autorest.ByClosing())
   121  	result.Response = autorest.Response{Response: resp}
   122  	return
   123  }
   124  
   125  // Delete deletes the specified trusted identity provider from the specified Data Lake Store account
   126  // Parameters:
   127  // resourceGroupName - the name of the Azure resource group.
   128  // accountName - the name of the Data Lake Store account.
   129  // trustedIDProviderName - the name of the trusted identity provider to delete.
   130  func (client TrustedIDProvidersClient) Delete(ctx context.Context, resourceGroupName string, accountName string, trustedIDProviderName string) (result autorest.Response, err error) {
   131  	if tracing.IsEnabled() {
   132  		ctx = tracing.StartSpan(ctx, fqdn+"/TrustedIDProvidersClient.Delete")
   133  		defer func() {
   134  			sc := -1
   135  			if result.Response != nil {
   136  				sc = result.Response.StatusCode
   137  			}
   138  			tracing.EndSpan(ctx, sc, err)
   139  		}()
   140  	}
   141  	req, err := client.DeletePreparer(ctx, resourceGroupName, accountName, trustedIDProviderName)
   142  	if err != nil {
   143  		err = autorest.NewErrorWithError(err, "account.TrustedIDProvidersClient", "Delete", nil, "Failure preparing request")
   144  		return
   145  	}
   146  
   147  	resp, err := client.DeleteSender(req)
   148  	if err != nil {
   149  		result.Response = resp
   150  		err = autorest.NewErrorWithError(err, "account.TrustedIDProvidersClient", "Delete", resp, "Failure sending request")
   151  		return
   152  	}
   153  
   154  	result, err = client.DeleteResponder(resp)
   155  	if err != nil {
   156  		err = autorest.NewErrorWithError(err, "account.TrustedIDProvidersClient", "Delete", resp, "Failure responding to request")
   157  		return
   158  	}
   159  
   160  	return
   161  }
   162  
   163  // DeletePreparer prepares the Delete request.
   164  func (client TrustedIDProvidersClient) DeletePreparer(ctx context.Context, resourceGroupName string, accountName string, trustedIDProviderName string) (*http.Request, error) {
   165  	pathParameters := map[string]interface{}{
   166  		"accountName":           autorest.Encode("path", accountName),
   167  		"resourceGroupName":     autorest.Encode("path", resourceGroupName),
   168  		"subscriptionId":        autorest.Encode("path", client.SubscriptionID),
   169  		"trustedIdProviderName": autorest.Encode("path", trustedIDProviderName),
   170  	}
   171  
   172  	const APIVersion = "2016-11-01"
   173  	queryParameters := map[string]interface{}{
   174  		"api-version": APIVersion,
   175  	}
   176  
   177  	preparer := autorest.CreatePreparer(
   178  		autorest.AsDelete(),
   179  		autorest.WithBaseURL(client.BaseURI),
   180  		autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeStore/accounts/{accountName}/trustedIdProviders/{trustedIdProviderName}", pathParameters),
   181  		autorest.WithQueryParameters(queryParameters))
   182  	return preparer.Prepare((&http.Request{}).WithContext(ctx))
   183  }
   184  
   185  // DeleteSender sends the Delete request. The method will close the
   186  // http.Response Body if it receives an error.
   187  func (client TrustedIDProvidersClient) DeleteSender(req *http.Request) (*http.Response, error) {
   188  	return client.Send(req, azure.DoRetryWithRegistration(client.Client))
   189  }
   190  
   191  // DeleteResponder handles the response to the Delete request. The method always
   192  // closes the http.Response Body.
   193  func (client TrustedIDProvidersClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
   194  	err = autorest.Respond(
   195  		resp,
   196  		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent),
   197  		autorest.ByClosing())
   198  	result.Response = resp
   199  	return
   200  }
   201  
   202  // Get gets the specified Data Lake Store trusted identity provider.
   203  // Parameters:
   204  // resourceGroupName - the name of the Azure resource group.
   205  // accountName - the name of the Data Lake Store account.
   206  // trustedIDProviderName - the name of the trusted identity provider to retrieve.
   207  func (client TrustedIDProvidersClient) Get(ctx context.Context, resourceGroupName string, accountName string, trustedIDProviderName string) (result TrustedIDProvider, err error) {
   208  	if tracing.IsEnabled() {
   209  		ctx = tracing.StartSpan(ctx, fqdn+"/TrustedIDProvidersClient.Get")
   210  		defer func() {
   211  			sc := -1
   212  			if result.Response.Response != nil {
   213  				sc = result.Response.Response.StatusCode
   214  			}
   215  			tracing.EndSpan(ctx, sc, err)
   216  		}()
   217  	}
   218  	req, err := client.GetPreparer(ctx, resourceGroupName, accountName, trustedIDProviderName)
   219  	if err != nil {
   220  		err = autorest.NewErrorWithError(err, "account.TrustedIDProvidersClient", "Get", nil, "Failure preparing request")
   221  		return
   222  	}
   223  
   224  	resp, err := client.GetSender(req)
   225  	if err != nil {
   226  		result.Response = autorest.Response{Response: resp}
   227  		err = autorest.NewErrorWithError(err, "account.TrustedIDProvidersClient", "Get", resp, "Failure sending request")
   228  		return
   229  	}
   230  
   231  	result, err = client.GetResponder(resp)
   232  	if err != nil {
   233  		err = autorest.NewErrorWithError(err, "account.TrustedIDProvidersClient", "Get", resp, "Failure responding to request")
   234  		return
   235  	}
   236  
   237  	return
   238  }
   239  
   240  // GetPreparer prepares the Get request.
   241  func (client TrustedIDProvidersClient) GetPreparer(ctx context.Context, resourceGroupName string, accountName string, trustedIDProviderName string) (*http.Request, error) {
   242  	pathParameters := map[string]interface{}{
   243  		"accountName":           autorest.Encode("path", accountName),
   244  		"resourceGroupName":     autorest.Encode("path", resourceGroupName),
   245  		"subscriptionId":        autorest.Encode("path", client.SubscriptionID),
   246  		"trustedIdProviderName": autorest.Encode("path", trustedIDProviderName),
   247  	}
   248  
   249  	const APIVersion = "2016-11-01"
   250  	queryParameters := map[string]interface{}{
   251  		"api-version": APIVersion,
   252  	}
   253  
   254  	preparer := autorest.CreatePreparer(
   255  		autorest.AsGet(),
   256  		autorest.WithBaseURL(client.BaseURI),
   257  		autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeStore/accounts/{accountName}/trustedIdProviders/{trustedIdProviderName}", pathParameters),
   258  		autorest.WithQueryParameters(queryParameters))
   259  	return preparer.Prepare((&http.Request{}).WithContext(ctx))
   260  }
   261  
   262  // GetSender sends the Get request. The method will close the
   263  // http.Response Body if it receives an error.
   264  func (client TrustedIDProvidersClient) GetSender(req *http.Request) (*http.Response, error) {
   265  	return client.Send(req, azure.DoRetryWithRegistration(client.Client))
   266  }
   267  
   268  // GetResponder handles the response to the Get request. The method always
   269  // closes the http.Response Body.
   270  func (client TrustedIDProvidersClient) GetResponder(resp *http.Response) (result TrustedIDProvider, err error) {
   271  	err = autorest.Respond(
   272  		resp,
   273  		azure.WithErrorUnlessStatusCode(http.StatusOK),
   274  		autorest.ByUnmarshallingJSON(&result),
   275  		autorest.ByClosing())
   276  	result.Response = autorest.Response{Response: resp}
   277  	return
   278  }
   279  
   280  // ListByAccount lists the Data Lake Store trusted identity providers within the specified Data Lake Store account.
   281  // Parameters:
   282  // resourceGroupName - the name of the Azure resource group.
   283  // accountName - the name of the Data Lake Store account.
   284  func (client TrustedIDProvidersClient) ListByAccount(ctx context.Context, resourceGroupName string, accountName string) (result TrustedIDProviderListResultPage, err error) {
   285  	if tracing.IsEnabled() {
   286  		ctx = tracing.StartSpan(ctx, fqdn+"/TrustedIDProvidersClient.ListByAccount")
   287  		defer func() {
   288  			sc := -1
   289  			if result.tiplr.Response.Response != nil {
   290  				sc = result.tiplr.Response.Response.StatusCode
   291  			}
   292  			tracing.EndSpan(ctx, sc, err)
   293  		}()
   294  	}
   295  	result.fn = client.listByAccountNextResults
   296  	req, err := client.ListByAccountPreparer(ctx, resourceGroupName, accountName)
   297  	if err != nil {
   298  		err = autorest.NewErrorWithError(err, "account.TrustedIDProvidersClient", "ListByAccount", nil, "Failure preparing request")
   299  		return
   300  	}
   301  
   302  	resp, err := client.ListByAccountSender(req)
   303  	if err != nil {
   304  		result.tiplr.Response = autorest.Response{Response: resp}
   305  		err = autorest.NewErrorWithError(err, "account.TrustedIDProvidersClient", "ListByAccount", resp, "Failure sending request")
   306  		return
   307  	}
   308  
   309  	result.tiplr, err = client.ListByAccountResponder(resp)
   310  	if err != nil {
   311  		err = autorest.NewErrorWithError(err, "account.TrustedIDProvidersClient", "ListByAccount", resp, "Failure responding to request")
   312  		return
   313  	}
   314  	if result.tiplr.hasNextLink() && result.tiplr.IsEmpty() {
   315  		err = result.NextWithContext(ctx)
   316  		return
   317  	}
   318  
   319  	return
   320  }
   321  
   322  // ListByAccountPreparer prepares the ListByAccount request.
   323  func (client TrustedIDProvidersClient) ListByAccountPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error) {
   324  	pathParameters := map[string]interface{}{
   325  		"accountName":       autorest.Encode("path", accountName),
   326  		"resourceGroupName": autorest.Encode("path", resourceGroupName),
   327  		"subscriptionId":    autorest.Encode("path", client.SubscriptionID),
   328  	}
   329  
   330  	const APIVersion = "2016-11-01"
   331  	queryParameters := map[string]interface{}{
   332  		"api-version": APIVersion,
   333  	}
   334  
   335  	preparer := autorest.CreatePreparer(
   336  		autorest.AsGet(),
   337  		autorest.WithBaseURL(client.BaseURI),
   338  		autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeStore/accounts/{accountName}/trustedIdProviders", pathParameters),
   339  		autorest.WithQueryParameters(queryParameters))
   340  	return preparer.Prepare((&http.Request{}).WithContext(ctx))
   341  }
   342  
   343  // ListByAccountSender sends the ListByAccount request. The method will close the
   344  // http.Response Body if it receives an error.
   345  func (client TrustedIDProvidersClient) ListByAccountSender(req *http.Request) (*http.Response, error) {
   346  	return client.Send(req, azure.DoRetryWithRegistration(client.Client))
   347  }
   348  
   349  // ListByAccountResponder handles the response to the ListByAccount request. The method always
   350  // closes the http.Response Body.
   351  func (client TrustedIDProvidersClient) ListByAccountResponder(resp *http.Response) (result TrustedIDProviderListResult, err error) {
   352  	err = autorest.Respond(
   353  		resp,
   354  		azure.WithErrorUnlessStatusCode(http.StatusOK),
   355  		autorest.ByUnmarshallingJSON(&result),
   356  		autorest.ByClosing())
   357  	result.Response = autorest.Response{Response: resp}
   358  	return
   359  }
   360  
   361  // listByAccountNextResults retrieves the next set of results, if any.
   362  func (client TrustedIDProvidersClient) listByAccountNextResults(ctx context.Context, lastResults TrustedIDProviderListResult) (result TrustedIDProviderListResult, err error) {
   363  	req, err := lastResults.trustedIDProviderListResultPreparer(ctx)
   364  	if err != nil {
   365  		return result, autorest.NewErrorWithError(err, "account.TrustedIDProvidersClient", "listByAccountNextResults", nil, "Failure preparing next results request")
   366  	}
   367  	if req == nil {
   368  		return
   369  	}
   370  	resp, err := client.ListByAccountSender(req)
   371  	if err != nil {
   372  		result.Response = autorest.Response{Response: resp}
   373  		return result, autorest.NewErrorWithError(err, "account.TrustedIDProvidersClient", "listByAccountNextResults", resp, "Failure sending next results request")
   374  	}
   375  	result, err = client.ListByAccountResponder(resp)
   376  	if err != nil {
   377  		err = autorest.NewErrorWithError(err, "account.TrustedIDProvidersClient", "listByAccountNextResults", resp, "Failure responding to next results request")
   378  	}
   379  	return
   380  }
   381  
   382  // ListByAccountComplete enumerates all values, automatically crossing page boundaries as required.
   383  func (client TrustedIDProvidersClient) ListByAccountComplete(ctx context.Context, resourceGroupName string, accountName string) (result TrustedIDProviderListResultIterator, err error) {
   384  	if tracing.IsEnabled() {
   385  		ctx = tracing.StartSpan(ctx, fqdn+"/TrustedIDProvidersClient.ListByAccount")
   386  		defer func() {
   387  			sc := -1
   388  			if result.Response().Response.Response != nil {
   389  				sc = result.page.Response().Response.Response.StatusCode
   390  			}
   391  			tracing.EndSpan(ctx, sc, err)
   392  		}()
   393  	}
   394  	result.page, err = client.ListByAccount(ctx, resourceGroupName, accountName)
   395  	return
   396  }
   397  
   398  // Update updates the specified trusted identity provider.
   399  // Parameters:
   400  // resourceGroupName - the name of the Azure resource group.
   401  // accountName - the name of the Data Lake Store account.
   402  // trustedIDProviderName - the name of the trusted identity provider. This is used for differentiation of
   403  // providers in the account.
   404  // parameters - parameters supplied to update the trusted identity provider.
   405  func (client TrustedIDProvidersClient) Update(ctx context.Context, resourceGroupName string, accountName string, trustedIDProviderName string, parameters *UpdateTrustedIDProviderParameters) (result TrustedIDProvider, err error) {
   406  	if tracing.IsEnabled() {
   407  		ctx = tracing.StartSpan(ctx, fqdn+"/TrustedIDProvidersClient.Update")
   408  		defer func() {
   409  			sc := -1
   410  			if result.Response.Response != nil {
   411  				sc = result.Response.Response.StatusCode
   412  			}
   413  			tracing.EndSpan(ctx, sc, err)
   414  		}()
   415  	}
   416  	req, err := client.UpdatePreparer(ctx, resourceGroupName, accountName, trustedIDProviderName, parameters)
   417  	if err != nil {
   418  		err = autorest.NewErrorWithError(err, "account.TrustedIDProvidersClient", "Update", nil, "Failure preparing request")
   419  		return
   420  	}
   421  
   422  	resp, err := client.UpdateSender(req)
   423  	if err != nil {
   424  		result.Response = autorest.Response{Response: resp}
   425  		err = autorest.NewErrorWithError(err, "account.TrustedIDProvidersClient", "Update", resp, "Failure sending request")
   426  		return
   427  	}
   428  
   429  	result, err = client.UpdateResponder(resp)
   430  	if err != nil {
   431  		err = autorest.NewErrorWithError(err, "account.TrustedIDProvidersClient", "Update", resp, "Failure responding to request")
   432  		return
   433  	}
   434  
   435  	return
   436  }
   437  
   438  // UpdatePreparer prepares the Update request.
   439  func (client TrustedIDProvidersClient) UpdatePreparer(ctx context.Context, resourceGroupName string, accountName string, trustedIDProviderName string, parameters *UpdateTrustedIDProviderParameters) (*http.Request, error) {
   440  	pathParameters := map[string]interface{}{
   441  		"accountName":           autorest.Encode("path", accountName),
   442  		"resourceGroupName":     autorest.Encode("path", resourceGroupName),
   443  		"subscriptionId":        autorest.Encode("path", client.SubscriptionID),
   444  		"trustedIdProviderName": autorest.Encode("path", trustedIDProviderName),
   445  	}
   446  
   447  	const APIVersion = "2016-11-01"
   448  	queryParameters := map[string]interface{}{
   449  		"api-version": APIVersion,
   450  	}
   451  
   452  	preparer := autorest.CreatePreparer(
   453  		autorest.AsContentType("application/json; charset=utf-8"),
   454  		autorest.AsPatch(),
   455  		autorest.WithBaseURL(client.BaseURI),
   456  		autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeStore/accounts/{accountName}/trustedIdProviders/{trustedIdProviderName}", pathParameters),
   457  		autorest.WithQueryParameters(queryParameters))
   458  	if parameters != nil {
   459  		preparer = autorest.DecoratePreparer(preparer,
   460  			autorest.WithJSON(parameters))
   461  	}
   462  	return preparer.Prepare((&http.Request{}).WithContext(ctx))
   463  }
   464  
   465  // UpdateSender sends the Update request. The method will close the
   466  // http.Response Body if it receives an error.
   467  func (client TrustedIDProvidersClient) UpdateSender(req *http.Request) (*http.Response, error) {
   468  	return client.Send(req, azure.DoRetryWithRegistration(client.Client))
   469  }
   470  
   471  // UpdateResponder handles the response to the Update request. The method always
   472  // closes the http.Response Body.
   473  func (client TrustedIDProvidersClient) UpdateResponder(resp *http.Response) (result TrustedIDProvider, err error) {
   474  	err = autorest.Respond(
   475  		resp,
   476  		azure.WithErrorUnlessStatusCode(http.StatusOK),
   477  		autorest.ByUnmarshallingJSON(&result),
   478  		autorest.ByClosing())
   479  	result.Response = autorest.Response{Response: resp}
   480  	return
   481  }
   482  

View as plain text