vendor: update all dependencies to latest versions
This commit is contained in:
+5
-8
@@ -1,9 +1,7 @@
|
||||
// Package subscriptions implements the Azure ARM Subscriptions service API
|
||||
// version 2016-06-01.
|
||||
// Package subscriptions implements the Azure ARM Subscriptions service API version 2016-06-01.
|
||||
//
|
||||
// All resource groups and resources exist within subscriptions. These
|
||||
// operation enable you get information about your subscriptions and tenants. A
|
||||
// tenant is a dedicated instance of Azure Active Directory (Azure AD) for your
|
||||
// All resource groups and resources exist within subscriptions. These operation enable you get information about your
|
||||
// subscriptions and tenants. A tenant is a dedicated instance of Azure Active Directory (Azure AD) for your
|
||||
// organization.
|
||||
package subscriptions
|
||||
|
||||
@@ -21,9 +19,8 @@ package subscriptions
|
||||
// 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"
|
||||
|
||||
Generated
Vendored
Executable → Regular
+52
-10
@@ -14,9 +14,8 @@ package subscriptions
|
||||
// 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,10 +23,9 @@ import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
// GroupClient is the all resource groups and resources exist within
|
||||
// subscriptions. These operation enable you get information about your
|
||||
// subscriptions and tenants. A tenant is a dedicated instance of Azure Active
|
||||
// Directory (Azure AD) for your organization.
|
||||
// GroupClient is the all resource groups and resources exist within subscriptions. These operation enable you get
|
||||
// information about your subscriptions and tenants. A tenant is a dedicated instance of Azure Active Directory (Azure
|
||||
// AD) for your organization.
|
||||
type GroupClient struct {
|
||||
ManagementClient
|
||||
}
|
||||
@@ -186,9 +184,53 @@ func (client GroupClient) ListNextResults(lastResults ListResult) (result ListRe
|
||||
return
|
||||
}
|
||||
|
||||
// ListLocations this operation provides all the locations that are available
|
||||
// for resource providers; however, each resource provider may support a subset
|
||||
// of this list.
|
||||
// ListComplete gets all elements from the list without paging.
|
||||
func (client GroupClient) ListComplete(cancel <-chan struct{}) (<-chan Subscription, <-chan error) {
|
||||
resultChan := make(chan Subscription)
|
||||
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
|
||||
}
|
||||
|
||||
// ListLocations this operation provides all the locations that are available for resource providers; however, each
|
||||
// resource provider may support a subset of this list.
|
||||
//
|
||||
// subscriptionID is the ID of the target subscription.
|
||||
func (client GroupClient) ListLocations(subscriptionID string) (result LocationListResult, err error) {
|
||||
+3
-5
@@ -14,9 +14,8 @@ package subscriptions
|
||||
// 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"
|
||||
@@ -28,8 +27,7 @@ import (
|
||||
type SpendingLimit string
|
||||
|
||||
const (
|
||||
// CurrentPeriodOff specifies the current period off state for spending
|
||||
// limit.
|
||||
// CurrentPeriodOff specifies the current period off state for spending limit.
|
||||
CurrentPeriodOff SpendingLimit = "CurrentPeriodOff"
|
||||
// Off specifies the off state for spending limit.
|
||||
Off SpendingLimit = "Off"
|
||||
|
||||
+50
-7
@@ -14,9 +14,8 @@ package subscriptions
|
||||
// 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,10 +23,9 @@ import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
// TenantsClient is the all resource groups and resources exist within
|
||||
// subscriptions. These operation enable you get information about your
|
||||
// subscriptions and tenants. A tenant is a dedicated instance of Azure Active
|
||||
// Directory (Azure AD) for your organization.
|
||||
// TenantsClient is the all resource groups and resources exist within subscriptions. These operation enable you get
|
||||
// information about your subscriptions and tenants. A tenant is a dedicated instance of Azure Active Directory (Azure
|
||||
// AD) for your organization.
|
||||
type TenantsClient struct {
|
||||
ManagementClient
|
||||
}
|
||||
@@ -122,3 +120,48 @@ func (client TenantsClient) ListNextResults(lastResults TenantListResult) (resul
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// ListComplete gets all elements from the list without paging.
|
||||
func (client TenantsClient) ListComplete(cancel <-chan struct{}) (<-chan TenantIDDescription, <-chan error) {
|
||||
resultChan := make(chan TenantIDDescription)
|
||||
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
|
||||
}
|
||||
|
||||
+4
-5
@@ -14,16 +14,15 @@ package subscriptions
|
||||
// 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-subscriptions/2016-06-01"
|
||||
return "Azure-SDK-For-Go/v11.0.0-beta arm-subscriptions/2016-06-01"
|
||||
}
|
||||
|
||||
// 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