vendor: update all dependencies to latest versions
This commit is contained in:
Generated
Vendored
+165
-46
@@ -14,9 +14,8 @@ package resourcehealth
|
||||
// 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,31 +28,26 @@ type AvailabilityStatusesClient struct {
|
||||
ManagementClient
|
||||
}
|
||||
|
||||
// NewAvailabilityStatusesClient creates an instance of the
|
||||
// AvailabilityStatusesClient client.
|
||||
// NewAvailabilityStatusesClient creates an instance of the AvailabilityStatusesClient client.
|
||||
func NewAvailabilityStatusesClient(subscriptionID string, resourceType string) AvailabilityStatusesClient {
|
||||
return NewAvailabilityStatusesClientWithBaseURI(DefaultBaseURI, subscriptionID, resourceType)
|
||||
}
|
||||
|
||||
// NewAvailabilityStatusesClientWithBaseURI creates an instance of the
|
||||
// AvailabilityStatusesClient client.
|
||||
// NewAvailabilityStatusesClientWithBaseURI creates an instance of the AvailabilityStatusesClient client.
|
||||
func NewAvailabilityStatusesClientWithBaseURI(baseURI string, subscriptionID string, resourceType string) AvailabilityStatusesClient {
|
||||
return AvailabilityStatusesClient{NewWithBaseURI(baseURI, subscriptionID, resourceType)}
|
||||
}
|
||||
|
||||
// GetByResource gets current availability status for a single resource
|
||||
//
|
||||
// resourceURI is the fully qualified ID of the resource, including the
|
||||
// resource name and resource type. Currently the API support not nested and
|
||||
// one nesting level resource types :
|
||||
// resourceURI is the fully qualified ID of the resource, including the resource name and resource type. Currently the
|
||||
// API support not nested and one nesting level resource types :
|
||||
// /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name}
|
||||
// and
|
||||
// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}
|
||||
// filter is the filter to apply on the operation. For more information please
|
||||
// see
|
||||
// https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN
|
||||
// expand is setting $expand=recommendedactions in url query expands the
|
||||
// recommendedactions in the response.
|
||||
// filter is the filter to apply on the operation. For more information please see
|
||||
// https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN expand is setting
|
||||
// $expand=recommendedactions in url query expands the recommendedactions in the response.
|
||||
func (client AvailabilityStatusesClient) GetByResource(resourceURI string, filter string, expand string) (result AvailabilityStatus, err error) {
|
||||
req, err := client.GetByResourcePreparer(resourceURI, filter, expand)
|
||||
if err != nil {
|
||||
@@ -82,7 +76,7 @@ func (client AvailabilityStatusesClient) GetByResourcePreparer(resourceURI strin
|
||||
"resourceUri": resourceURI,
|
||||
}
|
||||
|
||||
const APIVersion = "2015-01-01"
|
||||
const APIVersion = "2017-07-01"
|
||||
queryParameters := map[string]interface{}{
|
||||
"api-version": APIVersion,
|
||||
}
|
||||
@@ -120,21 +114,17 @@ func (client AvailabilityStatusesClient) GetByResourceResponder(resp *http.Respo
|
||||
return
|
||||
}
|
||||
|
||||
// List lists the historical availability statuses for a single resource. Use
|
||||
// the nextLink property in the response to get the next page of availability
|
||||
// status
|
||||
// List lists all historical availability transitions and impacting events for a single resource. Use the nextLink
|
||||
// property in the response to get the next page of availability status
|
||||
//
|
||||
// resourceURI is the fully qualified ID of the resource, including the
|
||||
// resource name and resource type. Currently the API support not nested and
|
||||
// one nesting level resource types :
|
||||
// resourceURI is the fully qualified ID of the resource, including the resource name and resource type. Currently the
|
||||
// API support not nested and one nesting level resource types :
|
||||
// /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name}
|
||||
// and
|
||||
// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}
|
||||
// filter is the filter to apply on the operation. For more information please
|
||||
// see
|
||||
// https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN
|
||||
// expand is setting $expand=recommendedactions in url query expands the
|
||||
// recommendedactions in the response.
|
||||
// filter is the filter to apply on the operation. For more information please see
|
||||
// https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN expand is setting
|
||||
// $expand=recommendedactions in url query expands the recommendedactions in the response.
|
||||
func (client AvailabilityStatusesClient) List(resourceURI string, filter string, expand string) (result AvailabilityStatusListResult, err error) {
|
||||
req, err := client.ListPreparer(resourceURI, filter, expand)
|
||||
if err != nil {
|
||||
@@ -163,7 +153,7 @@ func (client AvailabilityStatusesClient) ListPreparer(resourceURI string, filter
|
||||
"resourceUri": resourceURI,
|
||||
}
|
||||
|
||||
const APIVersion = "2015-01-01"
|
||||
const APIVersion = "2017-07-01"
|
||||
queryParameters := map[string]interface{}{
|
||||
"api-version": APIVersion,
|
||||
}
|
||||
@@ -225,15 +215,57 @@ func (client AvailabilityStatusesClient) ListNextResults(lastResults Availabilit
|
||||
return
|
||||
}
|
||||
|
||||
// ListByResourceGroup lists the current availability status for all the
|
||||
// resources in the resource group. Use the nextLink property in the response
|
||||
// to get the next page of availability statuses.
|
||||
// ListComplete gets all elements from the list without paging.
|
||||
func (client AvailabilityStatusesClient) ListComplete(resourceURI string, filter string, expand string, cancel <-chan struct{}) (<-chan AvailabilityStatus, <-chan error) {
|
||||
resultChan := make(chan AvailabilityStatus)
|
||||
errChan := make(chan error, 1)
|
||||
go func() {
|
||||
defer func() {
|
||||
close(resultChan)
|
||||
close(errChan)
|
||||
}()
|
||||
list, err := client.List(resourceURI, filter, expand)
|
||||
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
|
||||
}
|
||||
|
||||
// ListByResourceGroup lists the current availability status for all the resources in the resource group. Use the
|
||||
// nextLink property in the response to get the next page of availability statuses.
|
||||
//
|
||||
// resourceGroupName is the name of the resource group. filter is the filter to
|
||||
// apply on the operation. For more information please see
|
||||
// https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN
|
||||
// expand is setting $expand=recommendedactions in url query expands the
|
||||
// recommendedactions in the response.
|
||||
// resourceGroupName is the name of the resource group. filter is the filter to apply on the operation. For more
|
||||
// information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN expand is
|
||||
// setting $expand=recommendedactions in url query expands the recommendedactions in the response.
|
||||
func (client AvailabilityStatusesClient) ListByResourceGroup(resourceGroupName string, filter string, expand string) (result AvailabilityStatusListResult, err error) {
|
||||
req, err := client.ListByResourceGroupPreparer(resourceGroupName, filter, expand)
|
||||
if err != nil {
|
||||
@@ -263,7 +295,7 @@ func (client AvailabilityStatusesClient) ListByResourceGroupPreparer(resourceGro
|
||||
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
|
||||
}
|
||||
|
||||
const APIVersion = "2015-01-01"
|
||||
const APIVersion = "2017-07-01"
|
||||
queryParameters := map[string]interface{}{
|
||||
"api-version": APIVersion,
|
||||
}
|
||||
@@ -325,15 +357,57 @@ func (client AvailabilityStatusesClient) ListByResourceGroupNextResults(lastResu
|
||||
return
|
||||
}
|
||||
|
||||
// ListBySubscriptionID lists the current availability status for all the
|
||||
// resources in the subscription. Use the nextLink property in the response to
|
||||
// get the next page of availability statuses.
|
||||
// ListByResourceGroupComplete gets all elements from the list without paging.
|
||||
func (client AvailabilityStatusesClient) ListByResourceGroupComplete(resourceGroupName string, filter string, expand string, cancel <-chan struct{}) (<-chan AvailabilityStatus, <-chan error) {
|
||||
resultChan := make(chan AvailabilityStatus)
|
||||
errChan := make(chan error, 1)
|
||||
go func() {
|
||||
defer func() {
|
||||
close(resultChan)
|
||||
close(errChan)
|
||||
}()
|
||||
list, err := client.ListByResourceGroup(resourceGroupName, filter, expand)
|
||||
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.ListByResourceGroupNextResults(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
|
||||
}
|
||||
|
||||
// ListBySubscriptionID lists the current availability status for all the resources in the subscription. Use the
|
||||
// nextLink property in the response to get the next page of availability statuses.
|
||||
//
|
||||
// filter is the filter to apply on the operation. For more information please
|
||||
// see
|
||||
// https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN
|
||||
// expand is setting $expand=recommendedactions in url query expands the
|
||||
// recommendedactions in the response.
|
||||
// filter is the filter to apply on the operation. For more information please see
|
||||
// https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN expand is setting
|
||||
// $expand=recommendedactions in url query expands the recommendedactions in the response.
|
||||
func (client AvailabilityStatusesClient) ListBySubscriptionID(filter string, expand string) (result AvailabilityStatusListResult, err error) {
|
||||
req, err := client.ListBySubscriptionIDPreparer(filter, expand)
|
||||
if err != nil {
|
||||
@@ -362,7 +436,7 @@ func (client AvailabilityStatusesClient) ListBySubscriptionIDPreparer(filter str
|
||||
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
|
||||
}
|
||||
|
||||
const APIVersion = "2015-01-01"
|
||||
const APIVersion = "2017-07-01"
|
||||
queryParameters := map[string]interface{}{
|
||||
"api-version": APIVersion,
|
||||
}
|
||||
@@ -423,3 +497,48 @@ func (client AvailabilityStatusesClient) ListBySubscriptionIDNextResults(lastRes
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// ListBySubscriptionIDComplete gets all elements from the list without paging.
|
||||
func (client AvailabilityStatusesClient) ListBySubscriptionIDComplete(filter string, expand string, cancel <-chan struct{}) (<-chan AvailabilityStatus, <-chan error) {
|
||||
resultChan := make(chan AvailabilityStatus)
|
||||
errChan := make(chan error, 1)
|
||||
go func() {
|
||||
defer func() {
|
||||
close(resultChan)
|
||||
close(errChan)
|
||||
}()
|
||||
list, err := client.ListBySubscriptionID(filter, expand)
|
||||
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.ListBySubscriptionIDNextResults(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
|
||||
}
|
||||
|
||||
+3
-5
@@ -1,5 +1,4 @@
|
||||
// Package resourcehealth implements the Azure ARM Resourcehealth service API
|
||||
// version 2015-01-01.
|
||||
// Package resourcehealth implements the Azure ARM Resourcehealth service API version 2017-07-01.
|
||||
//
|
||||
// The Resource Health Client.
|
||||
package resourcehealth
|
||||
@@ -18,9 +17,8 @@ package resourcehealth
|
||||
// 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"
|
||||
|
||||
+13
-16
@@ -14,9 +14,8 @@ package resourcehealth
|
||||
// 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"
|
||||
@@ -31,8 +30,7 @@ type AvailabilityStateValues string
|
||||
const (
|
||||
// Available specifies the available state for availability state values.
|
||||
Available AvailabilityStateValues = "Available"
|
||||
// Unavailable specifies the unavailable state for availability state
|
||||
// values.
|
||||
// Unavailable specifies the unavailable state for availability state values.
|
||||
Unavailable AvailabilityStateValues = "Unavailable"
|
||||
// Unknown specifies the unknown state for availability state values.
|
||||
Unknown AvailabilityStateValues = "Unknown"
|
||||
@@ -65,6 +63,10 @@ type AvailabilityStatusProperties struct {
|
||||
DetailedStatus *string `json:"detailedStatus,omitempty"`
|
||||
ReasonType *string `json:"reasonType,omitempty"`
|
||||
RootCauseAttributionTime *date.Time `json:"rootCauseAttributionTime,omitempty"`
|
||||
HealthEventType *string `json:"healthEventType,omitempty"`
|
||||
HealthEventCause *string `json:"healthEventCause,omitempty"`
|
||||
HealthEventCategory *string `json:"healthEventCategory,omitempty"`
|
||||
HealthEventID *string `json:"healthEventId,omitempty"`
|
||||
ResolutionETA *date.Time `json:"resolutionETA,omitempty"`
|
||||
OccuredTime *date.Time `json:"occuredTime,omitempty"`
|
||||
ReasonChronicity ReasonChronicityTypes `json:"reasonChronicity,omitempty"`
|
||||
@@ -74,17 +76,15 @@ type AvailabilityStatusProperties struct {
|
||||
ServiceImpactingEvents *[]ServiceImpactingEvent `json:"serviceImpactingEvents,omitempty"`
|
||||
}
|
||||
|
||||
// AvailabilityStatusPropertiesRecentlyResolvedState is an annotation
|
||||
// describing a change in the availabilityState to Available from Unavailable
|
||||
// with a reasonType of type Unplanned
|
||||
// AvailabilityStatusPropertiesRecentlyResolvedState is an annotation describing a change in the availabilityState to
|
||||
// Available from Unavailable with a reasonType of type Unplanned
|
||||
type AvailabilityStatusPropertiesRecentlyResolvedState struct {
|
||||
UnavailableOccurredTime *date.Time `json:"unavailableOccurredTime,omitempty"`
|
||||
ResolvedTime *date.Time `json:"resolvedTime,omitempty"`
|
||||
UnavailabilitySummary *string `json:"unavailabilitySummary,omitempty"`
|
||||
}
|
||||
|
||||
// AvailabilityStatusListResult is the List availabilityStatus operation
|
||||
// response.
|
||||
// AvailabilityStatusListResult is the List availabilityStatus operation response.
|
||||
type AvailabilityStatusListResult struct {
|
||||
autorest.Response `json:"-"`
|
||||
Value *[]AvailabilityStatus `json:"value,omitempty"`
|
||||
@@ -130,16 +130,14 @@ type OperationListResult struct {
|
||||
Value *[]Operation `json:"value,omitempty"`
|
||||
}
|
||||
|
||||
// RecommendedAction is lists actions the user can take based on the current
|
||||
// availabilityState of the resource.
|
||||
// RecommendedAction is lists actions the user can take based on the current availabilityState of the resource.
|
||||
type RecommendedAction struct {
|
||||
Action *string `json:"action,omitempty"`
|
||||
ActionURL *string `json:"actionUrl,omitempty"`
|
||||
ActionURLText *string `json:"actionUrlText,omitempty"`
|
||||
}
|
||||
|
||||
// ServiceImpactingEvent is lists the service impacting events that may be
|
||||
// affecting the health of the resource.
|
||||
// ServiceImpactingEvent is lists the service impacting events that may be affecting the health of the resource.
|
||||
type ServiceImpactingEvent struct {
|
||||
EventStartTime *date.Time `json:"eventStartTime,omitempty"`
|
||||
EventStatusLastModifiedTime *date.Time `json:"eventStatusLastModifiedTime,omitempty"`
|
||||
@@ -148,8 +146,7 @@ type ServiceImpactingEvent struct {
|
||||
IncidentProperties *ServiceImpactingEventIncidentProperties `json:"incidentProperties,omitempty"`
|
||||
}
|
||||
|
||||
// ServiceImpactingEventIncidentProperties is properties of the service
|
||||
// impacting event.
|
||||
// ServiceImpactingEventIncidentProperties is properties of the service impacting event.
|
||||
type ServiceImpactingEventIncidentProperties struct {
|
||||
Title *string `json:"title,omitempty"`
|
||||
Service *string `json:"service,omitempty"`
|
||||
|
||||
+4
-6
@@ -14,9 +14,8 @@ package resourcehealth
|
||||
// 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"
|
||||
@@ -34,8 +33,7 @@ func NewOperationsClient(subscriptionID string, resourceType string) OperationsC
|
||||
return NewOperationsClientWithBaseURI(DefaultBaseURI, subscriptionID, resourceType)
|
||||
}
|
||||
|
||||
// NewOperationsClientWithBaseURI creates an instance of the OperationsClient
|
||||
// client.
|
||||
// NewOperationsClientWithBaseURI creates an instance of the OperationsClient client.
|
||||
func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string, resourceType string) OperationsClient {
|
||||
return OperationsClient{NewWithBaseURI(baseURI, subscriptionID, resourceType)}
|
||||
}
|
||||
@@ -65,7 +63,7 @@ func (client OperationsClient) List() (result OperationListResult, err error) {
|
||||
|
||||
// ListPreparer prepares the List request.
|
||||
func (client OperationsClient) ListPreparer() (*http.Request, error) {
|
||||
const APIVersion = "2015-01-01"
|
||||
const APIVersion = "2017-07-01"
|
||||
queryParameters := map[string]interface{}{
|
||||
"api-version": APIVersion,
|
||||
}
|
||||
|
||||
+4
-5
@@ -14,16 +14,15 @@ package resourcehealth
|
||||
// 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-resourcehealth/2015-01-01"
|
||||
return "Azure-SDK-For-Go/v11.0.0-beta arm-resourcehealth/2017-07-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