Update vendored dependencies
This includes github.com/kurin/blazer 0.2.0, which resolves #1291
This commit is contained in:
parent
ba23d24dd1
commit
61cb1cc6f8
1044 changed files with 203022 additions and 97709 deletions
177
vendor/github.com/Azure/azure-sdk-for-go/arm/sql/recommendedelasticpools.go
generated
vendored
177
vendor/github.com/Azure/azure-sdk-for-go/arm/sql/recommendedelasticpools.go
generated
vendored
|
@ -14,9 +14,8 @@ package sql
|
|||
// 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,32 +23,28 @@ import (
|
|||
"net/http"
|
||||
)
|
||||
|
||||
// RecommendedElasticPoolsClient is the the Azure SQL Database management API
|
||||
// provides a RESTful set of web services that interact with Azure SQL Database
|
||||
// services to manage your databases. The API enables you to create, retrieve,
|
||||
// RecommendedElasticPoolsClient is the the Azure SQL Database management API provides a RESTful set of web services
|
||||
// that interact with Azure SQL Database services to manage your databases. The API enables you to create, retrieve,
|
||||
// update, and delete databases.
|
||||
type RecommendedElasticPoolsClient struct {
|
||||
ManagementClient
|
||||
}
|
||||
|
||||
// NewRecommendedElasticPoolsClient creates an instance of the
|
||||
// RecommendedElasticPoolsClient client.
|
||||
// NewRecommendedElasticPoolsClient creates an instance of the RecommendedElasticPoolsClient client.
|
||||
func NewRecommendedElasticPoolsClient(subscriptionID string) RecommendedElasticPoolsClient {
|
||||
return NewRecommendedElasticPoolsClientWithBaseURI(DefaultBaseURI, subscriptionID)
|
||||
}
|
||||
|
||||
// NewRecommendedElasticPoolsClientWithBaseURI creates an instance of the
|
||||
// RecommendedElasticPoolsClient client.
|
||||
// NewRecommendedElasticPoolsClientWithBaseURI creates an instance of the RecommendedElasticPoolsClient client.
|
||||
func NewRecommendedElasticPoolsClientWithBaseURI(baseURI string, subscriptionID string) RecommendedElasticPoolsClient {
|
||||
return RecommendedElasticPoolsClient{NewWithBaseURI(baseURI, subscriptionID)}
|
||||
}
|
||||
|
||||
// Get gets a recommented elastic pool.
|
||||
//
|
||||
// resourceGroupName is the name of the resource group that contains the
|
||||
// resource. You can obtain this value from the Azure Resource Manager API or
|
||||
// the portal. serverName is the name of the server. recommendedElasticPoolName
|
||||
// is the name of the recommended elastic pool to be retrieved.
|
||||
// resourceGroupName is the name of the resource group that contains the resource. You can obtain this value from the
|
||||
// Azure Resource Manager API or the portal. serverName is the name of the server. recommendedElasticPoolName is the
|
||||
// name of the recommended elastic pool to be retrieved.
|
||||
func (client RecommendedElasticPoolsClient) Get(resourceGroupName string, serverName string, recommendedElasticPoolName string) (result RecommendedElasticPool, err error) {
|
||||
req, err := client.GetPreparer(resourceGroupName, serverName, recommendedElasticPoolName)
|
||||
if err != nil {
|
||||
|
@ -113,82 +108,10 @@ func (client RecommendedElasticPoolsClient) GetResponder(resp *http.Response) (r
|
|||
return
|
||||
}
|
||||
|
||||
// GetDatabases gets a database inside of a recommented elastic pool.
|
||||
//
|
||||
// resourceGroupName is the name of the resource group that contains the
|
||||
// resource. You can obtain this value from the Azure Resource Manager API or
|
||||
// the portal. serverName is the name of the server. recommendedElasticPoolName
|
||||
// is the name of the elastic pool to be retrieved. databaseName is the name of
|
||||
// the database to be retrieved.
|
||||
func (client RecommendedElasticPoolsClient) GetDatabases(resourceGroupName string, serverName string, recommendedElasticPoolName string, databaseName string) (result Database, err error) {
|
||||
req, err := client.GetDatabasesPreparer(resourceGroupName, serverName, recommendedElasticPoolName, databaseName)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "sql.RecommendedElasticPoolsClient", "GetDatabases", nil, "Failure preparing request")
|
||||
return
|
||||
}
|
||||
|
||||
resp, err := client.GetDatabasesSender(req)
|
||||
if err != nil {
|
||||
result.Response = autorest.Response{Response: resp}
|
||||
err = autorest.NewErrorWithError(err, "sql.RecommendedElasticPoolsClient", "GetDatabases", resp, "Failure sending request")
|
||||
return
|
||||
}
|
||||
|
||||
result, err = client.GetDatabasesResponder(resp)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "sql.RecommendedElasticPoolsClient", "GetDatabases", resp, "Failure responding to request")
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// GetDatabasesPreparer prepares the GetDatabases request.
|
||||
func (client RecommendedElasticPoolsClient) GetDatabasesPreparer(resourceGroupName string, serverName string, recommendedElasticPoolName string, databaseName string) (*http.Request, error) {
|
||||
pathParameters := map[string]interface{}{
|
||||
"databaseName": autorest.Encode("path", databaseName),
|
||||
"recommendedElasticPoolName": autorest.Encode("path", recommendedElasticPoolName),
|
||||
"resourceGroupName": autorest.Encode("path", resourceGroupName),
|
||||
"serverName": autorest.Encode("path", serverName),
|
||||
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
|
||||
}
|
||||
|
||||
const APIVersion = "2014-04-01"
|
||||
queryParameters := map[string]interface{}{
|
||||
"api-version": APIVersion,
|
||||
}
|
||||
|
||||
preparer := autorest.CreatePreparer(
|
||||
autorest.AsGet(),
|
||||
autorest.WithBaseURL(client.BaseURI),
|
||||
autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/recommendedElasticPools/{recommendedElasticPoolName}/databases/{databaseName}", pathParameters),
|
||||
autorest.WithQueryParameters(queryParameters))
|
||||
return preparer.Prepare(&http.Request{})
|
||||
}
|
||||
|
||||
// GetDatabasesSender sends the GetDatabases request. The method will close the
|
||||
// http.Response Body if it receives an error.
|
||||
func (client RecommendedElasticPoolsClient) GetDatabasesSender(req *http.Request) (*http.Response, error) {
|
||||
return autorest.SendWithSender(client, req)
|
||||
}
|
||||
|
||||
// GetDatabasesResponder handles the response to the GetDatabases request. The method always
|
||||
// closes the http.Response Body.
|
||||
func (client RecommendedElasticPoolsClient) GetDatabasesResponder(resp *http.Response) (result Database, err error) {
|
||||
err = autorest.Respond(
|
||||
resp,
|
||||
client.ByInspecting(),
|
||||
azure.WithErrorUnlessStatusCode(http.StatusOK),
|
||||
autorest.ByUnmarshallingJSON(&result),
|
||||
autorest.ByClosing())
|
||||
result.Response = autorest.Response{Response: resp}
|
||||
return
|
||||
}
|
||||
|
||||
// ListByServer returns recommended elastic pools.
|
||||
//
|
||||
// resourceGroupName is the name of the resource group that contains the
|
||||
// resource. You can obtain this value from the Azure Resource Manager API or
|
||||
// the portal. serverName is the name of the server.
|
||||
// resourceGroupName is the name of the resource group that contains the resource. You can obtain this value from the
|
||||
// Azure Resource Manager API or the portal. serverName is the name of the server.
|
||||
func (client RecommendedElasticPoolsClient) ListByServer(resourceGroupName string, serverName string) (result RecommendedElasticPoolListResult, err error) {
|
||||
req, err := client.ListByServerPreparer(resourceGroupName, serverName)
|
||||
if err != nil {
|
||||
|
@ -251,81 +174,11 @@ func (client RecommendedElasticPoolsClient) ListByServerResponder(resp *http.Res
|
|||
return
|
||||
}
|
||||
|
||||
// ListDatabases returns a list of databases inside a recommented elastic pool.
|
||||
// ListMetrics returns recommented elastic pool metrics.
|
||||
//
|
||||
// resourceGroupName is the name of the resource group that contains the
|
||||
// resource. You can obtain this value from the Azure Resource Manager API or
|
||||
// the portal. serverName is the name of the server. recommendedElasticPoolName
|
||||
// is the name of the recommended elastic pool to be retrieved.
|
||||
func (client RecommendedElasticPoolsClient) ListDatabases(resourceGroupName string, serverName string, recommendedElasticPoolName string) (result DatabaseListResult, err error) {
|
||||
req, err := client.ListDatabasesPreparer(resourceGroupName, serverName, recommendedElasticPoolName)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "sql.RecommendedElasticPoolsClient", "ListDatabases", nil, "Failure preparing request")
|
||||
return
|
||||
}
|
||||
|
||||
resp, err := client.ListDatabasesSender(req)
|
||||
if err != nil {
|
||||
result.Response = autorest.Response{Response: resp}
|
||||
err = autorest.NewErrorWithError(err, "sql.RecommendedElasticPoolsClient", "ListDatabases", resp, "Failure sending request")
|
||||
return
|
||||
}
|
||||
|
||||
result, err = client.ListDatabasesResponder(resp)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "sql.RecommendedElasticPoolsClient", "ListDatabases", resp, "Failure responding to request")
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// ListDatabasesPreparer prepares the ListDatabases request.
|
||||
func (client RecommendedElasticPoolsClient) ListDatabasesPreparer(resourceGroupName string, serverName string, recommendedElasticPoolName string) (*http.Request, error) {
|
||||
pathParameters := map[string]interface{}{
|
||||
"recommendedElasticPoolName": autorest.Encode("path", recommendedElasticPoolName),
|
||||
"resourceGroupName": autorest.Encode("path", resourceGroupName),
|
||||
"serverName": autorest.Encode("path", serverName),
|
||||
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
|
||||
}
|
||||
|
||||
const APIVersion = "2014-04-01"
|
||||
queryParameters := map[string]interface{}{
|
||||
"api-version": APIVersion,
|
||||
}
|
||||
|
||||
preparer := autorest.CreatePreparer(
|
||||
autorest.AsGet(),
|
||||
autorest.WithBaseURL(client.BaseURI),
|
||||
autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/recommendedElasticPools/{recommendedElasticPoolName}/databases", pathParameters),
|
||||
autorest.WithQueryParameters(queryParameters))
|
||||
return preparer.Prepare(&http.Request{})
|
||||
}
|
||||
|
||||
// ListDatabasesSender sends the ListDatabases request. The method will close the
|
||||
// http.Response Body if it receives an error.
|
||||
func (client RecommendedElasticPoolsClient) ListDatabasesSender(req *http.Request) (*http.Response, error) {
|
||||
return autorest.SendWithSender(client, req)
|
||||
}
|
||||
|
||||
// ListDatabasesResponder handles the response to the ListDatabases request. The method always
|
||||
// closes the http.Response Body.
|
||||
func (client RecommendedElasticPoolsClient) ListDatabasesResponder(resp *http.Response) (result DatabaseListResult, err error) {
|
||||
err = autorest.Respond(
|
||||
resp,
|
||||
client.ByInspecting(),
|
||||
azure.WithErrorUnlessStatusCode(http.StatusOK),
|
||||
autorest.ByUnmarshallingJSON(&result),
|
||||
autorest.ByClosing())
|
||||
result.Response = autorest.Response{Response: resp}
|
||||
return
|
||||
}
|
||||
|
||||
// ListMetrics returns a recommented elastic pool metrics.
|
||||
//
|
||||
// resourceGroupName is the name of the resource group that contains the
|
||||
// resource. You can obtain this value from the Azure Resource Manager API or
|
||||
// the portal. serverName is the name of the server. recommendedElasticPoolName
|
||||
// is the name of the recommended elastic pool to be retrieved.
|
||||
// resourceGroupName is the name of the resource group that contains the resource. You can obtain this value from the
|
||||
// Azure Resource Manager API or the portal. serverName is the name of the server. recommendedElasticPoolName is the
|
||||
// name of the recommended elastic pool to be retrieved.
|
||||
func (client RecommendedElasticPoolsClient) ListMetrics(resourceGroupName string, serverName string, recommendedElasticPoolName string) (result RecommendedElasticPoolListMetricsResult, err error) {
|
||||
req, err := client.ListMetricsPreparer(resourceGroupName, serverName, recommendedElasticPoolName)
|
||||
if err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue