From 93a4b8f3ecc26b2b8c7d5c45f56a4e7dd1cd5b57 Mon Sep 17 00:00:00 2001 From: tombuildsstuff Date: Mon, 17 Apr 2017 12:15:51 +0100 Subject: [PATCH] Re govendor syncing --- .../azure-sdk-for-go/arm/documentdb/client.go | 2 +- .../arm/documentdb/databaseaccounts.go | 77 ++++++++++++++++++- .../azure-sdk-for-go/arm/documentdb/models.go | 17 +++- .../arm/documentdb/version.go | 4 +- vendor/vendor.json | 3 + 5 files changed, 98 insertions(+), 5 deletions(-) diff --git a/vendor/github.com/Azure/azure-sdk-for-go/arm/documentdb/client.go b/vendor/github.com/Azure/azure-sdk-for-go/arm/documentdb/client.go index 6c645501be31..48843430495d 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/arm/documentdb/client.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/arm/documentdb/client.go @@ -18,7 +18,7 @@ package documentdb // See the License for the specific language governing permissions and // limitations under the License. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// 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. diff --git a/vendor/github.com/Azure/azure-sdk-for-go/arm/documentdb/databaseaccounts.go b/vendor/github.com/Azure/azure-sdk-for-go/arm/documentdb/databaseaccounts.go index 8b503df9e3da..58e14cb2223a 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/arm/documentdb/databaseaccounts.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/arm/documentdb/databaseaccounts.go @@ -14,7 +14,7 @@ package documentdb // See the License for the specific language governing permissions and // limitations under the License. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// 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. @@ -573,6 +573,81 @@ func (client DatabaseAccountsClient) ListByResourceGroupResponder(resp *http.Res return } +// ListConnectionStrings lists the connection strings for the specified Azure +// DocumentDB database account. +// +// resourceGroupName is name of an Azure resource group. accountName is +// documentDB database account name. +func (client DatabaseAccountsClient) ListConnectionStrings(resourceGroupName string, accountName string) (result DatabaseAccountListConnectionStringsResult, err error) { + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 50, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}}); err != nil { + return result, validation.NewErrorWithValidationError(err, "documentdb.DatabaseAccountsClient", "ListConnectionStrings") + } + + req, err := client.ListConnectionStringsPreparer(resourceGroupName, accountName) + if err != nil { + return result, autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListConnectionStrings", nil, "Failure preparing request") + } + + resp, err := client.ListConnectionStringsSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListConnectionStrings", resp, "Failure sending request") + } + + result, err = client.ListConnectionStringsResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListConnectionStrings", resp, "Failure responding to request") + } + + return +} + +// ListConnectionStringsPreparer prepares the ListConnectionStrings request. +func (client DatabaseAccountsClient) ListConnectionStringsPreparer(resourceGroupName string, accountName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + queryParameters := map[string]interface{}{ + "api-version": client.APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/listConnectionStrings", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare(&http.Request{}) +} + +// ListConnectionStringsSender sends the ListConnectionStrings request. The method will close the +// http.Response Body if it receives an error. +func (client DatabaseAccountsClient) ListConnectionStringsSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req) +} + +// ListConnectionStringsResponder handles the response to the ListConnectionStrings request. The method always +// closes the http.Response Body. +func (client DatabaseAccountsClient) ListConnectionStringsResponder(resp *http.Response) (result DatabaseAccountListConnectionStringsResult, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + // ListKeys lists the access keys for the specified Azure DocumentDB database // account. // diff --git a/vendor/github.com/Azure/azure-sdk-for-go/arm/documentdb/models.go b/vendor/github.com/Azure/azure-sdk-for-go/arm/documentdb/models.go index 8fc8bc7b00ce..cc2d6de0384e 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/arm/documentdb/models.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/arm/documentdb/models.go @@ -14,7 +14,7 @@ package documentdb // See the License for the specific language governing permissions and // limitations under the License. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// 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. @@ -93,6 +93,13 @@ type DatabaseAccount struct { *DatabaseAccountProperties `json:"properties,omitempty"` } +// DatabaseAccountConnectionString is connection string for the DocumentDB +// account +type DatabaseAccountConnectionString struct { + ConnectionString *string `json:"connectionString,omitempty"` + Description *string `json:"description,omitempty"` +} + // DatabaseAccountCreateUpdateParameters is parameters to create and update // DocumentDB database accounts. type DatabaseAccountCreateUpdateParameters struct { @@ -101,6 +108,7 @@ type DatabaseAccountCreateUpdateParameters struct { Type *string `json:"type,omitempty"` Location *string `json:"location,omitempty"` Tags *map[string]*string `json:"tags,omitempty"` + Kind DatabaseAccountKind `json:"kind,omitempty"` *DatabaseAccountCreateUpdateProperties `json:"properties,omitempty"` } @@ -113,6 +121,13 @@ type DatabaseAccountCreateUpdateProperties struct { IPRangeFilter *string `json:"ipRangeFilter,omitempty"` } +// DatabaseAccountListConnectionStringsResult is the connection strings for the +// given database account. +type DatabaseAccountListConnectionStringsResult struct { + autorest.Response `json:"-"` + ConnectionStrings *[]DatabaseAccountConnectionString `json:"connectionStrings,omitempty"` +} + // DatabaseAccountListKeysResult is the access keys for the given database // account. type DatabaseAccountListKeysResult struct { diff --git a/vendor/github.com/Azure/azure-sdk-for-go/arm/documentdb/version.go b/vendor/github.com/Azure/azure-sdk-for-go/arm/documentdb/version.go index 3c314595e18e..809eb5bdd033 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/arm/documentdb/version.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/arm/documentdb/version.go @@ -14,7 +14,7 @@ package documentdb // See the License for the specific language governing permissions and // limitations under the License. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// 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. @@ -26,7 +26,7 @@ import ( const ( major = "8" - minor = "0" + minor = "1" patch = "0" tag = "beta" userAgentFormat = "Azure-SDK-For-Go/%s arm-%s/%s" diff --git a/vendor/vendor.json b/vendor/vendor.json index 350598ef8f43..d6bc29a218d6 100644 --- a/vendor/vendor.json +++ b/vendor/vendor.json @@ -51,6 +51,7 @@ "versionExact": "v8.1.0-beta" }, { + "checksumSHA1": "iAZi+Mh1Tivk3bdBbAEz+bd5nPg=", "comment": "v2.1.1-beta-8-gca4d906", "path": "github.com/Azure/azure-sdk-for-go/arm/disk", "revision": "ecf40e315d5ab0ca6d7b3b7f7fbb5c1577814813", @@ -59,6 +60,7 @@ "versionExact": "v8.1.0-beta" }, { + "checksumSHA1": "alxwmuEr53BrRKt7DMwL/Kia7pw=", "comment": "v2.1.1-beta-8-gca4d906", "path": "github.com/Azure/azure-sdk-for-go/arm/documentdb", "revision": "ecf40e315d5ab0ca6d7b3b7f7fbb5c1577814813", @@ -67,6 +69,7 @@ "versionExact": "v8.1.0-beta" }, { + "checksumSHA1": "ro1i9qoJcSgbWgV7D93wXhBwoL8=", "path": "github.com/Azure/azure-sdk-for-go/arm/eventhub", "revision": "ecf40e315d5ab0ca6d7b3b7f7fbb5c1577814813", "revisionTime": "2017-03-02T00:14:02Z",