vendor: update all dependencies to latest versions
This commit is contained in:
+3
-5
@@ -1,5 +1,4 @@
|
||||
// Package servermanagement implements the Azure ARM Servermanagement service
|
||||
// API version 2016-07-01-preview.
|
||||
// Package servermanagement implements the Azure ARM Servermanagement service API version 2016-07-01-preview.
|
||||
//
|
||||
// REST API for Azure Server Management Service.
|
||||
package servermanagement
|
||||
@@ -18,9 +17,8 @@ package servermanagement
|
||||
// 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"
|
||||
|
||||
+138
-54
@@ -14,9 +14,8 @@ package servermanagement
|
||||
// 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"
|
||||
@@ -25,7 +24,7 @@ import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
// GatewayClient is the rEST API for Azure Server Management Service.
|
||||
// GatewayClient is the REST API for Azure Server Management Service.
|
||||
type GatewayClient struct {
|
||||
ManagementClient
|
||||
}
|
||||
@@ -40,15 +39,13 @@ func NewGatewayClientWithBaseURI(baseURI string, subscriptionID string) GatewayC
|
||||
return GatewayClient{NewWithBaseURI(baseURI, subscriptionID)}
|
||||
}
|
||||
|
||||
// Create creates or updates a ManagementService gateway. This method may poll
|
||||
// for completion. Polling can be canceled by passing the cancel channel
|
||||
// argument. The channel will be used to cancel polling and any outstanding
|
||||
// HTTP requests.
|
||||
// Create creates or updates a ManagementService gateway. This method may poll for completion. Polling can be canceled
|
||||
// by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP
|
||||
// requests.
|
||||
//
|
||||
// resourceGroupName is the resource group name uniquely identifies the
|
||||
// resource group within the user subscriptionId. gatewayName is the gateway
|
||||
// name (256 characters maximum). gatewayParameters is parameters supplied to
|
||||
// the CreateOrUpdate operation.
|
||||
// resourceGroupName is the resource group name uniquely identifies the resource group within the user subscriptionId.
|
||||
// gatewayName is the gateway name (256 characters maximum). gatewayParameters is parameters supplied to the
|
||||
// CreateOrUpdate operation.
|
||||
func (client GatewayClient) Create(resourceGroupName string, gatewayName string, gatewayParameters GatewayParameters, cancel <-chan struct{}) (<-chan GatewayResource, <-chan error) {
|
||||
resultChan := make(chan GatewayResource, 1)
|
||||
errChan := make(chan error, 1)
|
||||
@@ -70,8 +67,10 @@ func (client GatewayClient) Create(resourceGroupName string, gatewayName string,
|
||||
var err error
|
||||
var result GatewayResource
|
||||
defer func() {
|
||||
if err != nil {
|
||||
errChan <- err
|
||||
}
|
||||
resultChan <- result
|
||||
errChan <- err
|
||||
close(resultChan)
|
||||
close(errChan)
|
||||
}()
|
||||
@@ -142,9 +141,8 @@ func (client GatewayClient) CreateResponder(resp *http.Response) (result Gateway
|
||||
|
||||
// Delete deletes a gateway from a resource group.
|
||||
//
|
||||
// resourceGroupName is the resource group name uniquely identifies the
|
||||
// resource group within the user subscriptionId. gatewayName is the gateway
|
||||
// name (256 characters maximum).
|
||||
// resourceGroupName is the resource group name uniquely identifies the resource group within the user subscriptionId.
|
||||
// gatewayName is the gateway name (256 characters maximum).
|
||||
func (client GatewayClient) Delete(resourceGroupName string, gatewayName string) (result autorest.Response, err error) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
@@ -219,11 +217,9 @@ func (client GatewayClient) DeleteResponder(resp *http.Response) (result autores
|
||||
|
||||
// Get gets a gateway.
|
||||
//
|
||||
// resourceGroupName is the resource group name uniquely identifies the
|
||||
// resource group within the user subscriptionId. gatewayName is the gateway
|
||||
// name (256 characters maximum) expand is gets subscription credentials which
|
||||
// uniquely identify Microsoft Azure subscription. The subscription ID forms
|
||||
// part of the URI for every service call.
|
||||
// resourceGroupName is the resource group name uniquely identifies the resource group within the user subscriptionId.
|
||||
// gatewayName is the gateway name (256 characters maximum) expand is gets subscription credentials which uniquely
|
||||
// identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
|
||||
func (client GatewayClient) Get(resourceGroupName string, gatewayName string, expand GatewayExpandOption) (result GatewayResource, err error) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
@@ -300,13 +296,11 @@ func (client GatewayClient) GetResponder(resp *http.Response) (result GatewayRes
|
||||
return
|
||||
}
|
||||
|
||||
// GetProfile gets a gateway profile. This method may poll for completion.
|
||||
// Polling can be canceled by passing the cancel channel argument. The channel
|
||||
// will be used to cancel polling and any outstanding HTTP requests.
|
||||
// GetProfile gets a gateway profile. This method may poll for completion. Polling can be canceled by passing the
|
||||
// cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.
|
||||
//
|
||||
// resourceGroupName is the resource group name uniquely identifies the
|
||||
// resource group within the user subscriptionId. gatewayName is the gateway
|
||||
// name (256 characters maximum).
|
||||
// resourceGroupName is the resource group name uniquely identifies the resource group within the user subscriptionId.
|
||||
// gatewayName is the gateway name (256 characters maximum).
|
||||
func (client GatewayClient) GetProfile(resourceGroupName string, gatewayName string, cancel <-chan struct{}) (<-chan GatewayProfile, <-chan error) {
|
||||
resultChan := make(chan GatewayProfile, 1)
|
||||
errChan := make(chan error, 1)
|
||||
@@ -328,8 +322,10 @@ func (client GatewayClient) GetProfile(resourceGroupName string, gatewayName str
|
||||
var err error
|
||||
var result GatewayProfile
|
||||
defer func() {
|
||||
if err != nil {
|
||||
errChan <- err
|
||||
}
|
||||
resultChan <- result
|
||||
errChan <- err
|
||||
close(resultChan)
|
||||
close(errChan)
|
||||
}()
|
||||
@@ -481,10 +477,54 @@ func (client GatewayClient) ListNextResults(lastResults GatewayResources) (resul
|
||||
return
|
||||
}
|
||||
|
||||
// ListComplete gets all elements from the list without paging.
|
||||
func (client GatewayClient) ListComplete(cancel <-chan struct{}) (<-chan GatewayResource, <-chan error) {
|
||||
resultChan := make(chan GatewayResource)
|
||||
errChan := make(chan error, 1)
|
||||
go func() {
|
||||
defer func() {
|
||||
close(resultChan)
|
||||
close(errChan)
|
||||
}()
|
||||
list, err := client.List()
|
||||
if err != nil {
|
||||
errChan <- err
|
||||
return
|
||||
}
|
||||
if list.Value != nil {
|
||||
for _, item := range *list.Value {
|
||||
select {
|
||||
case <-cancel:
|
||||
return
|
||||
case resultChan <- item:
|
||||
// Intentionally left blank
|
||||
}
|
||||
}
|
||||
}
|
||||
for list.NextLink != nil {
|
||||
list, err = client.ListNextResults(list)
|
||||
if err != nil {
|
||||
errChan <- err
|
||||
return
|
||||
}
|
||||
if list.Value != nil {
|
||||
for _, item := range *list.Value {
|
||||
select {
|
||||
case <-cancel:
|
||||
return
|
||||
case resultChan <- item:
|
||||
// Intentionally left blank
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}()
|
||||
return resultChan, errChan
|
||||
}
|
||||
|
||||
// ListForResourceGroup returns gateways in a resource group.
|
||||
//
|
||||
// resourceGroupName is the resource group name uniquely identifies the
|
||||
// resource group within the user subscriptionId.
|
||||
// resourceGroupName is the resource group name uniquely identifies the resource group within the user subscriptionId.
|
||||
func (client GatewayClient) ListForResourceGroup(resourceGroupName string) (result GatewayResources, err error) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
@@ -577,14 +617,56 @@ func (client GatewayClient) ListForResourceGroupNextResults(lastResults GatewayR
|
||||
return
|
||||
}
|
||||
|
||||
// RegenerateProfile regenerate a gateway's profile This method may poll for
|
||||
// completion. Polling can be canceled by passing the cancel channel argument.
|
||||
// The channel will be used to cancel polling and any outstanding HTTP
|
||||
// requests.
|
||||
// ListForResourceGroupComplete gets all elements from the list without paging.
|
||||
func (client GatewayClient) ListForResourceGroupComplete(resourceGroupName string, cancel <-chan struct{}) (<-chan GatewayResource, <-chan error) {
|
||||
resultChan := make(chan GatewayResource)
|
||||
errChan := make(chan error, 1)
|
||||
go func() {
|
||||
defer func() {
|
||||
close(resultChan)
|
||||
close(errChan)
|
||||
}()
|
||||
list, err := client.ListForResourceGroup(resourceGroupName)
|
||||
if err != nil {
|
||||
errChan <- err
|
||||
return
|
||||
}
|
||||
if list.Value != nil {
|
||||
for _, item := range *list.Value {
|
||||
select {
|
||||
case <-cancel:
|
||||
return
|
||||
case resultChan <- item:
|
||||
// Intentionally left blank
|
||||
}
|
||||
}
|
||||
}
|
||||
for list.NextLink != nil {
|
||||
list, err = client.ListForResourceGroupNextResults(list)
|
||||
if err != nil {
|
||||
errChan <- err
|
||||
return
|
||||
}
|
||||
if list.Value != nil {
|
||||
for _, item := range *list.Value {
|
||||
select {
|
||||
case <-cancel:
|
||||
return
|
||||
case resultChan <- item:
|
||||
// Intentionally left blank
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}()
|
||||
return resultChan, errChan
|
||||
}
|
||||
|
||||
// RegenerateProfile regenerate a gateway's profile This method may poll for completion. Polling can be canceled by
|
||||
// passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.
|
||||
//
|
||||
// resourceGroupName is the resource group name uniquely identifies the
|
||||
// resource group within the user subscriptionId. gatewayName is the gateway
|
||||
// name (256 characters maximum).
|
||||
// resourceGroupName is the resource group name uniquely identifies the resource group within the user subscriptionId.
|
||||
// gatewayName is the gateway name (256 characters maximum).
|
||||
func (client GatewayClient) RegenerateProfile(resourceGroupName string, gatewayName string, cancel <-chan struct{}) (<-chan autorest.Response, <-chan error) {
|
||||
resultChan := make(chan autorest.Response, 1)
|
||||
errChan := make(chan error, 1)
|
||||
@@ -606,8 +688,10 @@ func (client GatewayClient) RegenerateProfile(resourceGroupName string, gatewayN
|
||||
var err error
|
||||
var result autorest.Response
|
||||
defer func() {
|
||||
if err != nil {
|
||||
errChan <- err
|
||||
}
|
||||
resultChan <- result
|
||||
errChan <- err
|
||||
close(resultChan)
|
||||
close(errChan)
|
||||
}()
|
||||
@@ -673,15 +757,13 @@ func (client GatewayClient) RegenerateProfileResponder(resp *http.Response) (res
|
||||
return
|
||||
}
|
||||
|
||||
// Update updates a gateway belonging to a resource group. This method may poll
|
||||
// for completion. Polling can be canceled by passing the cancel channel
|
||||
// argument. The channel will be used to cancel polling and any outstanding
|
||||
// HTTP requests.
|
||||
// Update updates a gateway belonging to a resource group. This method may poll for completion. Polling can be canceled
|
||||
// by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP
|
||||
// requests.
|
||||
//
|
||||
// resourceGroupName is the resource group name uniquely identifies the
|
||||
// resource group within the user subscriptionId. gatewayName is the gateway
|
||||
// name (256 characters maximum). gatewayParameters is parameters supplied to
|
||||
// the Update operation.
|
||||
// resourceGroupName is the resource group name uniquely identifies the resource group within the user subscriptionId.
|
||||
// gatewayName is the gateway name (256 characters maximum). gatewayParameters is parameters supplied to the Update
|
||||
// operation.
|
||||
func (client GatewayClient) Update(resourceGroupName string, gatewayName string, gatewayParameters GatewayParameters, cancel <-chan struct{}) (<-chan GatewayResource, <-chan error) {
|
||||
resultChan := make(chan GatewayResource, 1)
|
||||
errChan := make(chan error, 1)
|
||||
@@ -703,8 +785,10 @@ func (client GatewayClient) Update(resourceGroupName string, gatewayName string,
|
||||
var err error
|
||||
var result GatewayResource
|
||||
defer func() {
|
||||
if err != nil {
|
||||
errChan <- err
|
||||
}
|
||||
resultChan <- result
|
||||
errChan <- err
|
||||
close(resultChan)
|
||||
close(errChan)
|
||||
}()
|
||||
@@ -773,13 +857,11 @@ func (client GatewayClient) UpdateResponder(resp *http.Response) (result Gateway
|
||||
return
|
||||
}
|
||||
|
||||
// Upgrade upgrades a gateway. This method may poll for completion. Polling can
|
||||
// be canceled by passing the cancel channel argument. The channel will be used
|
||||
// to cancel polling and any outstanding HTTP requests.
|
||||
// Upgrade upgrades a gateway. This method may poll for completion. Polling can be canceled by passing the cancel
|
||||
// channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.
|
||||
//
|
||||
// resourceGroupName is the resource group name uniquely identifies the
|
||||
// resource group within the user subscriptionId. gatewayName is the gateway
|
||||
// name (256 characters maximum).
|
||||
// resourceGroupName is the resource group name uniquely identifies the resource group within the user subscriptionId.
|
||||
// gatewayName is the gateway name (256 characters maximum).
|
||||
func (client GatewayClient) Upgrade(resourceGroupName string, gatewayName string, cancel <-chan struct{}) (<-chan autorest.Response, <-chan error) {
|
||||
resultChan := make(chan autorest.Response, 1)
|
||||
errChan := make(chan error, 1)
|
||||
@@ -801,8 +883,10 @@ func (client GatewayClient) Upgrade(resourceGroupName string, gatewayName string
|
||||
var err error
|
||||
var result autorest.Response
|
||||
defer func() {
|
||||
if err != nil {
|
||||
errChan <- err
|
||||
}
|
||||
resultChan <- result
|
||||
errChan <- err
|
||||
close(resultChan)
|
||||
close(errChan)
|
||||
}()
|
||||
|
||||
+13
-23
@@ -14,9 +14,8 @@ package servermanagement
|
||||
// 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"
|
||||
@@ -29,8 +28,7 @@ import (
|
||||
type CredentialDataFormat string
|
||||
|
||||
const (
|
||||
// RsaEncrypted specifies the rsa encrypted state for credential data
|
||||
// format.
|
||||
// RsaEncrypted specifies the rsa encrypted state for credential data format.
|
||||
RsaEncrypted CredentialDataFormat = "RsaEncrypted"
|
||||
)
|
||||
|
||||
@@ -99,8 +97,7 @@ type Error struct {
|
||||
Fields *string `json:"fields,omitempty"`
|
||||
}
|
||||
|
||||
// GatewayParameters is collection of parameters for operations on a gateway
|
||||
// resource.
|
||||
// GatewayParameters is collection of parameters for operations on a gateway resource.
|
||||
type GatewayParameters struct {
|
||||
Location *string `json:"location,omitempty"`
|
||||
Tags *map[string]interface{} `json:"tags,omitempty"`
|
||||
@@ -112,8 +109,7 @@ type GatewayParametersProperties struct {
|
||||
UpgradeMode UpgradeMode `json:"upgradeMode,omitempty"`
|
||||
}
|
||||
|
||||
// GatewayProfile is jSON properties that the gateway service uses know how to
|
||||
// communicate with the resource.
|
||||
// GatewayProfile is JSON properties that the gateway service uses know how to communicate with the resource.
|
||||
type GatewayProfile struct {
|
||||
autorest.Response `json:"-"`
|
||||
DataPlaneServiceBaseAddress *string `json:"dataPlaneServiceBaseAddress,omitempty"`
|
||||
@@ -252,8 +248,7 @@ func (client NodeResources) NodeResourcesPreparer() (*http.Request, error) {
|
||||
autorest.WithBaseURL(to.String(client.NextLink)))
|
||||
}
|
||||
|
||||
// PowerShellCommandParameters is the parameters to a PowerShell script
|
||||
// execution command.
|
||||
// PowerShellCommandParameters is the parameters to a PowerShell script execution command.
|
||||
type PowerShellCommandParameters struct {
|
||||
*PowerShellCommandParametersProperties `json:"properties,omitempty"`
|
||||
}
|
||||
@@ -277,8 +272,7 @@ type PowerShellCommandResult struct {
|
||||
Descriptions *[]PromptFieldDescription `json:"descriptions,omitempty"`
|
||||
}
|
||||
|
||||
// PowerShellCommandResults is a collection of results from a PowerShell
|
||||
// command.
|
||||
// PowerShellCommandResults is a collection of results from a PowerShell command.
|
||||
type PowerShellCommandResults struct {
|
||||
autorest.Response `json:"-"`
|
||||
Results *[]PowerShellCommandResult `json:"results,omitempty"`
|
||||
@@ -299,8 +293,7 @@ type PowerShellCommandStatus struct {
|
||||
*PowerShellCommandResults `json:"properties,omitempty"`
|
||||
}
|
||||
|
||||
// PowerShellSessionResource is a PowerShell session resource (practically
|
||||
// equivalent to a runspace instance).
|
||||
// PowerShellSessionResource is a PowerShell session resource (practically equivalent to a runspace instance).
|
||||
type PowerShellSessionResource struct {
|
||||
autorest.Response `json:"-"`
|
||||
ID *string `json:"id,omitempty"`
|
||||
@@ -330,21 +323,19 @@ type PowerShellSessionResources struct {
|
||||
NextLink *string `json:"nextLink,omitempty"`
|
||||
}
|
||||
|
||||
// PowerShellTabCompletionParameters is collection of parameters for PowerShell
|
||||
// tab completion.
|
||||
// PowerShellTabCompletionParameters is collection of parameters for PowerShell tab completion.
|
||||
type PowerShellTabCompletionParameters struct {
|
||||
Command *string `json:"command,omitempty"`
|
||||
}
|
||||
|
||||
// PowerShellTabCompletionResults is an array of strings representing the
|
||||
// different values that can be selected through.
|
||||
// PowerShellTabCompletionResults is an array of strings representing the different values that can be selected
|
||||
// through.
|
||||
type PowerShellTabCompletionResults struct {
|
||||
autorest.Response `json:"-"`
|
||||
Results *[]string `json:"results,omitempty"`
|
||||
}
|
||||
|
||||
// PromptFieldDescription is field description for the implementation of
|
||||
// PSHostUserInterface.Prompt
|
||||
// PromptFieldDescription is field description for the implementation of PSHostUserInterface.Prompt
|
||||
type PromptFieldDescription struct {
|
||||
Name *string `json:"name,omitempty"`
|
||||
Label *string `json:"label,omitempty"`
|
||||
@@ -368,8 +359,7 @@ type Resource struct {
|
||||
Etag *string `json:"etag,omitempty"`
|
||||
}
|
||||
|
||||
// SessionParameters is parameter collection for creation and other operations
|
||||
// on sessions.
|
||||
// SessionParameters is parameter collection for creation and other operations on sessions.
|
||||
type SessionParameters struct {
|
||||
*SessionParametersProperties `json:"properties,omitempty"`
|
||||
}
|
||||
|
||||
+114
-29
@@ -14,9 +14,8 @@ package servermanagement
|
||||
// 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"
|
||||
@@ -25,7 +24,7 @@ import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
// NodeClient is the rEST API for Azure Server Management Service.
|
||||
// NodeClient is the REST API for Azure Server Management Service.
|
||||
type NodeClient struct {
|
||||
ManagementClient
|
||||
}
|
||||
@@ -40,15 +39,12 @@ func NewNodeClientWithBaseURI(baseURI string, subscriptionID string) NodeClient
|
||||
return NodeClient{NewWithBaseURI(baseURI, subscriptionID)}
|
||||
}
|
||||
|
||||
// Create creates or updates a management node. This method may poll for
|
||||
// completion. Polling can be canceled by passing the cancel channel argument.
|
||||
// The channel will be used to cancel polling and any outstanding HTTP
|
||||
// requests.
|
||||
// Create creates or updates a management node. This method may poll for completion. Polling can be canceled by passing
|
||||
// the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.
|
||||
//
|
||||
// resourceGroupName is the resource group name uniquely identifies the
|
||||
// resource group within the user subscriptionId. nodeName is the node name
|
||||
// (256 characters maximum). gatewayParameters is parameters supplied to the
|
||||
// CreateOrUpdate operation.
|
||||
// resourceGroupName is the resource group name uniquely identifies the resource group within the user subscriptionId.
|
||||
// nodeName is the node name (256 characters maximum). gatewayParameters is parameters supplied to the CreateOrUpdate
|
||||
// operation.
|
||||
func (client NodeClient) Create(resourceGroupName string, nodeName string, gatewayParameters NodeParameters, cancel <-chan struct{}) (<-chan NodeResource, <-chan error) {
|
||||
resultChan := make(chan NodeResource, 1)
|
||||
errChan := make(chan error, 1)
|
||||
@@ -70,8 +66,10 @@ func (client NodeClient) Create(resourceGroupName string, nodeName string, gatew
|
||||
var err error
|
||||
var result NodeResource
|
||||
defer func() {
|
||||
if err != nil {
|
||||
errChan <- err
|
||||
}
|
||||
resultChan <- result
|
||||
errChan <- err
|
||||
close(resultChan)
|
||||
close(errChan)
|
||||
}()
|
||||
@@ -142,9 +140,8 @@ func (client NodeClient) CreateResponder(resp *http.Response) (result NodeResour
|
||||
|
||||
// Delete deletes a management node
|
||||
//
|
||||
// resourceGroupName is the resource group name uniquely identifies the
|
||||
// resource group within the user subscriptionId. nodeName is the node name
|
||||
// (256 characters maximum).
|
||||
// resourceGroupName is the resource group name uniquely identifies the resource group within the user subscriptionId.
|
||||
// nodeName is the node name (256 characters maximum).
|
||||
func (client NodeClient) Delete(resourceGroupName string, nodeName string) (result autorest.Response, err error) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
@@ -219,9 +216,8 @@ func (client NodeClient) DeleteResponder(resp *http.Response) (result autorest.R
|
||||
|
||||
// Get gets a management node.
|
||||
//
|
||||
// resourceGroupName is the resource group name uniquely identifies the
|
||||
// resource group within the user subscriptionId. nodeName is the node name
|
||||
// (256 characters maximum).
|
||||
// resourceGroupName is the resource group name uniquely identifies the resource group within the user subscriptionId.
|
||||
// nodeName is the node name (256 characters maximum).
|
||||
func (client NodeClient) Get(resourceGroupName string, nodeName string) (result NodeResource, err error) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
@@ -380,10 +376,54 @@ func (client NodeClient) ListNextResults(lastResults NodeResources) (result Node
|
||||
return
|
||||
}
|
||||
|
||||
// ListComplete gets all elements from the list without paging.
|
||||
func (client NodeClient) ListComplete(cancel <-chan struct{}) (<-chan NodeResource, <-chan error) {
|
||||
resultChan := make(chan NodeResource)
|
||||
errChan := make(chan error, 1)
|
||||
go func() {
|
||||
defer func() {
|
||||
close(resultChan)
|
||||
close(errChan)
|
||||
}()
|
||||
list, err := client.List()
|
||||
if err != nil {
|
||||
errChan <- err
|
||||
return
|
||||
}
|
||||
if list.Value != nil {
|
||||
for _, item := range *list.Value {
|
||||
select {
|
||||
case <-cancel:
|
||||
return
|
||||
case resultChan <- item:
|
||||
// Intentionally left blank
|
||||
}
|
||||
}
|
||||
}
|
||||
for list.NextLink != nil {
|
||||
list, err = client.ListNextResults(list)
|
||||
if err != nil {
|
||||
errChan <- err
|
||||
return
|
||||
}
|
||||
if list.Value != nil {
|
||||
for _, item := range *list.Value {
|
||||
select {
|
||||
case <-cancel:
|
||||
return
|
||||
case resultChan <- item:
|
||||
// Intentionally left blank
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}()
|
||||
return resultChan, errChan
|
||||
}
|
||||
|
||||
// ListForResourceGroup lists nodes in a resource group.
|
||||
//
|
||||
// resourceGroupName is the resource group name uniquely identifies the
|
||||
// resource group within the user subscriptionId.
|
||||
// resourceGroupName is the resource group name uniquely identifies the resource group within the user subscriptionId.
|
||||
func (client NodeClient) ListForResourceGroup(resourceGroupName string) (result NodeResources, err error) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
@@ -476,14 +516,57 @@ func (client NodeClient) ListForResourceGroupNextResults(lastResults NodeResourc
|
||||
return
|
||||
}
|
||||
|
||||
// Update updates a management node. This method may poll for completion.
|
||||
// Polling can be canceled by passing the cancel channel argument. The channel
|
||||
// will be used to cancel polling and any outstanding HTTP requests.
|
||||
// ListForResourceGroupComplete gets all elements from the list without paging.
|
||||
func (client NodeClient) ListForResourceGroupComplete(resourceGroupName string, cancel <-chan struct{}) (<-chan NodeResource, <-chan error) {
|
||||
resultChan := make(chan NodeResource)
|
||||
errChan := make(chan error, 1)
|
||||
go func() {
|
||||
defer func() {
|
||||
close(resultChan)
|
||||
close(errChan)
|
||||
}()
|
||||
list, err := client.ListForResourceGroup(resourceGroupName)
|
||||
if err != nil {
|
||||
errChan <- err
|
||||
return
|
||||
}
|
||||
if list.Value != nil {
|
||||
for _, item := range *list.Value {
|
||||
select {
|
||||
case <-cancel:
|
||||
return
|
||||
case resultChan <- item:
|
||||
// Intentionally left blank
|
||||
}
|
||||
}
|
||||
}
|
||||
for list.NextLink != nil {
|
||||
list, err = client.ListForResourceGroupNextResults(list)
|
||||
if err != nil {
|
||||
errChan <- err
|
||||
return
|
||||
}
|
||||
if list.Value != nil {
|
||||
for _, item := range *list.Value {
|
||||
select {
|
||||
case <-cancel:
|
||||
return
|
||||
case resultChan <- item:
|
||||
// Intentionally left blank
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}()
|
||||
return resultChan, errChan
|
||||
}
|
||||
|
||||
// Update updates a management node. This method may poll for completion. Polling can be canceled by passing the cancel
|
||||
// channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.
|
||||
//
|
||||
// resourceGroupName is the resource group name uniquely identifies the
|
||||
// resource group within the user subscriptionId. nodeName is the node name
|
||||
// (256 characters maximum). nodeParameters is parameters supplied to the
|
||||
// CreateOrUpdate operation.
|
||||
// resourceGroupName is the resource group name uniquely identifies the resource group within the user subscriptionId.
|
||||
// nodeName is the node name (256 characters maximum). nodeParameters is parameters supplied to the CreateOrUpdate
|
||||
// operation.
|
||||
func (client NodeClient) Update(resourceGroupName string, nodeName string, nodeParameters NodeParameters, cancel <-chan struct{}) (<-chan NodeResource, <-chan error) {
|
||||
resultChan := make(chan NodeResource, 1)
|
||||
errChan := make(chan error, 1)
|
||||
@@ -505,8 +588,10 @@ func (client NodeClient) Update(resourceGroupName string, nodeName string, nodeP
|
||||
var err error
|
||||
var result NodeResource
|
||||
defer func() {
|
||||
if err != nil {
|
||||
errChan <- err
|
||||
}
|
||||
resultChan <- result
|
||||
errChan <- err
|
||||
close(resultChan)
|
||||
close(errChan)
|
||||
}()
|
||||
|
||||
+48
-56
@@ -14,9 +14,8 @@ package servermanagement
|
||||
// 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"
|
||||
@@ -25,7 +24,7 @@ import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
// PowerShellClient is the rEST API for Azure Server Management Service.
|
||||
// PowerShellClient is the REST API for Azure Server Management Service.
|
||||
type PowerShellClient struct {
|
||||
ManagementClient
|
||||
}
|
||||
@@ -35,21 +34,17 @@ func NewPowerShellClient(subscriptionID string) PowerShellClient {
|
||||
return NewPowerShellClientWithBaseURI(DefaultBaseURI, subscriptionID)
|
||||
}
|
||||
|
||||
// NewPowerShellClientWithBaseURI creates an instance of the PowerShellClient
|
||||
// client.
|
||||
// NewPowerShellClientWithBaseURI creates an instance of the PowerShellClient client.
|
||||
func NewPowerShellClientWithBaseURI(baseURI string, subscriptionID string) PowerShellClient {
|
||||
return PowerShellClient{NewWithBaseURI(baseURI, subscriptionID)}
|
||||
}
|
||||
|
||||
// CancelCommand cancels a PowerShell command. This method may poll for
|
||||
// completion. Polling can be canceled by passing the cancel channel argument.
|
||||
// The channel will be used to cancel polling and any outstanding HTTP
|
||||
// requests.
|
||||
// CancelCommand cancels a PowerShell command. This method may poll for completion. Polling can be canceled by passing
|
||||
// the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.
|
||||
//
|
||||
// resourceGroupName is the resource group name uniquely identifies the
|
||||
// resource group within the user subscriptionId. nodeName is the node name
|
||||
// (256 characters maximum). session is the sessionId from the user. pssession
|
||||
// is the PowerShell sessionId from the user.
|
||||
// resourceGroupName is the resource group name uniquely identifies the resource group within the user subscriptionId.
|
||||
// nodeName is the node name (256 characters maximum). session is the sessionId from the user. pssession is the
|
||||
// PowerShell sessionId from the user.
|
||||
func (client PowerShellClient) CancelCommand(resourceGroupName string, nodeName string, session string, pssession string, cancel <-chan struct{}) (<-chan PowerShellCommandResults, <-chan error) {
|
||||
resultChan := make(chan PowerShellCommandResults, 1)
|
||||
errChan := make(chan error, 1)
|
||||
@@ -71,8 +66,10 @@ func (client PowerShellClient) CancelCommand(resourceGroupName string, nodeName
|
||||
var err error
|
||||
var result PowerShellCommandResults
|
||||
defer func() {
|
||||
if err != nil {
|
||||
errChan <- err
|
||||
}
|
||||
resultChan <- result
|
||||
errChan <- err
|
||||
close(resultChan)
|
||||
close(errChan)
|
||||
}()
|
||||
@@ -141,15 +138,12 @@ func (client PowerShellClient) CancelCommandResponder(resp *http.Response) (resu
|
||||
return
|
||||
}
|
||||
|
||||
// CreateSession creates a PowerShell session. This method may poll for
|
||||
// completion. Polling can be canceled by passing the cancel channel argument.
|
||||
// The channel will be used to cancel polling and any outstanding HTTP
|
||||
// requests.
|
||||
// CreateSession creates a PowerShell session. This method may poll for completion. Polling can be canceled by passing
|
||||
// the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.
|
||||
//
|
||||
// resourceGroupName is the resource group name uniquely identifies the
|
||||
// resource group within the user subscriptionId. nodeName is the node name
|
||||
// (256 characters maximum). session is the sessionId from the user. pssession
|
||||
// is the PowerShell sessionId from the user.
|
||||
// resourceGroupName is the resource group name uniquely identifies the resource group within the user subscriptionId.
|
||||
// nodeName is the node name (256 characters maximum). session is the sessionId from the user. pssession is the
|
||||
// PowerShell sessionId from the user.
|
||||
func (client PowerShellClient) CreateSession(resourceGroupName string, nodeName string, session string, pssession string, cancel <-chan struct{}) (<-chan PowerShellSessionResource, <-chan error) {
|
||||
resultChan := make(chan PowerShellSessionResource, 1)
|
||||
errChan := make(chan error, 1)
|
||||
@@ -171,8 +165,10 @@ func (client PowerShellClient) CreateSession(resourceGroupName string, nodeName
|
||||
var err error
|
||||
var result PowerShellSessionResource
|
||||
defer func() {
|
||||
if err != nil {
|
||||
errChan <- err
|
||||
}
|
||||
resultChan <- result
|
||||
errChan <- err
|
||||
close(resultChan)
|
||||
close(errChan)
|
||||
}()
|
||||
@@ -243,11 +239,9 @@ func (client PowerShellClient) CreateSessionResponder(resp *http.Response) (resu
|
||||
|
||||
// GetCommandStatus gets the status of a command.
|
||||
//
|
||||
// resourceGroupName is the resource group name uniquely identifies the
|
||||
// resource group within the user subscriptionId. nodeName is the node name
|
||||
// (256 characters maximum). session is the sessionId from the user. pssession
|
||||
// is the PowerShell sessionId from the user. expand is gets current output
|
||||
// from an ongoing call.
|
||||
// resourceGroupName is the resource group name uniquely identifies the resource group within the user subscriptionId.
|
||||
// nodeName is the node name (256 characters maximum). session is the sessionId from the user. pssession is the
|
||||
// PowerShell sessionId from the user. expand is gets current output from an ongoing call.
|
||||
func (client PowerShellClient) GetCommandStatus(resourceGroupName string, nodeName string, session string, pssession string, expand PowerShellExpandOption) (result PowerShellCommandStatus, err error) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
@@ -326,16 +320,14 @@ func (client PowerShellClient) GetCommandStatusResponder(resp *http.Response) (r
|
||||
return
|
||||
}
|
||||
|
||||
// InvokeCommand creates a PowerShell script and invokes it. This method may
|
||||
// poll for completion. Polling can be canceled by passing the cancel channel
|
||||
// argument. The channel will be used to cancel polling and any outstanding
|
||||
// HTTP requests.
|
||||
// InvokeCommand creates a PowerShell script and invokes it. This method may poll for completion. Polling can be
|
||||
// canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP
|
||||
// requests.
|
||||
//
|
||||
// resourceGroupName is the resource group name uniquely identifies the
|
||||
// resource group within the user subscriptionId. nodeName is the node name
|
||||
// (256 characters maximum). session is the sessionId from the user. pssession
|
||||
// is the PowerShell sessionId from the user. powerShellCommandParameters is
|
||||
// parameters supplied to the Invoke PowerShell Command operation.
|
||||
// resourceGroupName is the resource group name uniquely identifies the resource group within the user subscriptionId.
|
||||
// nodeName is the node name (256 characters maximum). session is the sessionId from the user. pssession is the
|
||||
// PowerShell sessionId from the user. powerShellCommandParameters is parameters supplied to the Invoke PowerShell
|
||||
// Command operation.
|
||||
func (client PowerShellClient) InvokeCommand(resourceGroupName string, nodeName string, session string, pssession string, powerShellCommandParameters PowerShellCommandParameters, cancel <-chan struct{}) (<-chan PowerShellCommandResults, <-chan error) {
|
||||
resultChan := make(chan PowerShellCommandResults, 1)
|
||||
errChan := make(chan error, 1)
|
||||
@@ -357,8 +349,10 @@ func (client PowerShellClient) InvokeCommand(resourceGroupName string, nodeName
|
||||
var err error
|
||||
var result PowerShellCommandResults
|
||||
defer func() {
|
||||
if err != nil {
|
||||
errChan <- err
|
||||
}
|
||||
resultChan <- result
|
||||
errChan <- err
|
||||
close(resultChan)
|
||||
close(errChan)
|
||||
}()
|
||||
@@ -431,9 +425,8 @@ func (client PowerShellClient) InvokeCommandResponder(resp *http.Response) (resu
|
||||
|
||||
// ListSession gets a list of the active sessions.
|
||||
//
|
||||
// resourceGroupName is the resource group name uniquely identifies the
|
||||
// resource group within the user subscriptionId. nodeName is the node name
|
||||
// (256 characters maximum). session is the sessionId from the user.
|
||||
// resourceGroupName is the resource group name uniquely identifies the resource group within the user subscriptionId.
|
||||
// nodeName is the node name (256 characters maximum). session is the sessionId from the user.
|
||||
func (client PowerShellClient) ListSession(resourceGroupName string, nodeName string, session string) (result PowerShellSessionResources, err error) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
@@ -510,11 +503,10 @@ func (client PowerShellClient) ListSessionResponder(resp *http.Response) (result
|
||||
|
||||
// TabCompletion gets tab completion values for a command.
|
||||
//
|
||||
// resourceGroupName is the resource group name uniquely identifies the
|
||||
// resource group within the user subscriptionId. nodeName is the node name
|
||||
// (256 characters maximum). session is the sessionId from the user. pssession
|
||||
// is the PowerShell sessionId from the user. powerShellTabCompletionParamters
|
||||
// is parameters supplied to the tab completion call.
|
||||
// resourceGroupName is the resource group name uniquely identifies the resource group within the user subscriptionId.
|
||||
// nodeName is the node name (256 characters maximum). session is the sessionId from the user. pssession is the
|
||||
// PowerShell sessionId from the user. powerShellTabCompletionParamters is parameters supplied to the tab completion
|
||||
// call.
|
||||
func (client PowerShellClient) TabCompletion(resourceGroupName string, nodeName string, session string, pssession string, powerShellTabCompletionParamters PowerShellTabCompletionParameters) (result PowerShellTabCompletionResults, err error) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
@@ -592,15 +584,13 @@ func (client PowerShellClient) TabCompletionResponder(resp *http.Response) (resu
|
||||
return
|
||||
}
|
||||
|
||||
// UpdateCommand updates a running PowerShell command with more data. This
|
||||
// method may poll for completion. Polling can be canceled by passing the
|
||||
// cancel channel argument. The channel will be used to cancel polling and any
|
||||
// outstanding HTTP requests.
|
||||
// UpdateCommand updates a running PowerShell command with more data. This method may poll for completion. Polling can
|
||||
// be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding
|
||||
// HTTP requests.
|
||||
//
|
||||
// resourceGroupName is the resource group name uniquely identifies the
|
||||
// resource group within the user subscriptionId. nodeName is the node name
|
||||
// (256 characters maximum). session is the sessionId from the user. pssession
|
||||
// is the PowerShell sessionId from the user.
|
||||
// resourceGroupName is the resource group name uniquely identifies the resource group within the user subscriptionId.
|
||||
// nodeName is the node name (256 characters maximum). session is the sessionId from the user. pssession is the
|
||||
// PowerShell sessionId from the user.
|
||||
func (client PowerShellClient) UpdateCommand(resourceGroupName string, nodeName string, session string, pssession string, cancel <-chan struct{}) (<-chan PowerShellCommandResults, <-chan error) {
|
||||
resultChan := make(chan PowerShellCommandResults, 1)
|
||||
errChan := make(chan error, 1)
|
||||
@@ -622,8 +612,10 @@ func (client PowerShellClient) UpdateCommand(resourceGroupName string, nodeName
|
||||
var err error
|
||||
var result PowerShellCommandResults
|
||||
defer func() {
|
||||
if err != nil {
|
||||
errChan <- err
|
||||
}
|
||||
resultChan <- result
|
||||
errChan <- err
|
||||
close(resultChan)
|
||||
close(errChan)
|
||||
}()
|
||||
|
||||
+15
-18
@@ -14,9 +14,8 @@ package servermanagement
|
||||
// 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"
|
||||
@@ -25,7 +24,7 @@ import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
// SessionClient is the rEST API for Azure Server Management Service.
|
||||
// SessionClient is the REST API for Azure Server Management Service.
|
||||
type SessionClient struct {
|
||||
ManagementClient
|
||||
}
|
||||
@@ -40,14 +39,12 @@ func NewSessionClientWithBaseURI(baseURI string, subscriptionID string) SessionC
|
||||
return SessionClient{NewWithBaseURI(baseURI, subscriptionID)}
|
||||
}
|
||||
|
||||
// Create creates a session for a node. This method may poll for completion.
|
||||
// Polling can be canceled by passing the cancel channel argument. The channel
|
||||
// will be used to cancel polling and any outstanding HTTP requests.
|
||||
// Create creates a session for a node. This method may poll for completion. Polling can be canceled by passing the
|
||||
// cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.
|
||||
//
|
||||
// resourceGroupName is the resource group name uniquely identifies the
|
||||
// resource group within the user subscriptionId. nodeName is the node name
|
||||
// (256 characters maximum). session is the sessionId from the user.
|
||||
// sessionParameters is parameters supplied to the CreateOrUpdate operation.
|
||||
// resourceGroupName is the resource group name uniquely identifies the resource group within the user subscriptionId.
|
||||
// nodeName is the node name (256 characters maximum). session is the sessionId from the user. sessionParameters is
|
||||
// parameters supplied to the CreateOrUpdate operation.
|
||||
func (client SessionClient) Create(resourceGroupName string, nodeName string, session string, sessionParameters SessionParameters, cancel <-chan struct{}) (<-chan SessionResource, <-chan error) {
|
||||
resultChan := make(chan SessionResource, 1)
|
||||
errChan := make(chan error, 1)
|
||||
@@ -69,8 +66,10 @@ func (client SessionClient) Create(resourceGroupName string, nodeName string, se
|
||||
var err error
|
||||
var result SessionResource
|
||||
defer func() {
|
||||
if err != nil {
|
||||
errChan <- err
|
||||
}
|
||||
resultChan <- result
|
||||
errChan <- err
|
||||
close(resultChan)
|
||||
close(errChan)
|
||||
}()
|
||||
@@ -142,9 +141,8 @@ func (client SessionClient) CreateResponder(resp *http.Response) (result Session
|
||||
|
||||
// Delete deletes a session for a node.
|
||||
//
|
||||
// resourceGroupName is the resource group name uniquely identifies the
|
||||
// resource group within the user subscriptionId. nodeName is the node name
|
||||
// (256 characters maximum). session is the sessionId from the user.
|
||||
// resourceGroupName is the resource group name uniquely identifies the resource group within the user subscriptionId.
|
||||
// nodeName is the node name (256 characters maximum). session is the sessionId from the user.
|
||||
func (client SessionClient) Delete(resourceGroupName string, nodeName string, session string) (result autorest.Response, err error) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
@@ -220,9 +218,8 @@ func (client SessionClient) DeleteResponder(resp *http.Response) (result autores
|
||||
|
||||
// Get gets a session for a node.
|
||||
//
|
||||
// resourceGroupName is the resource group name uniquely identifies the
|
||||
// resource group within the user subscriptionId. nodeName is the node name
|
||||
// (256 characters maximum). session is the sessionId from the user.
|
||||
// resourceGroupName is the resource group name uniquely identifies the resource group within the user subscriptionId.
|
||||
// nodeName is the node name (256 characters maximum). session is the sessionId from the user.
|
||||
func (client SessionClient) Get(resourceGroupName string, nodeName string, session string) (result SessionResource, err error) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
|
||||
+4
-5
@@ -14,16 +14,15 @@ package servermanagement
|
||||
// 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.
|
||||
|
||||
// UserAgent returns the UserAgent string to use when sending http.Requests.
|
||||
func UserAgent() string {
|
||||
return "Azure-SDK-For-Go/v10.1.0-beta arm-servermanagement/2016-07-01-preview"
|
||||
return "Azure-SDK-For-Go/v11.0.0-beta arm-servermanagement/2016-07-01-preview"
|
||||
}
|
||||
|
||||
// Version returns the semantic version (see http://semver.org) of the client.
|
||||
func Version() string {
|
||||
return "v10.1.0-beta"
|
||||
return "v11.0.0-beta"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user